]> git.itanic.dy.fi Git - linux-stable/commit
misc: atmel-ssc: lock with mutex instead of spinlock
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Wed, 24 Jun 2020 11:35:41 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:10:54 +0000 (09:10 +0200)
commitd090d02c06f812ed48dabdbce00e1af22c1a0774
tree42c55ba32dcb8f39ea5f537d09ed28ae486f624a
parentf6797fe6a445a02386e89e92e6d5daae9eace1a5
misc: atmel-ssc: lock with mutex instead of spinlock

commit b037d60a3b1d1227609fd858fa34321f41829911 upstream.

Uninterruptible context is not needed in the driver and causes lockdep
warning because of mutex taken in of_alias_get_id(). Convert the lock to
mutex to avoid the issue.

Cc: stable@vger.kernel.org
Fixes: 099343c64e16 ("ARM: at91: atmel-ssc: add device tree support")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/50f0d7fa107f318296afb49477c3571e4d6978c5.1592998403.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/atmel-ssc.c