Skip to contentSkip to conversation

mmc: rockchip: the non-removable property must point to emmc

PATCH New Lin Huang 2 participants 3 messages Jan 8, 2016 – Jan 15, 2016

Subsystems (2)
lore
Share & tools
lore

Lin Huang

author
#0 lore raw

PATCH 1/1 mmc: rockchip: the non-removable property must point to emmc

the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it.

---
 drivers/mmc/rockchip_dw_mmc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mmc/rockchip_dw_mmc.c +2 -0
index aeaec6c..9b4268e 100644
@@ -52,6 +52,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
 
 	/* use non-removeable as sdcard and emmc as judgement */
 	if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
+		host->dev_index = 0;
+	else
 		host->dev_index = 1;
 
 	return 0;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 mmc: rockchip: the non-removable property must point to emmc

Quoted 22 lines · Lin Huang

the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it.

---
 drivers/mmc/rockchip_dw_mmc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mmc/rockchip_dw_mmc.c +2 -1
index aeaec6c..9b4268e 100644
@@ -52,6 +52,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
 
        /* use non-removeable as sdcard and emmc as judgement */
        if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
+               host->dev_index = 0;
+       else
                host->dev_index = 1;
 
        return 0;
--
Quoted 2 lines

1.9.1

Tested on firefly-rk3288:

#2 lore raw

PATCH 1/1 mmc: rockchip: the non-removable property must point to emmc

Quoted 21 lines · Simon Glass
Quoted 20 lines · Lin Huang

the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it.

---
 drivers/mmc/rockchip_dw_mmc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mmc/rockchip_dw_mmc.c +2 -0
index aeaec6c..9b4268e 100644
@@ -52,6 +52,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
 
        /* use non-removeable as sdcard and emmc as judgement */
        if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
+               host->dev_index = 0;
+       else
                host->dev_index = 1;
 
Quoted 8 lines
Quoted 4 lines
drivers/mmc/rockchip_dw_mmc.c +0 -1
        return 0;
--

1.9.1

Tested on firefly-rk3288:

Applied to u-boot-rockchip, thanks!