From 7afa01a4ecb6f42a9f1dda0362e580ade65f11b8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 7 Jul 2015 21:52:29 +0000 Subject: [PATCH] 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 Backport of r46200 SVN-Revision: 46252 --- .../425-net-phy-at803x-allow-to-configure-via-pdata.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch b/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch index 34b9bc06db..0d021ac7bd 100644 --- a/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch +++ b/target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch @@ -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: -- 2.30.2