]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: at91: remove ksz8081 phy fixup registration for sama5d4ek board
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 4 Mar 2015 11:20:12 +0000 (12:20 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 12 Mar 2015 14:30:32 +0000 (15:30 +0100)
Commit 2b0ba96cea60 ("net: phy: micrel: disable NAND-tree for KSZ8021,
KSZ8031, KSZ8051, KSZ8081") automated the NAND-tree mode deactivation
process, thus making this phy fixup useless.
Remove it along with the associated headers inclusion.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
[nicolas.ferre@atmel.com: remove selection of PHYLIB in at91 Kconfig]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/Kconfig
arch/arm/mach-at91/sama5.c

index c74a44324e5bc3dc7cb4b5e0f31e64ca8c167f5f..d65981a8a4a9fd6381bcf83d2a69eb0a0e6afcd6 100644 (file)
@@ -24,7 +24,6 @@ config SOC_SAMA5
        select GENERIC_CLOCKEVENTS
        select MEMORY
        select ATMEL_SDRAMC
-       select PHYLIB if NETDEVICES
 
 menu "Atmel AT91 System-on-Chip"
 
index 03dcb441f3d24662c3e7b00b8eea136426723a86..23d067a91cff954fb64989a6b6b266b581679305 100644 (file)
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/gpio.h>
-#include <linux/micrel_phy.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
-#include <linux/phy.h>
 #include <linux/clk-provider.h>
-#include <linux/phy.h>
 
 #include <mach/hardware.h>
 
 
 #include "generic.h"
 
-static int ksz8081_phy_fixup(struct phy_device *phy)
-{
-       int value;
-
-       value = phy_read(phy, 0x16);
-       value &= ~0x20;
-       phy_write(phy, 0x16, value);
-
-       return 0;
-}
-
 static void __init sama5_dt_device_init(void)
 {
-       if (of_machine_is_compatible("atmel,sama5d4ek") &&
-          IS_ENABLED(CONFIG_PHYLIB)) {
-               phy_register_fixup_for_id("fc028000.etherne:00",
-                                               ksz8081_phy_fixup);
-       }
-
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
        at91sam9x5_pm_init();
 }