u-boot/drivers
Dirk Behme 9723bbb46a nand: Correct NAND erase percentage output
For NAND erase sizes smaller than one NAND erase block, erase
percentage output becomes grater than 100% e.g.

-- cut --
  > nand info
Device 0: NAND 64MiB 1,8V 8-bit, sector size 16 KiB
  > nand erase 0x100000 0x2000
NAND erase: device 0 offset 0x100000, size 0x2000
Erasing at 0x100000 -- 200% complete.
OK
  >
-- cut --

Correct this and give user a warning that more is erased than specified:

-- cut --
  > nand erase 0x100000 0x2000
NAND erase: device 0 offset 0x100000, size 0x2000
Warning: Erase size 0x00002000 smaller than one erase block 0x00004000
           Erasing 0x00004000 instead
Erasing at 0x100000 -- 100% complete.
OK
  >
-- cut --

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
2008-05-28 11:06:27 -05:00
..
bios_emulator Big white-space cleanup. 2008-05-21 00:14:08 +02:00
block Big white-space cleanup. 2008-05-21 00:14:08 +02:00
dma Big white-space cleanup. 2008-05-21 00:14:08 +02:00
hwmon LM73 bug fix for negative temperatures and cleanup 2008-04-13 08:58:36 -07:00
i2c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
input Big white-space cleanup. 2008-05-21 00:14:08 +02:00
misc Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mtd nand: Correct NAND erase percentage output 2008-05-28 11:06:27 -05:00
net Big white-space cleanup. 2008-05-21 00:14:08 +02:00
pci Big white-space cleanup. 2008-05-21 00:14:08 +02:00
pcmcia Big white-space cleanup. 2008-05-21 00:14:08 +02:00
qe Big white-space cleanup. 2008-05-21 00:14:08 +02:00
rtc Big white-space cleanup. 2008-05-21 00:14:08 +02:00
serial Big white-space cleanup. 2008-05-21 00:14:08 +02:00
spi Big white-space cleanup. 2008-05-21 00:14:08 +02:00
usb Fix endianess conversion in usb_ohci.c 2008-05-22 17:14:17 +02:00
video Big white-space cleanup. 2008-05-21 00:14:08 +02:00