Re: [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver
From: Philipp Zabel
Date: Tue Nov 24 2026 - 11:50:14 EST
On Di, 2026-11-24 at 16:52 +0100, Michal Wilczynski wrote:
> Add the HDMI controller (bridge) driver for the StarFive JH7110.
>
[...]
>
> Tested-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> Tested-by: Byron Stanoszek <gandalf@xxxxxxxxx>
> Tested-by: Owen O'Hehir <oo.hehir@xxxxxxxxx>
> Signed-off-by: Michal Wilczynski <m.wilczynski@xxxxxxxxxxx>
> ---
> drivers/gpu/drm/bridge/Kconfig | 11 ++
> drivers/gpu/drm/bridge/Makefile | 1 +
> drivers/gpu/drm/bridge/jh7110-inno-hdmi.c | 297 ++++++++++++++++++++++++++++++
> 3 files changed, 309 insertions(+)
>
[...]
> diff --git a/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c
> new file mode 100644
> index 0000000000000000000000000000000000000000..a0283f83ddc93e3e6c9e9192b73dca9a63f9d9ab
> --- /dev/null
> +++ b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c
> @@ -0,0 +1,297 @@
[...]
> +
> +struct stf_inno_hdmi_controller {
> + struct clk_bulk_data clks[CLK_CTRL_NUM];
> + struct reset_control *tx_rst;
tx_rst is never used outside of starfive_inno_hdmi_controller_probe(),
it could be a local variable.
> + struct phy *phy;
> + bool enabled;
> +};
> +
[...]
> +static void stf_inno_hdmi_rst_assert(void *data)
> +{
> + reset_control_assert(data);
> +}
> +
> +static int starfive_inno_hdmi_controller_probe(struct platform_device *pdev)
> +{
[...]
> + ctrl->tx_rst = devm_reset_control_get_exclusive(dev, NULL);
> + if (IS_ERR(ctrl->tx_rst))
> + return dev_err_probe(dev, PTR_ERR(ctrl->tx_rst), "failed to get tx reset\n");
> +
[...]
> +
> + ret = reset_control_deassert(ctrl->tx_rst);
> + if (ret)
> + return ret;
> +
> + ret = devm_add_action_or_reset(dev, stf_inno_hdmi_rst_assert,
> + ctrl->tx_rst);
> + if (ret)
> + return ret;
This looks like it could be simplified with
devm_reset_control_get_exclusive_deasserted().
regards
Philipp