Skip to content

Commit 408c090

Browse files
Jiawen Wukuba-moo
authored andcommitted
net: mdio: fix the wrong parameters
PHY address and device address are passed in the wrong order. Cc: stable@vger.kernel.org Fixes: 4e4aafc ("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>
1 parent 4e9f0ec commit 408c090

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/phy/mdio_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ EXPORT_SYMBOL_GPL(mdiobus_modify_changed);
12871287
* @mask: bit mask of bits to clear
12881288
* @set: bit mask of bits to set
12891289
*/
1290-
int mdiobus_c45_modify_changed(struct mii_bus *bus, int devad, int addr,
1290+
int mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad,
12911291
u32 regnum, u16 mask, u16 set)
12921292
{
12931293
int err;

0 commit comments

Comments
 (0)