]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:07 +0000 (09:10 +0200)
commit01209293ef68d8b947859b95c20d721095cd6809
treeb928cc8dbb237f93552807512db1f5bc75abd019
parentc7c33666b413c07ef3dfd6fa9c822dd0f5544dcb
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