Skip to content

mfd: syscon: introduce no-auto-mmio DT property

Dan Carpenter linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: mfd: syscon: introduce no-auto-mmio property for sysconsDocumentation/devicetree/bindings/mfd/syscon.yaml+4 -07 replies
2/2mfd: syscon: Don't auto create "no-auto-mmio" sysconsdrivers/mfd/syscon.c+8 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArnd BergmannChen-Yu TsaiRob Herring (Arm)
SeriesR-b R-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] mfd: syscon: introduce no-auto-mmio DT property

Most syscons are accessed via MMMIO and created automatically. But one example of a syscon that isn't is in drivers/soc/samsung/exynos-pmu.c where the syscon can only be accessed via the secure partition. We are looking at upstreaming a different driver where the syscon will be accessed via SCMI.

Normally, syscons are accessed by doing something like syscon_regmap_lookup_by_phandle_args() but that function will automatically create an MMIO syscon if one hasn't been registered. So the ordering becomes a problem. The exynos-pmu.c driver solves this but it's a bit awkward and it would be even trickier if there were several drivers accessing the same syscon.

Dan Carpenter (2):
dt-bindings: mfd: syscon: introduce no-auto-mmio property for syscons
mfd: syscon: Don't auto create "no-auto-mmio" syscons

 Documentation/devicetree/bindings/mfd/syscon.yaml |  4 ++++
 drivers/mfd/syscon.c                              | 10 ++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.51.0