linux-uconsole/include/linux/mmc
Arnd Bergmann 7b5585cd22 UPSTREAM: mmc: dw_mmc: use resource_size_t to store physical address
The dw_mmc driver stores the physical address of the MMIO registers
in a pointer, which requires the use of type casts, and is actually
broken if anyone ever has this device on a 32-bit SoC in registers
above 4GB. Gcc warns about this possibility when the driver is built
with ARM LPAE enabled:

mmc/host/dw_mmc.c: In function 'dw_mci_edmac_start_dma':
mmc/host/dw_mmc.c:702:17: warning: cast from pointer to integer of different size
  cfg.dst_addr = (dma_addr_t)(host->phy_regs + fifo_offset);
                 ^
mmc/host/dw_mmc-pltfm.c: In function 'dw_mci_pltfm_register':
mmc/host/dw_mmc-pltfm.c:63:19: warning: cast to pointer from integer of different size
  host->phy_regs = (void *)(regs->start);

This changes the code to use resource_size_t, which gets rid of the
warning, the bug and the useless casts.

Change-Id: I894c49cede8f0626efb80a9a3181a5385bbb2bcd
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 260b316436)
2016-07-04 12:01:36 +08:00
..
boot.h
card.h mmc: add hs400 enhanced strobe support for mmc subsystem 2016-04-28 11:49:40 +08:00
core.h rk: temp revert rk change 2015-11-11 15:54:30 +08:00
dw_mmc.h UPSTREAM: mmc: dw_mmc: use resource_size_t to store physical address 2016-07-04 12:01:36 +08:00
host.h mmc: core: keep consistent with upstream 2016-05-30 17:29:47 +08:00
mmc.h mmc: add hs400 enhanced strobe support for mmc subsystem 2016-04-28 11:49:40 +08:00
pm.h mmc: Add "ignore mmc pm notify" functionality 2016-02-16 13:51:09 -08:00
rk_mmc.h mmc: rk_sdmmc: enhance recovery flow 2015-07-10 14:05:03 +08:00
sd.h
sdhci-pci-data.h
sdio.h
sdio_func.h mmc: Add sdio_readb_ext() function 2016-02-16 13:51:05 -08:00
sdio_ids.h
sh_mmcif.h
sh_mobile_sdhi.h
slot-gpio.h rk: temp revert rk change 2015-11-11 15:54:30 +08:00
tmio.h