OSDN Git Service

net: dsa: microchip: ksz8563: Add number of port irq
authorRakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Mon, 7 Nov 2022 09:29:21 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2022 13:06:01 +0000 (13:06 +0000)
KSZ8563 have three port interrupts: PTP, PHY and ACL. Add
port_nirq as 3 for KSZ8563 inside ksz_chip_data.

Signed-off-by: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c

index f7e414e..8c8db31 100644 (file)
@@ -1039,6 +1039,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
                .num_statics = 16,
                .cpu_ports = 0x07,      /* can be configured as cpu port */
                .port_cnt = 3,          /* total port count */
+               .port_nirqs = 3,
                .ops = &ksz9477_dev_ops,
                .mib_names = ksz9477_mib_names,
                .mib_cnt = ARRAY_SIZE(ksz9477_mib_names),