]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: dsa_slave_phy_connect(): extend phy's flags with port specific phy flags
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 14 Jun 2021 04:31:24 +0000 (06:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:54:43 +0000 (12:54 -0700)
commitc6385406ab6cd9e8c0accf88a4befb5121b9eee7
tree2c9df1cf06da8dcf2ef372d782219a3b6b68234e
parente26ef8b00357d87118e7dea71308d3cdbce13801
net: dsa: dsa_slave_phy_connect(): extend phy's flags with port specific phy flags

The current get_phy_flags() is only processed when we connect to a PHY
via a designed phy-handle property via phylink_of_phy_connect(), but if
we fallback on the internal MDIO bus created by a switch and take the
dsa_slave_phy_connect() path then we would not be processing that flag
and using it at PHY connection time.

Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c