]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mlxbf2: Fix sleeping while holding spinlock
authorAxel Lin <axel.lin@ingics.com>
Thu, 21 May 2020 01:57:13 +0000 (09:57 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 25 May 2020 09:09:34 +0000 (11:09 +0200)
commite3673c070261d2fb1fd3cc087e51a32da16f793d
treee3cd8e1401855afdcfa5d36fd8ee11b31fdfaaa0
parentdd5782149a099d012c854464c3a285e891f74b24
gpio: mlxbf2: Fix sleeping while holding spinlock

mutex_lock() can sleep, don't call mutex_lock() while holding spin_lock.

Fixes: 7d37836caafb ("gpio: add driver for Mellanox BlueField 2 GPIO controller")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: asmaa@mellanox.com
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mlxbf2.c