From 5bde57f34fae289a887174d08391a605787feef9 Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Thu, 13 Jul 2023 08:30:38 +0800 Subject: [PATCH] mmc: dw_mmc-rockchip: Disable PM runtime for SDIO devices Some SDIO devices need stable clock provided even after finishing data transfer. Signed-off-by: Shawn Lin Change-Id: I5f048e15b3cafb2d24b93dbd41892f2fb77f8df8 --- drivers/mmc/host/dw_mmc-rockchip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c index d87ceb85c3ac..69970381d0e7 100644 --- a/drivers/mmc/host/dw_mmc-rockchip.c +++ b/drivers/mmc/host/dw_mmc-rockchip.c @@ -448,8 +448,10 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev) if (!pdev->dev.of_node) return -ENODEV; - if (!device_property_read_bool(&pdev->dev, "non-removable") && - !device_property_read_bool(&pdev->dev, "cd-gpios")) + if ((!device_property_read_bool(&pdev->dev, "non-removable") && + !device_property_read_bool(&pdev->dev, "cd-gpios")) || + (device_property_read_bool(&pdev->dev, "no-sd") && + device_property_read_bool(&pdev->dev, "no-mmc"))) use_rpm = false; match = of_match_node(dw_mci_rockchip_match, pdev->dev.of_node);