diff options
| author | 2018-03-11 15:00:37 +0100 | |
|---|---|---|
| committer | 2018-03-12 21:00:20 -0400 | |
| commit | c69851e940bcdaf202d20ca7099145d9b7ec7368 (patch) | |
| tree | 4024386a0ec1ea4ef7599d26f7071b8a43afd15b /drivers/net/ethernet/ibm/ibmvnic.c | |
| parent | Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue (diff) | |
| download | wireguard-linux-c69851e940bcdaf202d20ca7099145d9b7ec7368.tar.xz wireguard-linux-c69851e940bcdaf202d20ca7099145d9b7ec7368.zip | |
net: phy: set link state to down when creating the phy_device
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 and the PHY remains down this inconsistency remains and calls
to functions like phy_print_status() give false results.
Therefore change the initialization to link being down.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.c')
0 files changed, 0 insertions, 0 deletions
