mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Billy Tsai <billy_tsai@aspeedtech.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Joel Stanley" <joel@jms.id.au>,
	"Andrew Jeffery" <andrew@codeconstruct.com.au>,
	"Ryan Chen" <ryan_chen@aspeedtech.com>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-aspeed@lists.ozlabs.org" <linux-aspeed@lists.ozlabs.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>
Subject: 回覆: [PATCH v3 0/3] iio: adc: aspeed: Fix SCU lookup for multi-SCU AST2700
Date: Wed, 21 Oct 2026 01:51:53 +0000	[thread overview]
Message-ID: <OSQPR06MB7252FB0EB1DCD1069E11CEF18B662@OSQPR06MB7252.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <20261018235624.1971e7ff@jic23-hlaptop>

> > The ADC's reference-voltage trimming data lives in a SCU register. The
> > driver has always located that SCU with a global, name-based
> > device-tree search, which works as long as a platform only has a
> > single node named "syscon". AST2700 splits its SCU into two
> > instances, syscon0 and syscon1, that share that same node name and
> > differ only by label and unit address, so the lookup always resolves
> > to syscon0 even when the ADC's trimming data lives in syscon1.

> For now I've applied 1 and 2 to the testing branch of iio.git.
> Whilst it is a fix, there is little point in rushing it unless
> patch 3 also goes and that one isn't tagged as a fix..

> If you want me to move it over to the fixes-togreg branch and
> get it in asap, then reply to this to say so.

Patches 1 and 2 only add the mechanism; they don't change behaviour on
AST2700 by themselves. The driver falls back to the old global
by-name syscon lookup whenever the new "aspeed,trim-syscon" property
is absent, and patch 3 is what actually sets that property on
AST2700's dts. Without patch 3, 1 and 2 land but AST2700 keeps reading
the wrong SCU exactly as before.

So yes, please move 1 and 2 to fixes-togreg, and I'd like patch 3 to
go with them. I'll resend it on its own with a Fixes tag pointing at
the commit that added these ADC nodes, since it's the piece that
makes the fix actually take effect on hardware.

Thanks
Billy Tsai

      reply	other threads:[~2026-10-21  1:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 10:22 Billy Tsai
2026-10-05 10:22 ` [PATCH v3 1/3] dt-bindings: iio: adc: Add syscon property for multi-SCU SoCs Billy Tsai
2026-10-05 10:22 ` [PATCH v3 2/3] iio: adc: aspeed: Use syscon phandle for trimming data when available Billy Tsai
2026-10-05 10:22 ` [PATCH v3 3/3] arm64: dts: aspeed: Add syscon phandle to AST2700 ADC nodes Billy Tsai
2026-10-18 22:56 ` [PATCH v3 0/3] iio: adc: aspeed: Fix SCU lookup for multi-SCU AST2700 Jonathan Cameron
2026-10-21  1:51   ` Billy Tsai [this message]

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=OSQPR06MB7252FB0EB1DCD1069E11CEF18B662@OSQPR06MB7252.apcprd06.prod.outlook.com \
    --to=billy_tsai@aspeedtech.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=joel@jms.id.au \
    --cc=krzk+dt@kernel.org \
    --cc=krzysztof.kozlowski@oss.qualcomm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=ryan_chen@aspeedtech.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®