Skip to content

Commit faac69a

Browse files
hkallweitkuba-moo
authored andcommitted
r8169: don't scan PHY addresses > 0
The PHY address is a dummy, because r8169 PHY access registers don't support a PHY address. Therefore scan address 0 only. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent cbe0872 commit faac69a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5222,6 +5222,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
52225222
new_bus->priv = tp;
52235223
new_bus->parent = &pdev->dev;
52245224
new_bus->irq[0] = PHY_MAC_INTERRUPT;
5225+
new_bus->phy_mask = GENMASK(31, 1);
52255226
snprintf(new_bus->id, MII_BUS_ID_SIZE, "r8169-%x-%x",
52265227
pci_domain_nr(pdev->bus), pci_dev_id(pdev));
52275228

0 commit comments

Comments
 (0)