diff options
author | John Crispin <john@phrozen.org> | 2018-01-08 15:06:24 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-02-14 11:27:50 +0100 |
commit | 7762c07c88980cff85ec20c12f18cd172260e9d9 (patch) | |
tree | d5e9e1f28c1aa9b47eadcf6b8d063b394a34ed17 /target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch | |
parent | 04d3308b6248ef21a6f0bc3378b342906c2d2865 (diff) | |
download | upstream-7762c07c88980cff85ec20c12f18cd172260e9d9.tar.gz upstream-7762c07c88980cff85ec20c12f18cd172260e9d9.tar.bz2 upstream-7762c07c88980cff85ec20c12f18cd172260e9d9.zip |
mediatek: bump to v4.14
This drops support for all the !emmc EVB and adds banannaPi-R2
Also drop mtkhnat until the nftables offoad driver is ready
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch')
-rw-r--r-- | target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch b/target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch new file mode 100644 index 0000000000..96e7072a33 --- /dev/null +++ b/target/linux/mediatek/patches-4.14/0062-mdio-atomic.patch @@ -0,0 +1,14 @@ +--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c ++++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c +@@ -97,7 +97,10 @@ static int mtk_mdio_busy_wait(struct mtk + return 0; + if (time_after(jiffies, t_start + PHY_IAC_TIMEOUT)) + break; +- usleep_range(10, 20); ++ if (in_atomic()) ++ udelay(10); ++ else ++ usleep_range(10, 20); + } + + dev_err(eth->dev, "mdio: MDIO timeout\n"); |