Re: [PATCH net-next 2/3] net: ethernet: oa_tc6: deliver the PHY interrupt to phylib
From: Parthiban Veerasooran
Date: Mon Sep 07 2026 - 00:07:12 EST
On 04/09/26 6:37 pm, Andrew Lunn wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safeThank you for the suggestion and confirmation. I do not think memcpy() would fit here since we are assigning the same value to all entries rather than copying from another buffer. But I will also check whether any helper would be appropriate here. If not will keep this loop as-is.
+ /* Populate all irq[] entries before registration so
+ * phy_device_create() picks up the virtual IRQ regardless of
+ * the PHY's MDIO address.
+ */
+ for (i = 0; i < PHY_MAX_ADDR; i++)
+ tc6->mdiobus->irq[i] = tc6->phy_virq;
Yes, or just a memcpy().
Best regards,
Parthiban V>
Andrew