3a9668b6411afc116a744001758822ff06f4886f
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.14 / 001-net-stmmac-snps-dwmac-mdio-MDIOs-are-automatically-r.patch
1 From b5beecb580376cd8d959eb990abece6a748a3ce3 Mon Sep 17 00:00:00 2001
2 From: Corentin Labbe <clabbe.montjoie@gmail.com>
3 Date: Tue, 24 Oct 2017 19:57:12 +0200
4 Subject: [PATCH] net: stmmac: snps, dwmac-mdio MDIOs are automatically
5 registered
6
7 stmmac bindings docs said that its mdio node must have
8 compatible = "snps,dwmac-mdio";
9 Since dwmac-sun8i does not have any good reasons to not doing it, all
10 their MDIO node must have it.
11
12 Since these compatible is automatically registered, dwmac-sun8i compatible
13 does not need to be in need_mdio_ids.
14
15 Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 ---
18 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 4 ----
19 1 file changed, 4 deletions(-)
20
21 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
22 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
23 @@ -318,10 +318,6 @@ static int stmmac_dt_phy(struct plat_stm
24 bool mdio = true;
25 static const struct of_device_id need_mdio_ids[] = {
26 { .compatible = "snps,dwc-qos-ethernet-4.10" },
27 - { .compatible = "allwinner,sun8i-a83t-emac" },
28 - { .compatible = "allwinner,sun8i-h3-emac" },
29 - { .compatible = "allwinner,sun8i-v3s-emac" },
30 - { .compatible = "allwinner,sun50i-a64-emac" },
31 {},
32 };
33