]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: clear interrupts when disabling them
authorNathan Sullivan <nathan.sullivan@ni.com>
Thu, 14 Jan 2016 19:27:27 +0000 (13:27 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2016 19:47:09 +0000 (14:47 -0500)
commit2ba5d3d3e3ef1cf51d5325306eb3e1ff04ede576
treeefe74e83c7ffcab7714e3ffe580f1d9209eb208f
parent30c0682e706989d45a105ec2a1ce3cd6c1aea22d
net: macb: clear interrupts when disabling them

Disabling interrupts with the IDR register does not stop the macb hardware
from asserting its interrupt line if there are interrupts pending.  Always
clear the interrupts using ISR, and be sure to write it on hardware that
is not read-to-clear, like Zynq.  Not doing so will cause interrupts when
the driver doesn't expect them.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c