From: sashiko-bot@kernel.org
To: joakim.zhang@cixtech.com
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v10 3/4] reset: cix: add sky1 audss auxiliary reset driver
Date: Mon, 20 Jul 2026 05:26:56 +0000 [thread overview]
Message-ID: <20260720052656.649051F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260720051505.1252774-4-joakim.zhang@cixtech.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The reset driver accesses hardware registers via MMIO regmap without ensuring the parent Clock and Reset Unit (CRU) is runtime-resumed, leading to bus faults.
--
--- Patch [3]: [PATCH v10 3/4] reset: cix: add sky1 audss auxiliary reset driver ---
commit 7b77b8d6748a307fae0e5cb9afa8e1010bc6766c
Author: Joakim Zhang <joakim.zhang@cixtech.com>
Subject: reset: cix: add sky1 audss auxiliary reset driver
This commit adds an auxiliary reset controller driver for the Cix Sky1 Audio
Subsystem CRU. It exposes 16 software reset lines using a regmap retrieved
from the parent device.
> diff --git a/drivers/reset/reset-sky1-audss.c b/drivers/reset/reset-sky1-audss.c
> new file mode 100644
> index 0000000000000..d31d80e1251a8
> --- /dev/null
> +++ b/drivers/reset/reset-sky1-audss.c
[ ... ]
> +static int sky1_audss_reset_set(struct reset_controller_dev *rcdev,
> + unsigned long id, bool assert)
> +{
> + struct sky1_audss_reset *priv = to_sky1_audss_reset(rcdev);
> + const struct sky1_audss_reset_map *signal = &priv->map[id];
> + unsigned int value = assert ? 0 : signal->mask;
> +
> + return regmap_update_bits(priv->regmap, signal->offset, signal->mask, value);
[Severity: High]
Does this code need to ensure the parent Clock and Reset Unit (CRU) is
runtime-resumed before accessing the hardware registers?
If the parent clock controller driver drops its runtime PM reference (e.g.,
after its probe finishes), the CRU device might be suspended and its internal
clocks disabled. Could accessing the regmap here without first waking up the
parent device (such as by using pm_runtime_get_sync()) result in a bus fault?
> +}
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260720051505.1252774-1-joakim.zhang@cixtech.com?part=3
next prev parent reply other threads:[~2026-07-20 5:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 5:15 [PATCH v10 0/4] Add Cix Sky1 AUDSS clock and reset support joakim.zhang
2026-07-20 5:15 ` [PATCH v10 1/4] dt-bindings: soc: cix: add sky1 audss cru controller joakim.zhang
2026-07-20 5:15 ` [PATCH v10 2/4] clk: cix: add sky1 audss clock controller joakim.zhang
2026-07-20 5:33 ` sashiko-bot
2026-07-20 5:15 ` [PATCH v10 3/4] reset: cix: add sky1 audss auxiliary reset driver joakim.zhang
2026-07-20 5:26 ` sashiko-bot [this message]
2026-07-20 7:20 ` Philipp Zabel
2026-07-20 12:17 ` Joakim Zhang
2026-07-20 5:15 ` [PATCH v10 4/4] arm64: dts: cix: sky1: add audss cru joakim.zhang
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=20260720052656.649051F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joakim.zhang@cixtech.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.