]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fix reading fixed phy status
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 24 Feb 2019 17:01:18 +0000 (18:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 06:29:14 +0000 (22:29 -0800)
commit50c99ce7edab0fc8a2e5f848f9a8a2f8376bc4ea
tree55a73e898c3b20ef7d090b82a7cd3c7623793aa7
parentd9f0f07e0b9c693761930cf8c5fb39a573cf017c
net: phy: fix reading fixed phy status

With the switch to phy_resolve_aneg_linkmode() we don't read from the
chip any longer what is advertised but use phydev->advertising directly.
For a fixed phy however this bitmap is empty so far, what results in
no common mode being found. This breaks DSA. Fix this by advertising
everything that is supported. For a normal phy this done by phy_probe().

Fixes: 03efb164adbf ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c