netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mv88e6xxx: Timeout waiting for EEPROM done
@ 2023-09-14 14:31 Fabio Estevam
  2023-09-14 15:15 ` Andrew Lunn
  0 siblings, 1 reply; 19+ messages in thread
From: Fabio Estevam @ 2023-09-14 14:31 UTC (permalink / raw)
  To: Andrew Lunn, Vladimir Oltean, l00g33k; +Cc: netdev, Jakub Kicinski, sashal

Hi,

On an imx8mn-based board with an 88E6320 switch, the following error
started showing up after the commit below on the 6.1 LTS branch:

mv88e6085 30be0000.ethernet-1:00: Timeout waiting for EEPROM done

commit df83af3b996d79d7eb51eaefdffb7f4352e55052
Author: Alfred Lee <l00g33k@gmail.com>
Date:   Mon Aug 14 17:13:23 2023 -0700

    net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset

    [ Upstream commit 23d775f12dcd23d052a4927195f15e970e27ab26 ]

    If the switch is reset during active EEPROM transactions, as in
    just after an SoC reset after power up, the I2C bus transaction
    may be cut short leaving the EEPROM internal I2C state machine
    in the wrong state.  When the switch is reset again, the bad
    state machine state may result in data being read from the wrong
    memory location causing the switch to enter unexpected mode
    rendering it inoperational.

    Fixes: a3dcb3e7e70c ("net: dsa: mv88e6xxx: Wait for EEPROM done
after HW reset")
    Signed-off-by: Alfred Lee <l00g33k@gmail.com>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Link: https://lore.kernel.org/r/20230815001323.24739-1-l00g33k@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

What is the proper way to avoid this error?

Thanks

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-09-20 16:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 14:31 mv88e6xxx: Timeout waiting for EEPROM done Fabio Estevam
2023-09-14 15:15 ` Andrew Lunn
2023-09-14 16:22   ` Fabio Estevam
2023-09-14 19:05     ` Fabio Estevam
2023-09-14 21:38       ` Andrew Lunn
2023-09-15  0:40         ` Fabio Estevam
2023-09-15 13:08           ` Andrew Lunn
2023-09-15 14:13             ` Fabio Estevam
2023-09-15 14:34               ` Andrew Lunn
2023-09-15 17:05                 ` Fabio Estevam
2023-09-15 18:23                   ` Andrew Lunn
2023-09-19 19:23                     ` Fabio Estevam
2023-09-19 19:44                       ` Andrew Lunn
2023-09-20  0:47                         ` Fabio Estevam
2023-09-20 14:52                           ` Andrew Lunn
2023-09-20 16:28                             ` Fabio Estevam
2023-09-20 16:46                               ` Andrew Lunn
2023-09-16 21:43         ` Alfred Lee
2023-09-19 18:14         ` Alfred Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).