]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: handle NA interface mode in phylink_fwnode_phy_connect()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 19 Nov 2021 16:28:06 +0000 (16:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 13:16:26 +0000 (13:16 +0000)
commit41652b8e4029adcdf6a57e7398115d9f4629c99a
tree76736255d7c29496c3dccdc8f2e3092eff693d8b
parentfb0f6cbd35985452ca74c28245e5bd8e1637cf0b
net: phylink: handle NA interface mode in phylink_fwnode_phy_connect()

Commit a8c8cfc0c29aa ("net: phy: phylink: Use PHY device interface if
N/A") introduced handling for the phy interface mode where this is not
known at phylink creation time. This was never added to the OF/fwnode
paths, but is necessary when the phy is present in DT, but the phy-mode
is not specified.

Add this handling.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c