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: [email protected] Fixes: 4e4aafc ("net: mdio: Add dedicated C45 API to MDIO bus drivers") Signed-off-by: Jiawen Wu <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4e9f0ec commit 408c090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)