net: mdio: fix the wrong parameters
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 19 Jun 2023 09:49:48 +0000 (17:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jun 2023 03:17:49 +0000 (20:17 -0700)
commit408c090002c8ca5da3da1417d1d675583379fae6
treec1897b98dcef54cf6e13720f725eb30e47a553ec
parent4e9f0ec38852c18faa9689322e758575af33e5d4
net: mdio: fix the wrong parameters

PHY address and device address are passed in the wrong order.

Cc: stable@vger.kernel.org
Fixes: 4e4aafcddbbf ("net: mdio: Add dedicated C45 API to MDIO bus drivers")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20230619094948.84452-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus.c