mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Golle <daniel@makrotopia.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Daniel Lezcano <daniel.lezcano@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>,
	Daniel Golle <daniel@makrotopia.org>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Kees Cook <kees+treewide@kernel.org>,
	John Crispin <john@phrozen.org>,
	Songjun Wu <songjun.wu@linux.intel.com>,
	Yi xin Zhu <yzhu@maxlinear.com>,
	Rahul Tanwar <rtanwar@maxlinear.com>,
	linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	devicetree@vger.kernel.org, linux-clk@vger.kernel.org
Subject: [PATCH 1/6] clk: mxl: Look up the CGU regmap by device node
Date: Wed, 2 Dec 2026 20:56:14 +0000	[thread overview]
Message-ID: <6bc254adf8f54ce8976f14f24847e4f65a8dabf8.1796234065.git.daniel@makrotopia.org> (raw)
In-Reply-To: <cover.1796234065.git.daniel@makrotopia.org>

The CGU binding defines "intel,cgu-lgm" as the only compatible of the
clock controller node. syscon_node_to_regmap() creates a regmap only for
nodes which also carry the "syscon" compatible and fails for all others,
with -EPROBE_DEFER since commit b73d5593bfde ("mfd: syscon: Return
-EPROBE_DEFER if the syscon is not found"). The driver hence never
probes with a device tree which follows the binding, and the consumers
of its clocks, the console UART included, never probe either.

Use device_node_to_regmap(), which creates the regmap for the node of
the clock controller itself.

Fixes: 036177310bac ("clk: mxl: Switch from direct readl/writel based IO to regmap based IO")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/clk/x86/clk-lgm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/x86/clk-lgm.c b/drivers/clk/x86/clk-lgm.c
index e3cad72431c3d..7d3c59437d963 100644
--- a/drivers/clk/x86/clk-lgm.c
+++ b/drivers/clk/x86/clk-lgm.c
@@ -434,7 +434,7 @@ static int lgm_cgu_probe(struct platform_device *pdev)
 
 	ctx->clk_data.num = CLK_NR_CLKS;
 
-	ctx->membase = syscon_node_to_regmap(np);
+	ctx->membase = device_node_to_regmap(np);
 	if (IS_ERR(ctx->membase)) {
 		dev_err(dev, "Failed to get clk CGU iomem\n");
 		return PTR_ERR(ctx->membase);
-- 
2.56.1

  reply	other threads:[~2026-12-02 20:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 20:55 [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain Daniel Golle
2026-12-02 20:56 ` Daniel Golle [this message]
2026-12-02 20:56 ` [PATCH 2/6] dt-bindings: serial: lantiq,asc: Add " Daniel Golle
2026-12-02 20:56 ` [PATCH 3/6] dt-bindings: timer: Convert intel,ce4100-hpet to DT schema Daniel Golle
2026-12-02 20:57 ` [PATCH 4/6] dt-bindings: x86: Document MaxLinear Lightning Mountain Daniel Golle
2026-12-02 20:57 ` [PATCH 5/6] x86/platform: Add MaxLinear Lightning Mountain SoC option Daniel Golle
2026-12-02 20:58 ` [PATCH 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board Daniel Golle
2026-12-03 14:39 ` [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain Krzysztof Kozlowski
2026-12-03 15:02   ` Dave Hansen
2026-12-03 15:06     ` Krzysztof Kozlowski
2026-12-03 15:17       ` Dave Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6bc254adf8f54ce8976f14f24847e4f65a8dabf8.1796234065.git.daniel@makrotopia.org \
    --to=daniel@makrotopia.org \
    --cc=bmasney+clk@redhat.com \
    --cc=bp@alien8.de \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hpa@zytor.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=jirislaby@kernel.org \
    --cc=john@phrozen.org \
    --cc=kees+treewide@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=robh@kernel.org \
    --cc=rtanwar@maxlinear.com \
    --cc=sboyd@kernel.org \
    --cc=songjun.wu@linux.intel.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    --cc=yzhu@maxlinear.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®