Author: nbd
Date: 2015-07-07 23:52:29 +0200 (Tue, 07 Jul 2015)
New Revision: 46252

Modified:
   
branches/chaos_calmer/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
Log:
ar71xx: fix kernel Oops in at803x_link_change_notify

r45954 ("ar71xx: fix 100/10mbps ethernet link issues on mynet range
extender") introduced a pdata based modification of the tx_clk_dly. But it
was not checked if pdata actually existed. This caused a page fault on all
devices which didn't have at803x_platform_data specified for an at803x
based device.

Signed-off-by: Sven Eckelmann <[email protected]>

Backport of r46200

Modified: 
branches/chaos_calmer/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
===================================================================
--- 
branches/chaos_calmer/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
        2015-07-07 21:21:49 UTC (rev 46251)
+++ 
branches/chaos_calmer/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch
        2015-07-07 21:52:29 UTC (rev 46252)
@@ -141,7 +141,7 @@
                        priv->phy_reset = false;
                }
        }
-+      if (pdata->fixup_rgmii_tx_delay &&
++      if (pdata && pdata->fixup_rgmii_tx_delay &&
 +          phydev->speed != priv->prev_speed) {
 +              switch (phydev->speed) {
 +              case SPEED_10:
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to