diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-10-10 11:42:42 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-10-10 15:12:01 +0200 |
commit | 13f283198ef49dedd49c106176f80dfffa16c3a8 (patch) | |
tree | 33f816b19644afca9c3798a1120007ff45441dde /target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch | |
parent | 77d004de6d09edc6d8a5cf77471d52d4865ae577 (diff) | |
download | upstream-13f283198ef49dedd49c106176f80dfffa16c3a8.tar.gz upstream-13f283198ef49dedd49c106176f80dfffa16c3a8.tar.bz2 upstream-13f283198ef49dedd49c106176f80dfffa16c3a8.zip |
ar71xx: remove linux 4.9 support
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch')
-rw-r--r-- | target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch b/target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch deleted file mode 100644 index fc640af17d..0000000000 --- a/target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- a/drivers/net/phy/at803x.c -+++ b/drivers/net/phy/at803x.c -@@ -460,12 +460,15 @@ static void at803x_link_change_notify(st - - static int at803x_aneg_done(struct phy_device *phydev) - { -+ struct at803x_platform_data *pdata; - int ccr; - - int aneg_done = genphy_aneg_done(phydev); - if (aneg_done != BMSR_ANEGCOMPLETE) - return aneg_done; - -+ pdata = dev_get_platdata(&phydev->mdio.dev); -+ - /* - * in SGMII mode, if copper side autoneg is successful, - * also check SGMII side autoneg result -@@ -480,7 +483,8 @@ static int at803x_aneg_done(struct phy_d - /* check if the SGMII link is OK. */ - if (!(phy_read(phydev, AT803X_PSSR) & AT803X_PSSR_MR_AN_COMPLETE)) { - pr_warn("803x_aneg_done: SGMII link is not ok\n"); -- aneg_done = 0; -+ if (!pdata || !pdata->override_sgmii_aneg) -+ aneg_done = 0; - } - /* switch back to copper page */ - phy_write(phydev, AT803X_REG_CHIP_CONFIG, ccr | AT803X_BT_BX_REG_SEL); ---- a/include/linux/platform_data/phy-at803x.h -+++ b/include/linux/platform_data/phy-at803x.h -@@ -7,6 +7,7 @@ struct at803x_platform_data { - int enable_rgmii_rx_delay:1; - int fixup_rgmii_tx_delay:1; - int has_reset_gpio:1; -+ int override_sgmii_aneg:1; - int reset_gpio; - }; - |