[PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-12-18 Thread Kunihiko Hayashi
Even though the link is down before entering hibernation, there is an issue that the network interface always links up after resuming from hibernation. If the link is still down before enabling the network interface, and after resuming from hibernation, the phydev->state is forcibly set to PHY_UP

Re: [RFC PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-12-02 Thread Heiner Kallweit
On 03.12.2018 05:35, Kunihiko Hayashi wrote: > Hi Florian Heiner, > > On Fri, 30 Nov 2018 19:47:37 +0100 wrote: > >> On 30.11.2018 18:46, Florian Fainelli wrote: >>> >>> >>> On 11/30/2018 1:25 AM, Kunihiko Hayashi wrote: Even though the link is down before entering hibernation, there i

Re: [RFC PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-12-02 Thread Kunihiko Hayashi
Hi Florian Heiner, On Fri, 30 Nov 2018 19:47:37 +0100 wrote: > On 30.11.2018 18:46, Florian Fainelli wrote: > > > > > > On 11/30/2018 1:25 AM, Kunihiko Hayashi wrote: > >> Even though the link is down before entering hibernation, > >> there is an issue that the network interface always links u

Re: [RFC PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-11-30 Thread Heiner Kallweit
On 30.11.2018 18:46, Florian Fainelli wrote: > > > On 11/30/2018 1:25 AM, Kunihiko Hayashi wrote: >> Even though the link is down before entering hibernation, >> there is an issue that the network interface always links up after resuming >> from hibernation. >> >> The phydev->state is PHY_READY b

Re: [RFC PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-11-30 Thread Florian Fainelli
On 11/30/2018 1:25 AM, Kunihiko Hayashi wrote: > Even though the link is down before entering hibernation, > there is an issue that the network interface always links up after resuming > from hibernation. > > The phydev->state is PHY_READY before enabling the network interface, so > the link is

[RFC PATCH net v2] net: phy: Fix the issue that netif always links up after resuming

2018-11-30 Thread Kunihiko Hayashi
Even though the link is down before entering hibernation, there is an issue that the network interface always links up after resuming from hibernation. The phydev->state is PHY_READY before enabling the network interface, so the link is down. After resuming from hibernation, the phydev->state is f