记录emac-dwc-eqos一处报错修改:
高通原始代码中对gpio121设置的功能是“emac_phy”,通过查表和代码都可以看出,此gpio并没有此功能,修改patch如下:
注:此报错并不会影响实际的以太网驱动功能,代码中对pinctrl的设置出错,仅仅只是打印log.
diff --git a/LINUX/android/kernel/msm-4.14/arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi b/LINUX/android/kernel/msm-4.14/arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi
index 5229b7b..650da44 100644
--- a/LINUX/android/kernel/msm-4.14/arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi
+++ b/LINUX/android/kernel/msm-4.14/arch/arm64/boot/dts/qcom/sm6150-pinctrl.dtsi
@@ -1913,13 +1913,13 @@
emac_phy_intr: emac_phy_intr {
mux {
pins = "gpio121";
- function = "emac_phy";
+ function = "gpio";//"emac_phy";
};