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 <[email protected]> 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/[email protected]?part=12
