[U-Boot] [PATCH v6 04/12] cfi_flash: use buffer length in unmap_physmem()

Stefan Roese sr at denx.de
Thu Jul 25 16:46:20 CEST 2013


On 07/04/2013 05:40 AM, Kuo-Jung Su wrote:
> From: Kuo-Jung Su <dantesu at faraday-tech.com>
> 
> 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 at faraday-tech.com>
> CC: Albert Aribaud <albert.u.boot at aribaud.net>
> CC: Stefan Roese <sr at denx.de>

Applied to u-boot-cfi-flash.

Thanks,
Stefan



More information about the U-Boot mailing list