Re: [PATCH v3 11/19] soc: starfive: Add jh7110-hdmi-subsystem driver

From
sashiko-bot@kernel.org
Date
2026-09-04 13:52:37
Also in
dri-devel, linux-clk, linux-phy
Reply to
Michal Wilczynski, 2026-09-04
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Incorrect regmap configuration (.val_bits = 8) forces byte-wise accesses on a 32-bit register file, which may cause bus faults or ignored writes.
--

commit 83ac96938fc0f15d53cdae0501c6e430a17c1c1d
Author: Michal Wilczynski [off-list ref]
soc: starfive: Add jh7110-hdmi-subsystem driver

This commit introduces a parent driver for the monolithic StarFive JH7110
HDMI IP block. It maps the shared register block and creates child devices
for the PHY and controller using a shared regmap.
quoted hunk ↗ jump to hunk
diff --git a/drivers/soc/starfive/jh7110-hdmi-subsystem.c b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
new file mode 100644
index 0000000000000..e05b91825be4d
--- /dev/null
+++ b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
[ ... ]
quoted hunk ↗ jump to hunk
+static const struct regmap_config starfive_hdmi_regmap_config = {
+	.reg_bits = 32,
+	.val_bits = 8,
[Severity: High]
Will this regmap configuration cause byte-wise memory accesses on a 32-bit
register file? 

Setting .val_bits = 8 forces the regmap core to use 8-bit readb()/writeb()
accesses instead of 32-bit readl()/writel(). The underlying Innosilicon
HDMI IP has registers spaced by 4 bytes and natively expects 32-bit
accesses.

On RISC-V platforms like the JH7110, byte-wise access to 32-bit APB
peripherals typically triggers a Store/Load Access Fault or results in
silently ignored writes.
+	.max_register = 0x3fff,
+};
-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260904-jh7110-clean-send-v3-0-484f9ae72715@samsung.com?part=11
Thread (58 messages) 58 messages, 9 authors, last reply 2026-09-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help