[PATCH v3 0/2] mfd: syscon: Give each syscon its own lockdep class
From: Arun Iyengar via B4 Relay
Date: Sat Nov 28 2026 - 14:06:30 EST
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@xxxxxxxxx>
---
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@xxxxxxxxx
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@xxxxxxxxx
---
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@xxxxxxxxx>