* [RESEND PATCH] drm/vc4: hdmi: Silence pixel clock error on -EPROBE_DEFER
@ 2020-05-25 1:28 James Hilliard
2020-05-25 15:12 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2020-05-25 1:28 UTC (permalink / raw)
To: dri-devel
Cc: James Hilliard, Eric Anholt, David Airlie, Daniel Vetter, linux-kernel
If the vc4 hdmi driver loads before the pixel clock is available we
see a spurious "*ERROR* Failed to get pixel clock" error.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
no response in over 2 weeks
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index 340719238753..6d4ee3f6b445 100644
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -1338,8 +1338,10 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)
hdmi->pixel_clock = devm_clk_get(dev, "pixel");
if (IS_ERR(hdmi->pixel_clock)) {
- DRM_ERROR("Failed to get pixel clock\n");
- return PTR_ERR(hdmi->pixel_clock);
+ ret = PTR_ERR(hdmi->pixel_clock);
+ if (ret != -EPROBE_DEFER)
+ DRM_ERROR("Failed to get pixel clock\n");
+ return ret;
}
hdmi->hsm_clock = devm_clk_get(dev, "hdmi");
if (IS_ERR(hdmi->hsm_clock)) {
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] drm/vc4: hdmi: Silence pixel clock error on -EPROBE_DEFER
2020-05-25 1:28 [RESEND PATCH] drm/vc4: hdmi: Silence pixel clock error on -EPROBE_DEFER James Hilliard
@ 2020-05-25 15:12 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2020-05-25 15:12 UTC (permalink / raw)
To: James Hilliard
Cc: dri-devel, Eric Anholt, David Airlie, Daniel Vetter, linux-kernel
On Sun, May 24, 2020 at 07:28:59PM -0600, James Hilliard wrote:
> If the vc4 hdmi driver loads before the pixel clock is available we
> see a spurious "*ERROR* Failed to get pixel clock" error.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> no response in over 2 weeks
Thanks for poking again, not sure who exactly is supporting drm/vc4
nowadays. Eric at least doesn't work at broadcom anymore.
I queued up the patch in drm-misc-next.
-Daniel
> ---
> drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
> index 340719238753..6d4ee3f6b445 100644
> --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
> +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
> @@ -1338,8 +1338,10 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)
>
> hdmi->pixel_clock = devm_clk_get(dev, "pixel");
> if (IS_ERR(hdmi->pixel_clock)) {
> - DRM_ERROR("Failed to get pixel clock\n");
> - return PTR_ERR(hdmi->pixel_clock);
> + ret = PTR_ERR(hdmi->pixel_clock);
> + if (ret != -EPROBE_DEFER)
> + DRM_ERROR("Failed to get pixel clock\n");
> + return ret;
> }
> hdmi->hsm_clock = devm_clk_get(dev, "hdmi");
> if (IS_ERR(hdmi->hsm_clock)) {
> --
> 2.25.1
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-25 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 1:28 [RESEND PATCH] drm/vc4: hdmi: Silence pixel clock error on -EPROBE_DEFER James Hilliard
2020-05-25 15:12 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).