From: Kuninori Morimoto <[email protected]>

Latest SDHI on Renesas has expand register mapping.
update mmc_data->bus_shift for it.

Signed-off-by: Kuninori Morimoto <[email protected]>
---
 drivers/mmc/host/sh_mobile_sdhi.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sh_mobile_sdhi.c 
b/drivers/mmc/host/sh_mobile_sdhi.c
index 48a3be8..26eeeb6 100644
--- a/drivers/mmc/host/sh_mobile_sdhi.c
+++ b/drivers/mmc/host/sh_mobile_sdhi.c
@@ -202,7 +202,10 @@ static int sh_mobile_sdhi_probe(struct platform_device 
*pdev)
        host->clk_disable       = sh_mobile_sdhi_clk_disable;
        host->multi_io_quirk    = sh_mobile_sdhi_multi_io_quirk;
        /* SD control register space size is 0x100, 0x200 for bus_shift=1 */
-       host->bus_shift         = resource_size(res) >> 9;
+       if (resource_size(res) > 0x100)
+               host->bus_shift = 1;
+       else
+               host->bus_shift = 0;
 
        mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED;
        if (p) {
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to