i3c: dw: Initialize spinlock to avoid upsetting lockdep
Subsystems (2)
PATCH v2 1/1 i3c: dw: Initialize spinlock to avoid upsetting lockdep
The devs_lock spinlock introduced when adding support for ibi:s was never initialized.
Fixes e389b1d72a624 ("i3c: dw: Add support for in-band interrupts")
Suggested-by Jani Nurminen <[email protected]>
Signed-off-by Fredrik Markstrom <[email protected]>
Reviewed-by Ivar Holmqvist <[email protected]>
---
Changes in v2:
- Added context in commit message
- Link to v1: https://lore.kernel.org/r/[email protected]
--- drivers/i3c/master/dw-i3c-master.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/i3c/master/dw-i3c-master.c +2 -0
@@ -1570,6 +1570,8 @@ int dw_i3c_common_probe(struct dw_i3c_master *master,spin_lock_init (&master->xferqueue.lock);INIT_LIST_HEAD (&master->xferqueue.list); +spin_lock_init (&master->devs_lock); +writel (INTR_ALL , master->regs +INTR_STATUS ); irq =platform_get_irq (pdev,0 ); ret = devm_request_irq(&pdev->dev, irq,
---
base-commit: 0f61b1860cc3f52aef9036d7235ed1f017632193
change-id: 20260115-i3c_dw_initialize_spinlock-d878212a846b
Best regards,
Signature · 1 line
Fredrik Markstrom <[email protected]>