Skip to contentSkip to conversation

i3c: dw: Initialize spinlock to avoid upsetting lockdep

PATCH Applied Fredrik Markstrom 2 participants 2 messages Jan 16 – Jan 30

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 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 v3:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v2: https://lore.kernel.org/r/[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
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]>
maintainer Applied
#1 lore raw
Quoted 4 lines · Fredrik Markstrom

The devs_lock spinlock introduced when adding support for ibi:s was never initialized.

Applied, thanks!

[1/1] i3c: dw: Initialize spinlock to avoid upsetting lockdep

      https://git.kernel.org/i3c/c/b58eaa4761ab

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com