The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/2] mfd: syscon: Give each syscon its own lockdep class
@ 2026-11-28 19:06 Arun Iyengar via B4 Relay
  2026-11-28 19:06 ` [PATCH v3 1/2] regmap: Add an optional lockdep class to struct regmap_config Arun Iyengar via B4 Relay
  2026-11-28 19:06 ` [PATCH v3 2/2] mfd: syscon: Give each syscon its own lockdep class Arun Iyengar via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-28 19:06 UTC (permalink / raw)
  To: Mark Brown, Lee Jones, Arnd Bergmann
  Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
	Johan Hovold, driver-core, mfd, linux-kernel, Heiko Stuebner,
	linux-rockchip, linux-arm-kernel, Arun Iyengar

All syscon regmaps share one lockdep class, so on RK3588 lockdep reports
a false circular dependency and turns itself off. Patch 1 adds an
optional lockdep key to regmap_config, patch 2 gives each syscon one.

Patch 2 needs patch 1, so both could go through regmap with Lee's ack,
or through mfd with Mark's. Based on regmap for-next; patch 2 also
merges cleanly with for-mfd-next.

Tested on an Orange Pi 5 (RK3588S) with a 7.3 based kernel that has
out-of-tree DisplayPort patches, lockdep and KASAN on. Without the series
lockdep reports the cycle during boot. With it there is no report and
lockdep stays on.

Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.

Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Changes in v3:
- Move the fix into regmap: new regmap_config.lock_key; syscon passes a
  per-syscon key and drops its own lock (Lee).
- Drop the prerequisite, it is in for-mfd-next.
- Link to v2: https://patch.msgid.link/20261122-syscon-lockdep-v2-1-868056a6a808@gmail.com

Changes in v2:
- __acquires/__releases: name the argument, not a local (Sashiko).
- Link to v1: https://patch.msgid.link/20261120-syscon-lockdep-v1-1-aed779a004b8@gmail.com

---
Arun Iyengar (2):
      regmap: Add an optional lockdep class to struct regmap_config
      mfd: syscon: Give each syscon its own lockdep class

 drivers/base/regmap/regmap.c | 3 +++
 drivers/mfd/syscon.c         | 6 ++++++
 include/linux/regmap.h       | 3 +++
 3 files changed, 12 insertions(+)
---
base-commit: 222b61e9c570dac6c7a786d039e4c226624b426d
change-id: 20261115-syscon-lockdep-d133fb58c2be

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-28 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 19:06 [PATCH v3 0/2] mfd: syscon: Give each syscon its own lockdep class Arun Iyengar via B4 Relay
2026-11-28 19:06 ` [PATCH v3 1/2] regmap: Add an optional lockdep class to struct regmap_config Arun Iyengar via B4 Relay
2026-11-28 19:06 ` [PATCH v3 2/2] mfd: syscon: Give each syscon its own lockdep class Arun Iyengar via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox