Re: [RFC Patch net-next 1/4] net: dsa: microchip: determine number of port irq based on switch type

From: Andrew Lunn
Date: Mon Sep 12 2022 - 17:22:27 EST


On Fri, Sep 09, 2022 at 09:31:17PM +0530, Arun Ramadoss wrote:
> Currently the number of port irqs is hard coded for the lan937x switch
> as 6. In order to make the generic interrupt handler for ksz switches,
> number of port irq supported by the switch is added to the
> ksz_chip_data. It is 4 for ksz9477, 2 for ksz9897 and 3 for ksz9567.
>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@xxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew