]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc41eada78bf41365abac22f94991f998051f34d
treec2aa78d2151ee6882fa5d142bad9740d6589e718
parent1734f604f1c4d0cb19f79ad29b2a58e6f1f748ee
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: 83c070ed8c89 ("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