OSDN Git Service

net: phy: microchip_t1s: fix reset complete status handling
authorParthiban Veerasooran <Parthiban.Veerasooran@microchip.com>
Fri, 26 May 2023 15:23:46 +0000 (20:53 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 May 2023 09:49:41 +0000 (11:49 +0200)
commit1d7650b8ce6041be4ea0436ad7a69c057b4d22f8
tree65d9b776a1d0740a9edaadbdf83779d615941700
parent6f12765ecad399d3cc5f58fcaf7f3c69c275326c
net: phy: microchip_t1s: fix reset complete status handling

As per the datasheet DS-LAN8670-1-2-60001573C.pdf, the Reset Complete
status bit in the STS2 register has to be checked before proceeding to
the initial configuration. Reading STS2 register will also clear the
Reset Complete interrupt which is non-maskable.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Parthiban Veerasooran <Parthiban.Veerasooran@microchip.com>
Reviewed-by: Ramón Nordin Rodriguez <ramon.nordin.rodriguez@ferroamp.se>
Tested-by: Ramón Nordin Rodriguez <ramon.nordin.rodriguez@ferroamp.se>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/microchip_t1s.c