mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user