u-boot/drivers/mtd
Kuo-Jung Su d8b57c0a83 cfi_flash: use buffer length in unmap_physmem()
While the flash_detect_legacy() of drivers/mtd/cfi_flash.c
feed unmap_physmem() with MAP_NOCACHE as 2nd parameter,
the do_spi_flash_read_write() of common/cmd_sf.c
feed unmap_physmem() with the length of the mapped buffer
as 2nd parameter.

It's apparently a bug, and I personally think the 2nd parameter
should be the length of the mapped buffer.

Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Albert Aribaud <albert.u.boot@aribaud.net>
CC: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
2013-07-25 16:43:40 +02:00
..
nand mtd: mxc_nand: Fix crash after MTD resync 2013-07-12 16:12:33 -05:00
onenand mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
spi Merge branch 'master' of git://git.denx.de/u-boot-spi 2013-06-24 16:37:01 -04:00
ubi mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c cfi_flash: use buffer length in unmap_physmem() 2013-07-25 16:43:40 +02:00
cfi_mtd.c mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
dataflash.c drivers/mtd/dataflash.c: Fix GCC 4.6 warning 2011-11-16 21:28:47 +01:00
ftsmc020.c ftsmc020: fix relocation 2011-05-12 23:43:27 +02:00
jedec_flash.c add STM29F400BB to table of supported legacy flashs 2012-02-09 09:45:53 +01:00
Makefile mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
mtdconcat.c mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
mtdcore.c mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
mtdpart.c mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
st_smi.c MTD: SPEAr SMI: Add write support for length < 4 bytes 2012-07-07 14:07:44 +02:00