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 <shawn.lin@rock-chips.com>
Change-Id: I5f048e15b3cafb2d24b93dbd41892f2fb77f8df8
This commit is contained in:
Shawn Lin
2023-07-13 08:30:38 +08:00
committed by Tao Huang
parent a22026c960
commit 5bde57f34f

View File

@@ -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);