From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229541; b=eOq5xlhG5fcl54HeI5ZoHdGeiuphEi4/gdt/UCI7fWHh11higMdrwHk1Y1Qk/U9CMxRH ffnxE+QPvzBtm86p7t3PGitJrp49FDNl8eIl1azx4anGiWqMk1bM4iLAmkMQPN+K0Z+tq bFcWJIJViBbUdXfj/rTb1XOqr9CzlGxDworB13Rq878F4ksbUMz6PT7VNT5vcZsMv1hEa KuJoMTMHPb5WCCzb+zRzpUpim7Yp94XymP2M+2El8BcWbMXWpQLiJvPIpK3U5afkIWXQE frp2lNyMy6xTTJwOPZAW5jH20T6hgJHl9E8OQ+hCimIBBPrTCxt1I651xZekL2dpzbg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229541; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=W6YCuoJAtSW9G4lVNxJ5Q+YFM+HLYxgiGZZWm2s6BKM=; b=vWl0t9mAvnkpEBf98+BYyQ9WAC3iBIyS83isabkiF+AceuXI9yg85BZhpmWrJtgICFwT Atu1huSuiAnLxb4Jk3bqZvYYsNnq2R7EiABEeh74cytemlgNZnSz+tGGSIO7uZfl7ikEQ C17MVDdZlXVNZgSZ0+Ywjfo95pX+H5zH3t+UIRsvFUxRXKw1oMUo+x7mCFGq49brcIP4U IMDRzVC5gwzD+RCSFDRfQaHq+QvckkA+4xM4k0qq+5wlJT41Uza1QbQIpoY8Zc99BnJ2w cquRSV/UYcu4ptyS52sL8/TgZS00A2z7IJreIS1mPj71lBlu+OE8n5GP0iSY19y6ngw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I5Jxo31R; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEBED606A331 for ; Wed, 2 Dec 2026 16:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I5Jxo31R Received: by smtp.kernel.org (Postfix) with ESMTPSA id 105831F00919; Wed, 2 Dec 2026 16:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796229541; bh=W6YCuoJAtSW9G4lVNxJ5Q+YFM+HLYxgiGZZWm2s6BKM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=I5Jxo31RSgooaMWgeKLMl966zYjAdNhqECcpS03Dp/XEClPZielf5OvHuqrj2HyzH sQo5xD9qlPdcsIv/2GBinfvgp+3bBiAMKpFMe/a0GNTtYJpPMHHKAoorSOO3lXkBD7 L5/6FYFiB7MOWnXGp0w2b8BLCHbRAdBZ0i/lsOGBxq4tMnjymH3TapUq7McezWfxdr NoXqKV2CkC0e+AXCphTVZDpueQLC6i+HBI+16F+ZjBe3N8KhMX45yMTHJgBYzzPwxm IEIscGjzJw+trd6085kFMyqGGM/OKdDHrrcKs/9jDEadfjPwt6QJ4xBBIBLsTSqOzV kreRu2yQy20pQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v9 09/16] drm/bridge: inno-hdmi: Make the PHY configuration table optional Reply-To: sashiko-reviews@lists.linux.dev To: "Michal Wilczynski" Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-jh7110-clean-send-v9-9-6e546abf0ee8@samsung.com> References: <20261202-jh7110-clean-send-v9-0-6e546abf0ee8@samsung.com> <20261202-jh7110-clean-send-v9-9-6e546abf0ee8@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 16:39:00 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] drm/bridge: inno-hdmi: asymmetric integrated PHY register accesses when phy_configs is NULL -- commit b5c37672b7fcadb9307812a7844f27f900f814d0 Author: Michal Wilczynski 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 can skip the table lookup in .mode_valid and the PHY register writes in inno_hdmi_power_up(). > diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/= inno-hdmi.c > index da6f8f693c58b..70766dff23b5e 100644 > --- a/drivers/gpu/drm/bridge/inno-hdmi.c > +++ b/drivers/gpu/drm/bridge/inno-hdmi.c > @@ -533,8 +533,14 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdm= i, > unsigned long mpixelclock) > { > struct inno_hdmi_phy_config *phy_config; > - int ret =3D inno_hdmi_find_phy_config(hdmi, mpixelclock); > + int ret; > + > + inno_hdmi_sys_power(hdmi, false); > + > + if (!hdmi->plat_data->phy_configs) > + goto out; > =20 > + ret =3D inno_hdmi_find_phy_config(hdmi, mpixelclock); > if (ret < 0) { > phy_config =3D hdmi->plat_data->default_phy_config; > DRM_DEV_ERROR(hdmi->dev, > @@ -544,8 +550,6 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi, > phy_config =3D &hdmi->plat_data->phy_configs[ret]; > } > =20 > - inno_hdmi_sys_power(hdmi, false); > - > hdmi_writeb(hdmi, HDMI_PHY_PRE_EMPHASIS, phy_config->pre_emphasis); > hdmi_writeb(hdmi, HDMI_PHY_DRIVER, phy_config->voltage_level_control); > hdmi_writeb(hdmi, HDMI_PHY_SYS_CTL, 0x15); > @@ -555,6 +559,7 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi, > hdmi_writeb(hdmi, HDMI_PHY_SYNC, 0x00); > hdmi_writeb(hdmi, HDMI_PHY_SYNC, 0x01); > =20 > +out: > inno_hdmi_sys_power(hdmi, true); > }; [Severity: Medium] Should inno_hdmi_standby() and inno_hdmi_config_video_timing() also skip integrated PHY register writes when hdmi->plat_data->phy_configs is NULL? inno_hdmi_power_up() skips HDMI_PHY_PRE_EMPHASIS, HDMI_PHY_DRIVER, HDMI_PHY_SYS_CTL, HDMI_PHY_CHG_PWR, and HDMI_PHY_SYNC, but the companion power-down path in inno_hdmi_standby() (called from inno_hdmi_init_hw() and inno_hdmi_bridge_atomic_disable()) still writes to those registers: drivers/gpu/drm/bridge/inno-hdmi.c:inno_hdmi_standby() { inno_hdmi_sys_power(hdmi, false); hdmi_writeb(hdmi, HDMI_PHY_DRIVER, 0x00); hdmi_writeb(hdmi, HDMI_PHY_PRE_EMPHASIS, 0x00); hdmi_writeb(hdmi, HDMI_PHY_CHG_PWR, 0x00); hdmi_writeb(hdmi, HDMI_PHY_SYS_CTL, 0x15); }; Likewise, inno_hdmi_config_video_timing() still writes HDMI_PHY_PRE_DIV_RATIO, HDMI_PHY_FEEDBACK_DIV_RATIO_LOW, and HDMI_PHY_FEEDBACK_DIV_RATIO_HIGH unconditionally. If the controller on platforms with a separate PHY does not implement these registers, probe and modeset still write to unowned offsets; if HDMI_PHY_CHG_PWR or HDMI_PHY_SYS_CTL do affect the hardware, inno_hdmi_standby() powers them down and inno_hdmi_power_up() never re-enables them. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-jh7110-cle= an-send-v9-0-6e546abf0ee8@samsung.com?part=3D9