net/faraday: Clear stale interrupts
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 21 Sep 2016 23:05:01 +0000 (08:35 +0930)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 07:31:14 +0000 (03:31 -0400)
commit08c9c126004e999f0c05b369d1e0cc757e6040cc
tree9382323b5cde04bbc3c59007cfd7913169910ba5
parent2a0ab8ebbec634127987fc8dbbd09a7fd7274e3d
net/faraday: Clear stale interrupts

There is stale interrupt (PHYSTS_CHG in ISR, bit#6 in 0x0) from
the bootloader (uboot) when enabling the MAC. The stale interrupts
aren't part of kernel and should be cleared.

This clears the stale interrupts in ISR (0x0) when enabling the MAC.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c