summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorBen Gardiner <[email protected]>2010-08-31 17:48:03 -0400
committerScott Wood <[email protected]>2010-10-11 15:11:01 -0500
commitca75b20ebbfd40189a0157c7a2ef4360b0885cc4 (patch)
treee27f15c2e525edfee236810fca93e917c029f4ad /include/linux/usb
parent04ac380288ea8c334efdf938766e2748056a2821 (diff)
mtdparts: add new sub-command "spread"
This patch introduces the 'spread' sub-command of the mtdparts command. This command will modify the existing mtdparts variable by increasing the size of the partitions such that 1) each partition's net size is at least as large as the size specified in the mtdparts variable and 2) each partition starts on a good block. The new subcommand is implemented by iterating over the mtd device partitions and collecting a bad blocks count in each -- including any trailing bad blocks -- and then modifying that partitions's part_info structure and checking if the modification affects the next partition. This patch is based on a port of the 'dynnamic partitions' feature by Harald Welte <[email protected]>; ported from commit e05835df019027391f58f9d8ce5e1257d6924798 of git://git.openmoko.org/u-boot.git. Whereas Harald's feature used a compile-time array to specify partitions, the feature introduced by this patch uses the mtdparts environment variable. Signed-off-by: Ben Gardiner <[email protected]> Signed-off-by: Harald Welte <[email protected]> CC: Wolfgang Denk <[email protected]> CC: Scott Wood <[email protected]>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions