Skip to contentSkip to conversation

i3c: dw: Initialize spinlock to avoid upsetting lockdep

PATCH Superseded Fredrik Markstrom 1 participant 1 message Jan 16

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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")

---
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
index 889e2ed5bc83..d5b070404056 100644
@@ -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]>