From: "Andy Yan" <andyshrk@163.com>
To: dmitry.baryshkov@oss.qualcomm.com
Cc: mripard@kernel.org, neil.armstrong@linaro.org,
dri-devel@lists.freedesktop.org, dianders@chromium.org,
jani.nikula@intel.com, lyude@redhat.com, jonathanh@nvidia.com,
p.zabel@pengutronix.de, simona@ffwll.ch, victor.liu@nxp.com,
rfoss@kernel.org, chunkuang.hu@kernel.org,
cristian.ciocaltea@collabora.com,
Laurent.pinchart@ideasonboard.com, linux-arm-msm@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
freedreno@lists.freedesktop.org
Subject: Re:[PATCH v3 0/2] Pass down connector to drm bridge detect hook
Date: Mon, 14 Jul 2025 18:24:24 +0800 (CST) [thread overview]
Message-ID: <39f4cd0d.8f17.1980876df93.Coremail.andyshrk@163.com> (raw)
In-Reply-To: <20250703125027.311109-1-andyshrk@163.com>
Hello Dmitry,
At 2025-07-03 20:49:51, "Andy Yan" <andyshrk@163.com> wrote:
>
>In some application scenarios, we hope to get the corresponding
>connector when the bridge's detect hook is invoked.
>
>For example, we may want to call drm_dp_read_sink_count_cap(which needs
>a drm_connector) at the dp deteck hook, intel_dp and nouveau_dp do this
>at it's connector's detetc_ctx/detect hook.
>
>But for a bridge driver, it's detect hook is initiated by the connector,
>there is no connector passed down.
>
>In most cases, we can get the connector by
>drm_atomic_get_connector_for_encoder
>if the encoder attached to the bridge is enabled, however there will
>still be some scenarios where the detect hook of the bridge is called
>but the corresponding encoder has not been enabled yet. For instance,
>this occurs when the device is hot plug in for the first time.
>
>Since the call to bridge's detect is initiated by the connector, passing
>down the corresponding connector directly will make things simpler.
>
>Before preparing this patch, we have had some discussions on the details
>here[0].
>
>PATCH1 adjust the dp/hdmi_audio_* callback parameters order, make it
>maintain the same parameter order as get_modes and edid_read.
>PATCH2 add connector to detect hook.
>
>[0]https://patchwork.freedesktop.org/patch/640712/?series=143573&rev=5
Could you please take this series of patches?
I hope after the patches are merged, I will be able to update a new version of the DP driver based on this.
Moreover, I'm worried that if this wait too long, there might be conflicts with other new bridge drivers.
>
>Changes in v3:
>- Remove redundant SoB
>
>Changes in v2:
>- Make dp/hdmi_audio_* callback keep the same par get_modes
>
>Andy Yan (2):
> drm/bridge: Make dp/hdmi_audio_* callback keep the same paramter order
> with get_modes
> drm/bridge: Pass down connector to drm bridge detect hook
>
> drivers/gpu/drm/bridge/adv7511/adv7511.h | 16 +++----
> .../gpu/drm/bridge/adv7511/adv7511_audio.c | 12 +++---
> drivers/gpu/drm/bridge/adv7511/adv7511_cec.c | 4 +-
> drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 3 +-
> drivers/gpu/drm/bridge/analogix/anx7625.c | 2 +-
> .../drm/bridge/cadence/cdns-mhdp8546-core.c | 3 +-
> drivers/gpu/drm/bridge/chrontel-ch7033.c | 2 +-
> drivers/gpu/drm/bridge/display-connector.c | 11 +++--
> drivers/gpu/drm/bridge/ite-it6263.c | 3 +-
> drivers/gpu/drm/bridge/ite-it6505.c | 2 +-
> drivers/gpu/drm/bridge/ite-it66121.c | 3 +-
> drivers/gpu/drm/bridge/lontium-lt8912b.c | 6 +--
> drivers/gpu/drm/bridge/lontium-lt9611.c | 15 +++----
> drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 3 +-
> .../bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 3 +-
> drivers/gpu/drm/bridge/sii902x.c | 3 +-
> drivers/gpu/drm/bridge/simple-bridge.c | 2 +-
> drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 14 +++----
> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +-
> drivers/gpu/drm/bridge/tc358767.c | 5 ++-
> drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 +-
> drivers/gpu/drm/bridge/ti-tfp410.c | 2 +-
> drivers/gpu/drm/bridge/ti-tpd12s015.c | 8 +++-
> .../gpu/drm/display/drm_bridge_connector.c | 20 ++++-----
> drivers/gpu/drm/drm_bridge.c | 5 ++-
> drivers/gpu/drm/mediatek/mtk_dp.c | 3 +-
> drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 +-
> drivers/gpu/drm/msm/dp/dp_audio.c | 8 ++--
> drivers/gpu/drm/msm/dp/dp_audio.h | 8 ++--
> drivers/gpu/drm/msm/dp/dp_drm.c | 3 +-
> drivers/gpu/drm/msm/hdmi/hdmi.h | 10 ++---
> drivers/gpu/drm/msm/hdmi/hdmi_audio.c | 8 ++--
> drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 2 +-
> drivers/gpu/drm/msm/hdmi/hdmi_hpd.c | 4 +-
> drivers/gpu/drm/rockchip/rk3066_hdmi.c | 2 +-
> drivers/gpu/drm/xlnx/zynqmp_dp.c | 3 +-
> include/drm/drm_bridge.h | 42 ++++++++++---------
> 37 files changed, 139 insertions(+), 110 deletions(-)
>
>--
>2.43.0
>
>base-commit: 56e5375b23f342dfa3179395aacc1b47395fddf7
>branch: drm-misc-next
next prev parent reply other threads:[~2025-07-14 10:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-03 12:49 [PATCH " Andy Yan
2025-07-03 12:49 ` [PATCH v3 1/2] drm/bridge: Make dp/hdmi_audio_* callback keep the same paramter order with get_modes Andy Yan
2025-07-03 12:49 ` [PATCH v3 2/2] drm/bridge: Pass down connector to drm bridge detect hook Andy Yan
2025-07-03 21:27 ` Dmitry Baryshkov
2025-07-14 22:15 ` Dixit, Ashutosh
2025-07-15 5:54 ` Andy Yan
2025-07-14 10:24 ` Andy Yan [this message]
2025-07-14 15:25 ` [PATCH v3 0/2] " Dmitry Baryshkov
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=39f4cd0d.8f17.1980876df93.Coremail.andyshrk@163.com \
--to=andyshrk@163.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=chunkuang.hu@kernel.org \
--cc=cristian.ciocaltea@collabora.com \
--cc=dianders@chromium.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jonathanh@nvidia.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lyude@redhat.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=victor.liu@nxp.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®