]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell-88x2222: set proper phydev->port
authorIvan Bornyakov <i.bornyakov@metrotek.ru>
Sun, 12 Jun 2022 18:19:34 +0000 (21:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2022 08:25:31 +0000 (09:25 +0100)
commit84fa4c9775242ad3e4b8b0b4ff79c83980eb87f8
treee60c9e787236d47a73fc82faf70df2ddbb14108f
parent0089ba68612712dd34bc0e51411286d0724ce265
net: phy: marvell-88x2222: set proper phydev->port

phydev->port was not set and always reported as PORT_TP.
Set phydev->port according to inserted SFP module.

Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell-88x2222.c