All of lore.kernel.org
 help / color / mirror / Atom feed
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 v7 12/19] drm/bridge: inno-hdmi: Make the PHY configuration table optional
Date: Fri, 06 Nov 2026 15:17:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-201655@kernel.org> (raw)
In-Reply-To: <20261106-jh7110-clean-send-v7-12-68f7ea9913db@samsung.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/bridge: inno-hdmi: unguarded integrated-PHY writes when
  phy_configs is NULL
--

commit f1f2bae7d85c6c615ff85796724277a1cd86c36d
Author: Michal Wilczynski <m.wilczynski@samsung.com>

drm/bridge: inno-hdmi: Make the PHY configuration table optional

This commit makes plat_data->phy_configs optional so platforms with a
separate PHY device skip the integrated-PHY register writes in
inno_hdmi_power_up() and the table lookup in inno_hdmi_bridge_mode_valid().

> diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c
> index 3219558d6ef41..84d00ee52b732 100644
> --- a/drivers/gpu/drm/bridge/inno-hdmi.c
> +++ b/drivers/gpu/drm/bridge/inno-hdmi.c
> @@ -534,8 +534,14 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi,
>  			       unsigned long mpixelclock)
>  {
>  	struct inno_hdmi_phy_config *phy_config;
> -	int ret = inno_hdmi_find_phy_config(hdmi, mpixelclock);
> +	int ret;
> +
> +	inno_hdmi_sys_power(hdmi, false);
> +
> +	if (!hdmi->plat_data->phy_configs)
> +		goto out;

[Severity: Medium]
Should inno_hdmi_standby() and inno_hdmi_config_video_timing() also skip
the integrated-PHY register writes when hdmi->plat_data->phy_configs is
NULL?

inno_hdmi_standby() (called from inno_hdmi_init_hw() at probe and
inno_hdmi_bridge_atomic_disable() on disable) still unconditionally writes
to the same HDMI_PHY_DRIVER, HDMI_PHY_PRE_EMPHASIS, HDMI_PHY_CHG_PWR, and
HDMI_PHY_SYS_CTL registers that inno_hdmi_power_up() now skips restoring.
inno_hdmi_config_video_timing() likewise still writes to
HDMI_PHY_PRE_DIV_RATIO, HDMI_PHY_FEEDBACK_DIV_RATIO_LOW, and
HDMI_PHY_FEEDBACK_DIV_RATIO_HIGH on modeset.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261106-jh7110-clean-send-v7-0-68f7ea9913db@samsung.com?part=12

  reply	other threads:[~2026-11-06 15:17 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261106135849eucas1p242718d72fa1f38e31477210fd9ee30bc@eucas1p2.samsung.com>
2026-11-06 13:58 ` [PATCH v7 00/19] drm: starfive: jh7110: Enable display subsystem Michal Wilczynski
2026-11-06 13:58   ` Michal Wilczynski
2026-11-06 13:58   ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 01/19] drm/bridge: inno-hdmi: fix swapped HSYNC and VSYNC polarity Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 02/19] drm/bridge: inno-hdmi: Don't dereference a NULL drm_device on hotplug Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 03/19] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 04/19] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 05/19] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 06/19] dt-bindings: display: verisilicon: Add starfive,jh7110-dc8200 Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 07/19] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 08/19] drm/bridge: inno-hdmi: Split probe out of bind Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 14:52     ` sashiko-bot
2026-11-06 13:58   ` [PATCH v7 09/19] drm/bridge: inno-hdmi: Use a regmap for register access Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 10/19] drm/bridge: inno-hdmi: Add .disable platform operation Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 11/19] drm/bridge: inno-hdmi: Add .mode_valid " Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 12/19] drm/bridge: inno-hdmi: Make the PHY configuration table optional Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 15:17     ` sashiko-bot [this message]
2026-11-06 13:58   ` [PATCH v7 13/19] drm/bridge: inno-hdmi: Make the register clock source selectable Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 14/19] drm/bridge: inno-hdmi: Make the supported HDMI version selectable Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 15/19] soc: starfive: Add jh7110-hdmi-subsystem driver Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 15:35     ` sashiko-bot
2026-11-06 13:58   ` [PATCH v7 16/19] soc: starfive: Add jh7110-vout-subsystem driver Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 17/19] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58   ` [PATCH v7 18/19] riscv: dts: starfive: jh7110: Update DT for display subsystem Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 16:12     ` sashiko-bot
2026-11-06 13:58   ` [PATCH v7 19/19] MAINTAINERS: Add StarFive JH7110 display subsystem entry Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 13:58     ` Michal Wilczynski
2026-11-06 19:48   ` [PATCH v7 00/19] drm: starfive: jh7110: Enable display subsystem Owen O'Hehir
2026-11-06 19:48     ` Owen O'Hehir

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-201655@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 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.