[LEDE-DEV] [PATCH v2] ipq8064: Fix dwc3 module unloading

Thomas Reifferscheid thomas at reifferscheid.org
Mon Mar 27 03:17:35 PDT 2017


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 <thomas at 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 <agross at 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




More information about the Lede-dev mailing list