From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: lists@steffen.cc
Cc: dri-devel@lists.freedesktop.org,
Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Michal Simek <michal.simek@amd.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm: xlnx: zynqmp_dpsub: also call drm_helper_hpd_irq_event
Date: Tue, 24 Sep 2024 21:43:35 +0300 [thread overview]
Message-ID: <20240924184335.GJ30551@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20240923074803.10306-1-lists@steffen.cc>
Hi Steffen,
Thank you for the patch.
On Mon, Sep 23, 2024 at 09:48:03AM +0200, lists@steffen.cc wrote:
> From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
>
> With hpd going through the bridge as of commit eb2d64bfcc17
> ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge")
> we don't get hotplug events in userspace on zynqmp hardware.
> Also sending hotplug events with drm_helper_hpd_irq_event works.
Why does the driver need to call both drm_helper_hpd_irq_event() and
drm_bridge_hpd_notify() ? The latter should end up calling
drm_kms_helper_connector_hotplug_event(), which is the same function
that drm_helper_hpd_irq_event() calls.
> Fixes: eb2d64bfcc17 ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge")
> Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
> ---
> drivers/gpu/drm/xlnx/zynqmp_dp.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c
> index 1846c4971fd8..cb823540a412 100644
> --- a/drivers/gpu/drm/xlnx/zynqmp_dp.c
> +++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c
> @@ -17,6 +17,7 @@
> #include <drm/drm_fourcc.h>
> #include <drm/drm_modes.h>
> #include <drm/drm_of.h>
> +#include <drm/drm_probe_helper.h>
>
> #include <linux/clk.h>
> #include <linux/delay.h>
> @@ -1614,6 +1615,9 @@ static void zynqmp_dp_hpd_work_func(struct work_struct *work)
> hpd_work.work);
> enum drm_connector_status status;
>
> + if (dp->bridge.dev)
> + drm_helper_hpd_irq_event(dp->bridge.dev);
> +
> status = zynqmp_dp_bridge_detect(&dp->bridge);
> drm_bridge_hpd_notify(&dp->bridge, status);
> }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-09-24 18:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 7:48 lists
2024-09-24 18:43 ` Laurent Pinchart [this message]
2024-09-25 7:54 ` Steffen Dirkwinkel
2024-09-25 16:36 ` Laurent Pinchart
2024-10-09 14:28 ` Steffen Dirkwinkel
2024-10-19 15:11 ` Dmitry Baryshkov
2024-10-21 13:19 ` Steffen Dirkwinkel
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=20240924184335.GJ30551@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@steffen.cc \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michal.simek@amd.com \
--cc=mripard@kernel.org \
--cc=s.dirkwinkel@beckhoff.com \
--cc=tzimmermann@suse.de \
/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®