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

Commit eaaecaa72f712 ("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