]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Add watchdog interrupt handler
authorAndrew Lunn <andrew@lunn.ch>
Wed, 8 Feb 2017 23:03:42 +0000 (00:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2017 14:30:21 +0000 (09:30 -0500)
commited2cc63d4f119961232fb786e30719fa38655887
tree25b5443f0b5d58448ff979679d2512db353de654
parentdacd384202e2e4c32946da1cc7f66534f99ca985
net: dsa: mv88e6xxx: Add watchdog interrupt handler

The switch contains a watchdog looking for issues with the internal
gubbins of the switch. Hook the interrupt the watchdog triggers and
log the value of the control register indicating why the watchdog
fired. The watchdog can only be cleared with a switch reset, which
will destroy the current configuration. Rather than doing this, just
disable the interrupt.

The mv88e6390 family has different watchdog registers. So use an ops
structure, so support for the mv88e6390 family can be added later.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.c
drivers/net/dsa/mv88e6xxx/global2.h
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h