summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-02-23 17:43:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-06 13:05:38 +0100
commit0e23eeb0fc58f03e06ca026f17c70949d43b15fb (patch)
tree66dbb1665c7ccbacb6957ff07f29afb05d2ee3c0 /drivers
parent646e5c77b418aa1f9e79c53ea5a8e4ebcd5f9f5d (diff)
downloadlinux-stable-0e23eeb0fc58f03e06ca026f17c70949d43b15fb.tar.gz
linux-stable-0e23eeb0fc58f03e06ca026f17c70949d43b15fb.tar.bz2
linux-stable-0e23eeb0fc58f03e06ca026f17c70949d43b15fb.zip
net: dsa: mv88e6xxx: Release lock while requesting IRQ
[ Upstream commit 342a0ee70acbee97fdeb91349420f8744eb291fb ] There is no need to hold the register lock while requesting the GPIO interrupt. By not holding it we can also avoid a false positive lockdep splat. Reported-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/mv88e6xxx/chip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 703e6bdaf0e1..d075f0f7a3de 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -456,10 +456,12 @@ static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip)
*/
irq_set_lockdep_class(chip->irq, &lock_key, &request_key);
+ mutex_unlock(&chip->reg_lock);
err = request_threaded_irq(chip->irq, NULL,
mv88e6xxx_g1_irq_thread_fn,
IRQF_ONESHOT,
dev_name(chip->dev), chip);
+ mutex_lock(&chip->reg_lock);
if (err)
mv88e6xxx_g1_irq_free_common(chip);