Patch "net: dsa: mv88e6xxx: Fix interrupt masking on removal" has been added to the 4.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
net: dsa: mv88e6xxx: Fix interrupt masking on removal
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-dsa-mv88e6xxx-fix-interrupt-masking-on-removal.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Feb 23 11:45:09 CET 2018
From: Andrew Lunn <[email protected]>
Date: Thu, 7 Dec 2017 01:05:56 +0100
Subject: net: dsa: mv88e6xxx: Fix interrupt masking on removal
From: Andrew Lunn <[email protected]>
[ Upstream commit 3d5fdba1842bdd2eef29364c660558cb4cbb3fe0 ]
When removing the interrupt handling code, we should mask the generation of interrupts. The code however unmasked all interrupts. This can then cause a new interrupt. We then get into a deadlock where the interrupt thread is waiting to run, and the code continues, trying to remove the interrupt handler, which means waiting for the thread to complete. On a UP machine this deadlocks.
Fix so we really mask interrupts in the hardware. The same error is made in the error path when install the interrupt handling code.
--- drivers/net/dsa/mv88e6xxx/chip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/dsa/mv88e6xxx/chip.c +2 -2
@@ -339,7 +339,7 @@ static void mv88e6xxx_g1_irq_free(structu16 mask;mv88e6xxx_g1_read (chip,MV88E6XXX_G1_CTL1 , &mask); - mask |=GENMASK (chip->g1_irq.nirqs,0 ); + mask &= ~GENMASK (chip->g1_irq.nirqs,0 );mv88e6xxx_g1_write (chip,MV88E6XXX_G1_CTL1 , mask);free_irq (chip->irq, chip);
@@ -395,7 +395,7 @@ static int mv88e6xxx_g1_irq_setup(structreturn 0 ; out_disable: - mask |=GENMASK (chip->g1_irq.nirqs,0 ); + mask &= ~GENMASK (chip->g1_irq.nirqs,0 );mv88e6xxx_g1_write (chip,MV88E6XXX_G1_CTL1 , mask); out_mapping:
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/net-dsa-mv88e6xxx-fix-interrupt-masking-on-removal.patch queue-4.14/net-dsa-mv88e6xxx-unregister-mdio-bus-on-error-path.patch queue-4.14/gianfar-disable-eee-autoneg-by-default.patch