]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
ARM: imx6q: remove Atheros AR8035 SmartEEE fixup
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 11 May 2021 04:37:33 +0000 (06:37 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 03:32:46 +0000 (11:32 +0800)
This fixup removes the Lpi_en bit.

If this patch breaks functionality of your board, use following device
tree properties: qca,smarteee-tw-us-1g and qca,smarteee-tw-us-100m.

For example:

ethernet-phy@X {
reg = <0xX>;
qca,smarteee-tw-us-1g = <24>;
....
};

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx6q.c

index d12b571a61ac26f900bae0f7d929490bdee1f810..c9d7c29d95e1e1eddf08196f7e42c34b7de496f4 100644 (file)
@@ -68,32 +68,11 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8609, ventana_pciesw_early_fixup);
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8606, ventana_pciesw_early_fixup);
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8604, ventana_pciesw_early_fixup);
 
-static int ar8035_phy_fixup(struct phy_device *dev)
-{
-       u16 val;
-
-       /* Ar803x phy SmartEEE feature cause link status generates glitch,
-        * which cause ethernet link down/up issue, so disable SmartEEE
-        */
-       phy_write(dev, 0xd, 0x3);
-       phy_write(dev, 0xe, 0x805d);
-       phy_write(dev, 0xd, 0x4003);
-
-       val = phy_read(dev, 0xe);
-       phy_write(dev, 0xe, val & ~(1 << 8));
-
-       return 0;
-}
-
-#define PHY_ID_AR8035 0x004dd072
-
 static void __init imx6q_enet_phy_init(void)
 {
        if (IS_BUILTIN(CONFIG_PHYLIB)) {
                phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
                                ksz9021rn_phy_fixup);
-               phy_register_fixup_for_uid(PHY_ID_AR8035, 0xffffffef,
-                               ar8035_phy_fixup);
        }
 }