From: sashiko-bot@kernel.org
To: Prabhakar <prabhakar.csengg@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org,
wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 8/8] iio: adc: rzt2h: Add support for RZ/V2H(P) SoC
Date: Fri, 09 Oct 2026 19:02:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-165990@kernel.org> (raw)
In-Reply-To: <20261009184122.1378797-9-prabhakar.mahadev-lad.rj@bp.renesas.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] pm: hardware stabilization delay is bypassed for SoCs without calibration
--
commit b9111d7d4d36117212882ae96747fcfe15f3bdd8
Author: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
iio: adc: rzt2h: Add support for RZ/V2H(P) SoC
Add support for the ADC found on the Renesas RZ/V2H(P) SoC, which shares
the RZ/T2H ADC IP but differs in channel count, sampling, calibration and
resolution support.
> diff --git a/drivers/iio/adc/rzt2h_adc.c b/drivers/iio/adc/rzt2h_adc.c
> index 0703c2025e3fc..be8273f3b61d3 100644
> --- a/drivers/iio/adc/rzt2h_adc.c
> +++ b/drivers/iio/adc/rzt2h_adc.c
[ ... ]
> @@ -818,6 +1005,12 @@ static int rzt2h_adc_pm_runtime_resume(struct device *dev)
> if (ret)
> return ret;
>
> + ret = pwrseq_enable(adc->pwrseq);
> + if (ret) {
> + reset_control_assert(adc->rstc);
> + return ret;
> + }
> +
> if (!(chip_info->features & RZT2H_ADC_FEATURE_CALIBRATION))
> return 0;
[Severity: High]
The datasheet note below indicates a 0.5 µs delay is required after
releasing the module-stop state before starting A/D conversion.
With the newly added RZ/V2H(P) SoC that lacks the calibration feature,
rzt2h_adc_pm_runtime_resume() returns early here, completely bypassing the
stabilization delay.
Will this lead to hardware being accessed before the analog circuit has
settled, potentially resulting in corrupted or inaccurate data on this new
SoC?
>
> /*
> * Datasheet Page 2810, Section 41.5.6:
> * After release from the module-stop state, wait for at least
> * 0.5 µs before starting A/D conversion.
> */
> fsleep(1);
>
> ret = rzt2h_adc_calibrate(adc);
> - if (ret)
> + if (ret) {
> + pwrseq_disable(adc->pwrseq);
> reset_control_assert(adc->rstc);
> + }
>
> return ret;
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009184122.1378797-1-prabhakar.mahadev-lad.rj@bp.renesas.com?part=8
prev parent reply other threads:[~2026-10-09 19:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 18:41 [PATCH v2 0/8] Add ADC driver support for RZ/V2H(P) and RZ/V2N SoCs Prabhakar
2026-10-09 18:41 ` [PATCH v2 1/8] dt-bindings: iio: adc: renesas,r9a09g077-adc: Add RZ/V2H(P) and RZ/V2N support Prabhakar
2026-10-09 18:41 ` [PATCH v2 2/8] iio: adc: rzt2h: Wait for the analog part to stop after a forced stop Prabhakar
2026-10-09 18:41 ` [PATCH v2 3/8] iio: adc: rzt2h: Add chip-specific configuration Prabhakar
2026-10-09 18:41 ` [PATCH v2 4/8] iio: adc: rzt2h: Add optional reset support Prabhakar
2026-10-09 18:53 ` sashiko-bot
2026-10-09 18:41 ` [PATCH v2 5/8] iio: adc: rzt2h: Prepare for SoCs without sample state registers Prabhakar
2026-10-09 18:41 ` [PATCH v2 6/8] iio: adc: rzt2h: Prepare for SoCs with different ADC info Prabhakar
2026-10-09 18:41 ` [PATCH v2 7/8] iio: adc: rzt2h: Use scan type for ADC scale Prabhakar
2026-10-09 18:41 ` [PATCH v2 8/8] iio: adc: rzt2h: Add support for RZ/V2H(P) SoC Prabhakar
2026-10-09 19:02 ` sashiko-bot [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=sashiko-outbox-165990@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=prabhakar.csengg@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.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