From: Shawn Lin Date: Fri, 27 May 2016 07:37:21 +0000 (+0800) Subject: mmc: dw_mmc-rockchip: add MMC_CAP_CMD23 capabilities X-Git-Tag: firefly_0821_release~2591 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eeb54fb121d217e6b75bc4b6f4cbd16f357c19c8;p=firefly-linux-kernel-4.4.55.git mmc: dw_mmc-rockchip: add MMC_CAP_CMD23 capabilities Add MMC_CAP_CMD23 for dw_mmc-rockchip, otherwise failing to create rpmb partition. With it, we can get rpmb successfully: mmc1: new HS200 MMC card at address 0001 mmcblk0: mmc1:0001 DS2016 14.7 GiB mmcblk0boot0: mmc1:0001 DS2016 partition 1 4.00 MiB mmcblk0boot1: mmc1:0001 DS2016 partition 2 4.00 MiB mmcblk0rpmb: mmc1:0001 DS2016 partition 3 4.00 MiB Change-Id: I19cdb2d31ee8c864125c2bd197e38cf21b84e25f Signed-off-by: Shawn Lin Signed-off-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c index 954f66f356ff..29e3ae99edbc 100644 --- a/drivers/mmc/host/dw_mmc-rockchip.c +++ b/drivers/mmc/host/dw_mmc-rockchip.c @@ -241,10 +241,10 @@ static int dw_mci_rockchip_init(struct dw_mci *host) /* Common capabilities of RK3288 SoC */ static unsigned long dw_mci_rk3288_dwmmc_caps[4] = { - MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE, /* emmc */ - MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE, /* sdmmc */ - MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE, /* sdio0 */ - MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE, /* sdio1 */ + MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE | MMC_CAP_CMD23,/* emmc */ + MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE | MMC_CAP_CMD23,/* sdmmc */ + MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE | MMC_CAP_CMD23,/* sdio0 */ + MMC_CAP_RUNTIME_RESUME | MMC_CAP_ERASE | MMC_CAP_CMD23,/* sdio1 */ }; static const struct dw_mci_drv_data rk2928_drv_data = {