OSDN Git Service

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)
commit45de77ff8286156f78ac2beef03f6088bb3e451b
tree4ed06a60199887ca6303fe3acd5d0fcf76af5bde
parent907b9b9fcaef7fb193105d9d61cd795b38ee2530
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