Messages in this thread | | | Date | Fri, 2 Sep 2022 09:00:49 -0700 | Subject | Re: [Patch net-next 1/3] net: dsa: microchip: add reference to ksz_device inside the ksz_port | From | Florian Fainelli <> |
| |
On 9/2/2022 3:32 AM, Arun Ramadoss wrote: > struct ksz_port doesn't have reference to ksz_device as of now. In order > to find out from which port interrupt has triggered, we need to pass the > struct ksz_port as a host data. When the interrupt is triggered, we can > get the port from which interrupt triggered, but to identify it is phy > interrupt we have to read status register. The regmap structure for > accessing the device register is present in the ksz_device struct. To > access the ksz_device from the ksz_port, the reference is added to it > with port number as well. > > Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> > Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> -- Florian
| |