public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Chaoyi Chen <chaoyi.chen@rock-chips•com>
To: Sebastian Reichel <sebastian.reichel@collabora•com>
Cc: "Sandy Huang" <hjc@rock-chips•com>,
	"Heiko Stübner" <heiko@sntech•de>,
	"Andy Yan" <andy.yan@rock-chips•com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux•intel.com>,
	"Maxime Ripard" <mripard@kernel•org>,
	"Thomas Zimmermann" <tzimmermann@suse•de>,
	"Andrzej Hajda" <andrzej.hajda@intel•com>,
	"Neil Armstrong" <neil.armstrong@linaro•org>,
	"Robert Foss" <rfoss@kernel•org>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard•com>,
	"Jonas Karlman" <jonas@kwiboo•se>,
	"Jernej Skrabec" <jernej.skrabec@gmail•com>,
	"Rob Herring" <robh@kernel•org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel•org>,
	"Conor Dooley" <conor+dt@kernel•org>,
	"David Airlie" <airlied@gmail•com>,
	"Simona Vetter" <simona@ffwll•ch>,
	"Dmitry Baryshkov" <dmitry.baryshkov@oss•qualcomm.com>,
	"Luca Ceresoli" <luca.ceresoli@bootlin•com>,
	"Cristian Ciocaltea" <cristian.ciocaltea@collabora•com>,
	"Damon Ding" <damon.ding@rock-chips•com>,
	"Dmitry Baryshkov" <lumag@kernel•org>,
	"Alexey Charkov" <alchark@gmail•com>,
	dri-devel@lists•freedesktop.org,
	linux-rockchip@lists•infradead.org, linux-kernel@vger•kernel.org,
	devicetree@vger•kernel.org, kernel@collabora•com,
	linux-arm-kernel@lists•infradead.org
Subject: Re: [PATCH v2 07/12] drm/rockchip: dw_dp: Implement out-of-band HPD handling
Date: Tue, 2 Jun 2026 16:30:59 +0800	[thread overview]
Message-ID: <4f4ff085-80ae-4144-b040-be9b136574ee@rock-chips.com> (raw)
In-Reply-To: <20260501-synopsys-dw-dp-improvements-v2-7-d7e7f6bac77f@collabora.com>

Hi Sebastian,

On 5/1/2026 6:20 AM, Sebastian Reichel wrote:
> Implement out-of-band hotplug handling, which will be used to receive
> external hotplug information from the USB-C state machine. This is
> currently handled by the USBDP PHY, which brings quite some trouble
> as the register being accessed requires the power-domain from the DP
> controller and also requires custom TypeC HPD info parsing in the
> USBDP PHY driver.
> 
> In contrast to the USBDP PHY this does not just enable the hotplug
> signal when a DP AltMode capable adapter is plugged in, but instead
> properly detects if a cable is plugged in for things like USB-C to
> HDMI adapters.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora•com>

[...]

> +static void dw_dp_rockchip_hpd_sw_cfg(void *data, bool hpd)
> +{
> +	struct rockchip_dw_dp *dp = data;
> +	u32 hpd_reg = dp->pdata->hpd_reg[dp->id];
> +
> +	dev_dbg(dp->dev, "Force HPD connected=%s\n", str_yes_no(hpd));
> +
> +	dp->hpd_cfg = hpd;
> +
> +	regmap_write(dp->vo_grf, hpd_reg,
> +		     FIELD_PREP_WM16_CONST(ROCKCHIP_VO_GRF_DP_SINK_HPD_CFG, dp->hpd_cfg));

FIELD_PREP_WM16() should be used here because "dp->hpd_cfg" is not a
constant expression.

Other patches in this series have similar issues. Doesn't your compiler
warn you about this? Thanks.

-- 
Best, 
Chaoyi


  reply	other threads:[~2026-06-02  8:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 22:20 [PATCH v2 00/12] Synopsys DisplayPort Controller improvements for Rockchip platforms Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 01/12] drm/bridge: synopsys: dw-dp: Support unregistering the AUX channel Sebastian Reichel
2026-06-02 19:48   ` Heiko Stuebner
2026-04-30 22:20 ` [PATCH v2 02/12] drm/rockchip: dw_dp: Release core resources Sebastian Reichel
2026-06-02 19:48   ` Heiko Stuebner
2026-04-30 22:20 ` [PATCH v2 03/12] drm/bridge: synopsys: dw-dp: Simplify driver data setting Sebastian Reichel
2026-06-04 11:32   ` Andy Yan
2026-04-30 22:20 ` [PATCH v2 04/12] drm/bridge: synopsys: dw-dp: Support MEDIA_BUS_FMT_FIXED Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 05/12] drm/bridge: synopsys: dw-dp: Add follow-up bridge support Sebastian Reichel
2026-05-19 11:08   ` Luca Ceresoli
2026-04-30 22:20 ` [PATCH v2 06/12] drm/bridge: Add out-of-band HPD notify handler Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 07/12] drm/rockchip: dw_dp: Implement out-of-band HPD handling Sebastian Reichel
2026-06-02  8:30   ` Chaoyi Chen [this message]
2026-04-30 22:20 ` [PATCH v2 08/12] drm/bridge: synopsys: dw-dp: Support software triggered OOB HPD Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 09/12] drm/bridge: synopsys: dw-dp: Add Runtime PM support Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 10/12] drm/rockchip: dw_dp: Add runtime " Sebastian Reichel
2026-04-30 22:20 ` [PATCH RFC v2 11/12] dt-bindings: display: rockchip: dw-dp: fix sound DAI cells Sebastian Reichel
2026-04-30 22:20 ` [PATCH v2 12/12] drm/bridge: synopsys: dw-dp: Add audio support Sebastian Reichel

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=4f4ff085-80ae-4144-b040-be9b136574ee@rock-chips.com \
    --to=chaoyi.chen@rock-chips$(echo .)com \
    --cc=Laurent.pinchart@ideasonboard$(echo .)com \
    --cc=airlied@gmail$(echo .)com \
    --cc=alchark@gmail$(echo .)com \
    --cc=andrzej.hajda@intel$(echo .)com \
    --cc=andy.yan@rock-chips$(echo .)com \
    --cc=conor+dt@kernel$(echo .)org \
    --cc=cristian.ciocaltea@collabora$(echo .)com \
    --cc=damon.ding@rock-chips$(echo .)com \
    --cc=devicetree@vger$(echo .)kernel.org \
    --cc=dmitry.baryshkov@oss$(echo .)qualcomm.com \
    --cc=dri-devel@lists$(echo .)freedesktop.org \
    --cc=heiko@sntech$(echo .)de \
    --cc=hjc@rock-chips$(echo .)com \
    --cc=jernej.skrabec@gmail$(echo .)com \
    --cc=jonas@kwiboo$(echo .)se \
    --cc=kernel@collabora$(echo .)com \
    --cc=krzk+dt@kernel$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-rockchip@lists$(echo .)infradead.org \
    --cc=luca.ceresoli@bootlin$(echo .)com \
    --cc=lumag@kernel$(echo .)org \
    --cc=maarten.lankhorst@linux$(echo .)intel.com \
    --cc=mripard@kernel$(echo .)org \
    --cc=neil.armstrong@linaro$(echo .)org \
    --cc=rfoss@kernel$(echo .)org \
    --cc=robh@kernel$(echo .)org \
    --cc=sebastian.reichel@collabora$(echo .)com \
    --cc=simona@ffwll$(echo .)ch \
    --cc=tzimmermann@suse$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox