]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: centralize SERDES IRQ handling
authorVivien Didelot <vivien.didelot@gmail.com>
Sat, 31 Aug 2019 20:18:36 +0000 (16:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:16:38 +0000 (12:16 -0700)
commit61c7695ea452ada60ca76e026792c44946b33547
tree4ed06a60199887ca6303fe3acd5d0fcf76af5bde
parent00d087de07c243c5f594a567e82dec4136919560
net: dsa: mv88e6xxx: centralize SERDES IRQ handling

The .serdes_irq_setup are all following the same steps: get the SERDES
lane, get the IRQ mapping, request the IRQ, then enable it. So do
the .serdes_irq_free implementations: get the SERDES lane, disable
the IRQ, then free it.

This patch removes these operations in favor of generic functions.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/serdes.c
drivers/net/dsa/mv88e6xxx/serdes.h