lkml.org 
[lkml]   [2019]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 187/293] net: dsa: mv88e6xxx: wait after reset deactivation
    Date
    From: Baruch Siach <baruch@tkos.co.il>

    [ Upstream commit 7b75e49de424ceb53d13e60f35d0a73765626fda ]

    Add a 1ms delay after reset deactivation. Otherwise the chip returns
    bogus ID value. This is observed with 88E6390 (Peridot) chip.

    Signed-off-by: Baruch Siach <baruch@tkos.co.il>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/dsa/mv88e6xxx/chip.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/drivers/net/dsa/mv88e6xxx/chip.c
    +++ b/drivers/net/dsa/mv88e6xxx/chip.c
    @@ -4044,6 +4044,8 @@ static int mv88e6xxx_probe(struct mdio_d
    goto out_g1_irq;
    }
    }
    + if (chip->reset)
    + usleep_range(1000, 2000);

    err = mv88e6xxx_mdios_register(chip, np);
    if (err)

    \
     
     \ /
      Last update: 2019-07-29 22:10    [W:3.137 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site