Re: [PATCH net-next] net: phy: set link state to down when creating the phy_device

2018-03-12 Thread David Miller
From: Heiner Kallweit Date: Sun, 11 Mar 2018 15:00:37 +0100 > Currently the link state is initialized to "up" when the phy_device is > being created. This is not consistent with the phy state being > initialized to PHY_DOWN. > > Usually this doen't do any harm because the link state is updated >

Re: [PATCH net-next] net: phy: set link state to down when creating the phy_device

2018-03-12 Thread Florian Fainelli
On 03/11/2018 07:00 AM, Heiner Kallweit wrote: > Currently the link state is initialized to "up" when the phy_device is > being created. This is not consistent with the phy state being > initialized to PHY_DOWN. > > Usually this doen't do any harm because the link state is updated > once the PHY r

[PATCH net-next] net: phy: set link state to down when creating the phy_device

2018-03-11 Thread Heiner Kallweit
Currently the link state is initialized to "up" when the phy_device is being created. This is not consistent with the phy state being initialized to PHY_DOWN. Usually this doen't do any harm because the link state is updated once the PHY reaches state PHY_AN. However e.g. if a LAN port isn't used