From: sashiko-bot@kernel.org
To: "Michal Wilczynski" <m.wilczynski@samsung.com>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v9 12/16] soc: starfive: Add jh7110-hdmi-subsystem driver
Date: Wed, 02 Dec 2026 16:43:24 +0000 [thread overview]
Message-ID: <sashiko-outbox-246243@kernel.org> (raw)
In-Reply-To: <20261202-jh7110-clean-send-v9-12-6e546abf0ee8@samsung.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] soc: starfive: mismatched regmap stride and val_bits in
jh7110-hdmi-subsystem
--
commit 5b33973f185cb9247ee9bbc7f69aabd7f879bc50
Author: Michal Wilczynski <m.wilczynski@samsung.com>
soc: starfive: Add jh7110-hdmi-subsystem driver
This commit adds the parent driver for the StarFive JH7110 HDMI subsystem,
which creates a shared MMIO regmap and populates the HDMI PHY and
controller child devices.
> diff --git a/drivers/soc/starfive/jh7110-hdmi-subsystem.c b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
> new file mode 100644
> index 0000000000000..b01dc66450f51
> --- /dev/null
> +++ b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
> @@ -0,0 +1,72 @@
[ ... ]
> +static const struct regmap_config starfive_hdmi_regmap_config = {
> + .reg_bits = 32,
> + .val_bits = 8,
> + .max_register = 0x3fff,
> +};
[Severity: Medium]
Should starfive_hdmi_regmap_config set .val_bits = 32, .reg_stride = 4, and
.max_register = 0x3ffc?
Both child drivers that use this shared regmap address registers at 4-byte
offsets (reg * 4), and inno_hdmi_regmap_config in
drivers/gpu/drm/bridge/inno-hdmi.c configures .reg_bits = 32,
.val_bits = 32, and .reg_stride = 4. With .val_bits = 8 and the default
stride of 1, regmap-mmio uses byte accessors (readb/writeb) instead of
32-bit accessors (readl/writel), does not check 4-byte alignment, and
causes regmap debugfs reads to step by 1 byte across intermediate byte
offsets (+1, +2, +3) of each 32-bit register slot up to 0x3fff.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-jh7110-clean-send-v9-0-6e546abf0ee8@samsung.com?part=12
next prev parent reply other threads:[~2026-12-02 16:43 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261202162810eucas1p23142a6a51bbc7676667bdc7641d47d59@eucas1p2.samsung.com>
2026-12-02 16:27 ` [PATCH v9 00/16] drm: starfive: jh7110: Enable display subsystem Michal Wilczynski
2026-12-02 16:27 ` [PATCH v9 01/16] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller Michal Wilczynski
2026-12-02 16:34 ` sashiko-bot
2026-12-02 16:28 ` [PATCH v9 02/16] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 03/16] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 04/16] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 05/16] drm/bridge: inno-hdmi: Split probe out of bind Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 06/16] drm/bridge: inno-hdmi: Use a regmap for register access Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 07/16] drm/bridge: inno-hdmi: Add .disable platform operation Michal Wilczynski
2026-12-02 16:36 ` sashiko-bot
2026-12-02 16:28 ` [PATCH v9 08/16] drm/bridge: inno-hdmi: Add .mode_valid " Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 09/16] drm/bridge: inno-hdmi: Make the PHY configuration table optional Michal Wilczynski
2026-12-02 16:39 ` sashiko-bot
2026-12-02 16:28 ` [PATCH v9 10/16] drm/bridge: inno-hdmi: Make the register clock source selectable Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 11/16] drm/bridge: inno-hdmi: Make the supported HDMI version selectable Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 12/16] soc: starfive: Add jh7110-hdmi-subsystem driver Michal Wilczynski
2026-12-02 16:43 ` sashiko-bot [this message]
2026-12-02 16:28 ` [PATCH v9 13/16] soc: starfive: Add jh7110-vout-subsystem driver Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 14/16] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski
2026-12-02 16:28 ` [PATCH v9 15/16] riscv: dts: starfive: jh7110: Update DT for display subsystem Michal Wilczynski
2026-12-02 16:47 ` sashiko-bot
2026-12-02 16:28 ` [PATCH v9 16/16] MAINTAINERS: Add StarFive JH7110 display subsystem entry Michal Wilczynski
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-246243@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=m.wilczynski@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox