linux-stable/drivers/mtd/devices
Nicolas Pitre 877b58ebc0 mtd: mtdram: properly handle the phys argument in the point method
When the phys pointer is non null, the point method is expected to return
the physical address for the pointed area. In the case of the mtdram
driver we have to retrieve the physical address for the corresponding
vmalloc area. However, there is no guarantee that the vmalloc area is
made of physically contiguous pages. In that case we simply limit retlen
to the actually contiguous pages.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2017-11-13 21:39:17 +01:00
..
bcm47xxsflash.c mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
bcm47xxsflash.h mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
block2mtd.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
docg3.c mtd: create per-device and module-scope debugfs entries 2017-07-21 13:25:29 -07:00
docg3.h mtd: create per-device and module-scope debugfs entries 2017-07-21 13:25:29 -07:00
Kconfig mtd: mchp23k256: Add driver for this SPI SRAM device 2017-05-11 10:13:02 -07:00
lart.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
m25p80.c mtd: spi-nor: Add support for mr25h128 2017-10-29 20:57:19 +01:00
Makefile mtd: mchp23k256: Add driver for this SPI SRAM device 2017-05-11 10:13:02 -07:00
mchp23k256.c mtd: mchp23k256: Add support for mchp23lcv1024 2017-06-08 16:32:11 -07:00
ms02-nv.c mtd: ms02-nv: remove superfluous name cast 2014-01-03 11:22:09 -08:00
ms02-nv.h
mtd_dataflash.c mtd: dataflash: Add flash_info for AT45DB641E 2017-05-11 10:04:52 -07:00
mtdram.c mtd: mtdram: properly handle the phys argument in the point method 2017-11-13 21:39:17 +01:00
phram.c mtd: phram: fix asm/io.h include usage 2014-10-22 01:59:30 -07:00
pmc551.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
powernv_flash.c powerpc/opal: Add inline function to get rc from an ASYNC_COMP opal_msg 2016-06-29 17:33:18 +10:00
serial_flash_cmds.h mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead 2017-06-27 21:50:17 +02:00
slram.c mtd: slram: use memremap() instead of ioremap() 2017-11-13 21:39:16 +01:00
spear_smi.c mtd: spear_smi: add NULL check on devm_kzalloc() return value 2017-08-15 14:00:42 +02:00
sst25l.c MTD updates for 4.4-rc1: 2015-11-06 11:50:24 -08:00
st_spi_fsm.c mtd: st_spi_fsm: Handle clk_prepare_enable/clk_disable_unprepare. 2017-08-23 16:49:20 +02:00