lede/target/linux/rockchip/patches-6.1/309-pcie-dw-rockchip-workaround-assert-for-rk3528.patch
aiamadeus 00eb500306 rockchip: sync rk3528 with upstream
Switch to the mainline pcie driver.
2025-03-09 18:30:08 +08:00

20 lines
612 B
Diff

--- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
+++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
@@ -307,9 +307,13 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
if (ret)
return ret;
- ret = reset_control_assert(rockchip->rst);
- if (ret)
- return ret;
+ if (of_machine_is_compatible("rockchip,rk3528")) {
+ dev_warn(dev, "RockChip refuses to admit it's a bug\n");
+ } else {
+ ret = reset_control_assert(rockchip->rst);
+ if (ret)
+ return ret;
+ }
/* DON'T MOVE ME: must be enable before PHY init */
rockchip->vpcie3v3 = devm_regulator_get_optional(dev, "vpcie3v3");