Skip to content
  • Kuo-Jung Su's avatar
    cfi_flash: use buffer length in unmap_physmem() · d8b57c0a
    Kuo-Jung Su authored
    
    
    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: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
    CC: Albert Aribaud <albert.u.boot@aribaud.net>
    CC: Stefan Roese <sr@denx.de>
    Signed-off-by: default avatarStefan Roese <sr@denx.de>
    d8b57c0a