net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset
Based on a unpublished patch from Andrew Lunn:

    When the switch is hardware reset, it reads the contents of the
    EEPROM. This can contain instructions for programming values into
    registers and to perform waits between such programming. Reading
    the EEPROM can take longer than the 100ms
    mv88e6xxx_hardware_reset() waits after deasserting the reset
    GPIO. So poll the EEPROM done bit to ensure it is complete.

    Signed-off-by: Andrew Lunn <andrew@lunn.ch>

orignal patch augmented to have necessary Global 1 plubming, ported to
Barebox and slightly changed.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6e12f17 commit 3dbc50408b2514125a7170da77912688eb501655
@Andrey Smirnov Andrey Smirnov authored on 24 Sep 2019
Sascha Hauer committed on 14 Oct 2019
Showing 5 changed files
View
drivers/net/phy/mv88e6xxx/Makefile
View
drivers/net/phy/mv88e6xxx/chip.c
View
drivers/net/phy/mv88e6xxx/chip.h
View
drivers/net/phy/mv88e6xxx/global1.c 0 → 100644
View
drivers/net/phy/mv88e6xxx/global1.h 0 → 100644