]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit825753084c55200eb057372c98d384fb86b815ab
tree9382323b5cde04bbc3c59007cfd7913169910ba5
parent03f370e0117a9ee99024a5f2e3a5099364751eae
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