OSDN Git Service

net: dsa: b53: Make SRAB driver manage port interrupts
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Sep 2018 19:42:12 +0000 (12:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 14:48:33 +0000 (07:48 -0700)
commit16994374a6fc6a620aae199243c34ccb9efa0ac7
treecabafc41f0510bfeba75bcb826c6e4a01e971744
parent8ca7c1608c34aeaed2411af60b3531b2ddf85cc3
net: dsa: b53: Make SRAB driver manage port interrupts

Update the SRAB driver to manage per-port interrupts. Since we cannot
sleep during b53_io_ops, schedule a workqueue whenever we get a port
specific interrupt. We will later make use of this to call back into
PHYLINK when there is e.g: a link state change.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_srab.c