]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: use common irq routines for girq and pirq
authorArun Ramadoss <arun.ramadoss@microchip.com>
Thu, 22 Sep 2022 07:10:27 +0000 (12:40 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 19:42:01 +0000 (12:42 -0700)
commit86d9082f94f5f6fd8bc8a1076b64548bbcd15f54
tree80896155ba3db53001dac676357830e23c6a5c6d
parent2169f48a4579df5fb4c0506572f4ac26b7b26821
net: dsa: microchip: use common irq routines for girq and pirq

The global port interrupt routines and individual ports interrupt
routines has similar implementation except the mask & status register
and number of nested irqs in them.  The mask & status register and
pointer to ksz_device is added to ksz_irq and uses the ksz_irq as
irq_chip_data.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h