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)
commita18e6521a7d95dae8c65b5b0ef6bbe624fbe808c
tree76736255d7c29496c3dccdc8f2e3092eff693d8b
parent291dcae39bc482f7edc91a50d97027327e0cf5f9
net: phylink: handle NA interface mode in phylink_fwnode_phy_connect()

Commit 4904b6ea1f9db ("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