RE: [EXTERNAL] Re: [PATCH net 0/1] net: phy: Fix interrupt mask loss on resume from hibernation

2021-01-22 Thread Badel, Laurent
> From: Heiner Kallweit > Sent: Friday, January 22, 2021 4:20 PM > The (optional) software reset is done via soft_reset callback. > So if the PHY in question needs special treatment after a soft reset, > why not add it to the soft_reset callback? Thank you very much for the fast reply. This mak

Re: [PATCH net 0/1] net: phy: Fix interrupt mask loss on resume from hibernation

2021-01-22 Thread Heiner Kallweit
On 22.01.2021 15:35, Laurent Badel wrote: > Some PHYs such as SMSC LAN87xx clear the interrupt mask register on > software reset. Since mdio_bus_phy_restore() calls phy_init_hw() which > does a software reset of the PHY, these PHYs will lose their interrupt > mask configuration on resuming from h

[PATCH net 0/1] net: phy: Fix interrupt mask loss on resume from hibernation

2021-01-22 Thread Laurent Badel
Some PHYs such as SMSC LAN87xx clear the interrupt mask register on software reset. Since mdio_bus_phy_restore() calls phy_init_hw() which does a software reset of the PHY, these PHYs will lose their interrupt mask configuration on resuming from hibernation. I initially reconfigured only the PHY