mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 10:33:11 +02:00
LF-644 crypto: caam - initialize svlock spinlock
Fixes the following lockdep message:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 553 Comm: insmod Tainted: G O 5.4.0-lts-lf-5.4.y+gfa6e1cd69f80 #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<8011326c>] (unwind_backtrace) from [<8010d118>] (show_stack+0x10/0x14)
[<8010d118>] (show_stack) from [<80d8e130>] (dump_stack+0xa4/0xd0)
[<80d8e130>] (dump_stack) from [<80194194>] (register_lock_class+0x6f0/0x718)
[<80194194>] (register_lock_class) from [<80190980>] (__lock_acquire+0x80/0x2524)
[<80190980>] (__lock_acquire) from [<8019374c>] (lock_acquire+0xd8/0x268)
[<8019374c>] (lock_acquire) from [<80db0090>] (_raw_spin_lock_irqsave+0x44/0x58)
[<80db0090>] (_raw_spin_lock_irqsave) from [<8097db78>] (snvs_secvio_install_handler+0x40/0x80)
[<8097db78>] (snvs_secvio_install_handler) from [<7f01e0a0>] (test_init+0x64/0x1a0 [snvs_test])
[<7f01e0a0>] (test_init [snvs_test]) from [<8152ec97>] (__warned.41808+0x0/0x1)
Fixes: f50dd756a0
("MLKU-38-3 crypto: caam - add SNVS / SECVIO support")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
This commit is contained in:
parent
fabf6de666
commit
5560b49b53
|
@ -224,6 +224,7 @@ static int snvs_secvio_probe(struct platform_device *pdev)
|
|||
svdev = &pdev->dev;
|
||||
dev_set_drvdata(svdev, svpriv);
|
||||
svpriv->pdev = pdev;
|
||||
spin_lock_init(&svpriv->svlock);
|
||||
np = pdev->dev.of_node;
|
||||
|
||||
npirq = of_find_compatible_node(NULL, NULL, "fsl,imx6q-caam-secvio");
|
||||
|
|
Loading…
Reference in New Issue
Block a user