diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-02-23 17:43:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-24 22:21:23 -0800 |
commit | 342a0ee70acbee97fdeb91349420f8744eb291fb (patch) | |
tree | aee18de53cd077094d7451ce8788320198460b6b /drivers/net/dsa/mv88e6xxx/chip.c | |
parent | f6d9758b12660484b6639364cc406da92a918c96 (diff) | |
download | linux-stable-342a0ee70acbee97fdeb91349420f8744eb291fb.tar.gz linux-stable-342a0ee70acbee97fdeb91349420f8744eb291fb.tar.bz2 linux-stable-342a0ee70acbee97fdeb91349420f8744eb291fb.zip |
net: dsa: mv88e6xxx: Release lock while requesting IRQ
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 3546c5e2b924..d30336f259ce 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 | IRQF_SHARED, dev_name(chip->dev), chip); + mutex_lock(&chip->reg_lock); if (err) mv88e6xxx_g1_irq_free_common(chip); |