net: bcmgenet: synchronize irq0 status between the isr and task
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:47 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commit07c52d6a0b955a8a28834f9354793cfc4b81d0e9
treec2aa78d2151ee6882fa5d142bad9740d6589e718
parent7627409cc4970e8c8b9de6945ad86a575290a94e
net: bcmgenet: synchronize irq0 status between the isr and task

Add a spinlock to ensure that irq0_stat is not unintentionally altered
as the result of preemption.  Also removed unserviced irq0 interrupts
and removed irq1_stat since there is no bottom half service for those
interrupts.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h