net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context
authorFuqian Huang <huangfq.daxian@gmail.com>
Fri, 9 Aug 2019 05:35:39 +0000 (13:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 05:43:34 +0000 (22:43 -0700)
commit8c25d0887a8bd0e1ca2074ac0c6dff173787a83b
tree8565ba4f2a198116cff66a723b71c7c5a524b8a0
parent227f2f030e28d8783c3d10ce70ff4ba79cad653f
net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

As spin_unlock_irq will enable interrupts.
Function tsi108_stat_carry is called from interrupt handler tsi108_irq.
Interrupts are enabled in interrupt handler.
Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq
in IRQ context to avoid this.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tundra/tsi108_eth.c