rv1126-uboot/board
Tom Rini c39d6a0ea5 nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters
We make these two functions take a size_t pointer to how much space
was used on NAND to read or write the buffer (when reads/writes happen)
so that bad blocks can be accounted for.  We also make them take an
loff_t limit on how much data can be read or written.  This means that
we can now catch the case of when writing to a partition would exceed
the partition size due to bad blocks.  To do this we also need to make
check_skip_len count not just complete blocks used but partial ones as
well.  All callers of nand_(read|write)_skip_bad are adjusted to call
these with the most sensible limits available.

The changes were started by Pantelis and finished by Tom.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Tom Rini <trini@ti.com>
2013-04-10 15:22:22 +02:00
..
8dtech/eco5pk
AndesTech
BuS Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
CarMediaLab/flea3
LEOX/elpt860 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
LaCie
Marvell Consolidate bool type 2013-04-01 16:33:52 -04:00
RPXClassic replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
RPXlite replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
RPXlite_dw replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
RRvision Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
Seagate/dockstar
a3m071
a4m072
a3000
actux1 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
actux2 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
actux3 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
actux4
adder Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
afeb9260
ait/cam_enc_4xx menu: Add support for user defined item choice function 2013-03-29 09:35:33 +01:00
alaska
alphaproject/ap_sh4a_4a
altera Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
amcc Consolidate bool type 2013-04-01 16:33:52 -04:00
armltd
astro/mcf5373l Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
atc
atmark-techno/armadillo-800eva
atmel
avionic-design
avnet
balloon3
bc3450
bct-brettl2
bf506f-ezkit
bf518f-ezbrd
bf525-ucr2
bf526-ezbrd
bf527-ad7160-eval
bf527-ezkit
bf527-sdp
bf533-ezkit Consolidate bool type 2013-04-01 16:33:52 -04:00
bf533-stamp Consolidate bool type 2013-04-01 16:33:52 -04:00
bf537-minotaur
bf537-pnav
bf537-srv1
bf537-stamp
bf538f-ezkit
bf548-ezkit
bf561-acvilon
bf561-ezkit
bf609-ezkit
blackstamp
blackvme
bluegiga/apx4devkit
bluewater/snapper9260
boundary/nitrogen6x
br4
buffalo/lsxl
calao
canmb
chromebook-x86 x86: Add FDT SPI node for link 2013-03-19 08:45:37 -07:00
cloudengines/pogo_e02
cm-bf527
cm-bf533
cm-bf537e
cm-bf537u
cm-bf548
cm-bf561
cm41xx
cm4008
cm5200
cm_t35 nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters 2013-04-10 15:22:22 +02:00
cmi
cobra5272 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
cogent replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
comelit/dig297
compal
compulab
corscience/tricorder
cpc45
cpu86
cpu87
cray/L1 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
csb272
csb472
cu824
d-link/dns325
dave Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
davedenx
davinci Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
dbau1x00
denx/m28evk
dnp5370
dvlhost Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
eXalion
earthlcd/favr-32-ezkit
egnite/ethernut5
eltec replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
emk replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
enbw/enbw_cmc
ep82xxm
ep88x Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
ep8248
ep8260
esd Consolidate bool type 2013-04-01 16:33:52 -04:00
esg/ima3-mx53
espt
esteem192e Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
etin
eukrea
evb64260 Consolidate bool type 2013-04-01 16:33:52 -04:00
exmeritus/hww1u1a
fads Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
faraday/a320evb
flagadm replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
freescale Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
friendlyarm/mini2440
funkwerk/vovpn-gw
g2000
gaisler Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
galaxy5200
gdsys
gen860t Consolidate bool type 2013-04-01 16:33:52 -04:00
genesi/mx51_efikamx
genietv replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
gw8260
h2200
hale/tt01
hermes replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
hidden_dragon
highbank
htkw/mcx
hymod replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
ibf-dsp561
icecube
icu862 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
idmr Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
ids8247
ifm
imx31_phycore
in-circuit/grasshopper
incaip
inka4x0
intercontrol/digsy_mtc
iomega/iconnect
ip04
ip860 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
ipek01
iphase4539
isee/igep00x0
ispan
ivm replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
jornada
jse
jupiter
karo
keymile
kmc/kzm9g
korat Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
kup replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
linkstation
logicpd
lubbock
lwmon replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
lwmon5
manroland Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
matrix_vision Consolidate bool type 2013-04-01 16:33:52 -04:00
mbx8xx replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
mcc200 lcd, fb: remove duplicated prototypes and unused code 2013-03-21 10:35:27 +01:00
micronas/vct
mimc/mimc200
miromico/hammerhead
mosaixtech/icon
motionpro
mousse replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
mpc8308_p1m
mpl replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
mpr2
ms7720se
ms7722se
ms7750se
muas3001
munices
musenki
mvblue Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
mx1ads
netphone replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
netta replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
netta2 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
netvia replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
nokia/rx51
nvidia Tegra114: MMC: Add SD bus power-rail init routine 2013-03-25 09:56:07 -07:00
nx823 replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
olimex/mx23_olinuxino
omicron/calimain
openrisc/openrisc-generic
overo
palmld
palmtc
pandora
pb1x00
pcs440ep
pdm360ng
phytec am33xx: refactor emif4/ddr to support multiple EMIF instances 2013-03-24 12:49:11 -04:00
pm520
pm826
pm828
pn62
ppmc7xx
ppmc8260
pr1
prodrive Consolidate bool type 2013-04-01 16:33:52 -04:00
psyent
pxa255_idp
qemu-mips
qi/qi_lb60
quad100hd
quantum replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
r360mpi Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
raidsonic/ib62x0
raspberrypi/rpi_b ARM: rpi_b: enable SD controller, add related env/cmds 2013-03-20 15:32:16 +01:00
rattler
rbc823 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
renesas Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
ronetix
rpxsuper
rsdproto Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
sacsng Consolidate bool type 2013-04-01 16:33:52 -04:00
samsung Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' 2013-03-26 09:51:09 +01:00
sandbox/sandbox
sandburst replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
sandpoint Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
sbc405
sbc8349
sbc8548
sbc8641d
sc3
scb9328
schulercontrol/sc_sps_1
sheldon/simpc8313
shmin
sixnet Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
snmc Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
socrates
sorcery
spc1920 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
spd8xx replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
spear Consolidate bool type 2013-04-01 16:33:52 -04:00
st/nhk8815
st-ericsson
stx replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
svm_sc8xx replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
syteco
t3corp
taskit/stamp9g20
tcm-bf518
tcm-bf537
technexion/twister
teejet/mt_ventoux Consolidate bool type 2013-04-01 16:33:52 -04:00
ti am335x_evm: Add better timings for the new BeagleBoard DDR3 part 2013-03-24 12:49:12 -04:00
timll
toradex
total5200
tqc Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
trizepsiv
ttcontrol/vision2
utx8245
v37 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
v38b
ve8313
vpac270 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
w7o replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
woodburn
xaeniax
xes replace last __bss_end__ occurrences with __bss_end 2013-04-02 16:23:34 -04:00
xilinx
zeus
zipitz2
zpc1900