Skip to contentSkip to conversation

r8169: don't scan PHY addresses > 0

PATCH Applied Heiner Kallweit 3 participants 3 messages Feb 4, 2025 – Feb 6, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH v2 1/1 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.

---
v2:
- Because of the IOCTL interface, don't remove the phyaddr > 0 checks.

---
 drivers/net/ethernet/realtek/r8169_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/realtek/r8169_main.c +1 -0
index 5a5eba49c..7306c8e32 100644
@@ -5222,6 +5222,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
 	new_bus->priv = tp;
 	new_bus->parent = &pdev->dev;
 	new_bus->irq[0] = PHY_MAC_INTERRUPT;
+	new_bus->phy_mask = GENMASK(31, 1);
 	snprintf(new_bus->id, MII_BUS_ID_SIZE, "r8169-%x-%x",
 		 pci_domain_nr(pdev->bus), pci_dev_id(pdev));
 
Signature · 1 line
2.48.1
#2 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Tue, 4 Feb 2025 07:58:17 +0100 you wrote:

The PHY address is a dummy, because r8169 PHY access registers don't support a PHY address. Therefore scan address 0 only.

---
v2:
- Because of the IOCTL interface, don't remove the phyaddr > 0 checks.

[...]

Here is the summary with links:
- [v2,net-next] r8169: don't scan PHY addresses > 0

    https://git.kernel.org/netdev/net-next/c/faac69a4ae5a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html