Allow module unloading by fixing a mistake.
qcom_dwc3_phy_write_readback() is expecting (phy, base, offset, value)
while the mistake was calling it with       (phy, base, value, offset)

The patch fixes it by swapping value and offset.

Signed-off-by: Thomas Reifferscheid <tho...@reifferscheid.org>
---

Changes since v1:
 * be more verbose in explaining the mistake

 target/linux/ipq806x/patches-4.9/0032-phy-add-qcom-dwc3-phy.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ipq806x/patches-4.9/0032-phy-add-qcom-dwc3-phy.patch 
b/target/linux/ipq806x/patches-4.9/0032-phy-add-qcom-dwc3-phy.patch
index 314631d..39e918f 100644
--- a/target/linux/ipq806x/patches-4.9/0032-phy-add-qcom-dwc3-phy.patch
+++ b/target/linux/ipq806x/patches-4.9/0032-phy-add-qcom-dwc3-phy.patch
@@ -420,7 +420,7 @@ Signed-off-by: Andy Gross <agr...@codeaurora.org>
 +      qcom_dwc3_phy_write_readback(phy_dwc3, SSUSB_PHY_CTRL_REG,
 +              SSUSB_CTRL_REF_USE_PAD, 0x0);
 +      qcom_dwc3_phy_write_readback(phy_dwc3, SSUSB_PHY_CTRL_REG,
-+              0x0, SSUSB_CTRL_TEST_POWERDOWN);
++              SSUSB_CTRL_TEST_POWERDOWN, 0x0);
 +
 +      return 0;
 +}
-- 
2.1.4


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to