[openwrt/openwrt] ramips: mtk-mmc: remove nt76x8 pinctrl hack

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 4 10:44:58 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/976bfe61e0dbec27fd103b531a32d6853cba3ba4

commit 976bfe61e0dbec27fd103b531a32d6853cba3ba4
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Jan 1 16:17:53 2025 +0800

    ramips: mtk-mmc: remove nt76x8 pinctrl hack
    
    Now we can set the mt76x8 SDXC pinmux in device tree.
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
    Link: https://github.com/openwrt/openwrt/pull/17446
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit b4a9f85c1394f13806fc2f51f5f6f23494773d7e)
---
 target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
index df95900a26..a9c242bfd3 100644
--- a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
+++ b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
@@ -2210,12 +2210,6 @@ static int msdc_drv_probe(struct platform_device *pdev)
 	struct msdc_hw *hw;
 	int ret;
 
-	//FIXME: this should be done by pinconf and not by the sd driver
-	if ((ralink_soc == MT762X_SOC_MT7688 ||
-	     ralink_soc == MT762X_SOC_MT7628AN) &&
-	    (!(rt_sysc_r32(0x60) & BIT(15))))
-		rt_sysc_m32(0xf << 17, 0xf << 17, 0x3c);
-
 	hw = &msdc0_hw;
 
 	if (of_property_read_bool(pdev->dev.of_node, "mtk,wp-en"))




More information about the lede-commits mailing list