1 --- a/arch/arm/mach-ixp4xx/avila-setup.c
2 +++ b/arch/arm/mach-ixp4xx/avila-setup.c
5 static void __init avila_gw2347_setup(void)
7 + avila_npeb_data.quirks |= IXP4XX_ETH_QUIRK_GW23X7;
8 platform_device_register(&avila_npeb_device);
10 avila_gpio_leds[0].gpio = AVILA_GW23X7_LED_USER_GPIO;
13 static void __init avila_gw2357_setup(void)
15 + avila_npeb_data.quirks |= IXP4XX_ETH_QUIRK_GW23X7;
16 platform_device_register(&avila_npeb_device);
18 avila_gpio_leds[0].gpio = AVILA_GW23X7_LED_USER_GPIO;
19 --- a/drivers/net/arm/ixp4xx_eth.c
20 +++ b/drivers/net/arm/ixp4xx_eth.c
25 + if (port->plat->quirks & IXP4XX_ETH_QUIRK_GW23X7) {
26 + mdio_write(dev, 1, 0x19,
27 + (mdio_read(dev, 1, 0x19) & 0xfffe) | 0x8000);
29 + printk(KERN_DEBUG "%s: phy_id of the DP83848 changed to 0\n",
33 /* restart auto negotiation */
34 bmcr = mdio_read(dev, phy_id, MII_BMCR);
35 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART);
36 --- a/include/asm-arm/arch-ixp4xx/platform.h
37 +++ b/include/asm-arm/arch-ixp4xx/platform.h
43 +#define IXP4XX_ETH_QUIRK_GW23X7 0x00000001
46 /* Information about built-in HSS (synchronous serial) interfaces */