Thread (14 messages) flat view 14 messages, 2 authors, 3d ago

Re: [PATCH net-next 2/3] net: ethernet: oa_tc6: deliver the PHY interrupt to phylib

From: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
Date: 2026-09-07 04:02:50
Also in: lkml

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 safe
quoted
+     /* 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().
Thank 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.

Best regards,
Parthiban V>
      Andrew
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help