* [PATCH] dw-hdmi: add missing cec_notifier_put
@ 2017-08-07 7:20 Hans Verkuil
2017-08-07 10:57 ` Archit Taneja
0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2017-08-07 7:20 UTC (permalink / raw)
To: dri-devel, Archit Taneja; +Cc: Russell King - ARM Linux
The __dw_hdmi_remove() function was missing a call to cec_notifier_put
to balance the cec_notifier_get in the probe function.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
---
This fix was in the v3 patch but unfortunately the v2 patch ended up being merged.
So fix this in a separate patch.
---
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index f8171cd07e74..a24ec4ad18bd 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -2496,6 +2496,9 @@ static void __dw_hdmi_remove(struct dw_hdmi *hdmi)
/* Disable all interrupts */
hdmi_writeb(hdmi, ~0, HDMI_IH_MUTE_PHY_STAT0);
+ if (hdmi->cec_notifier)
+ cec_notifier_put(hdmi->cec_notifier);
+
clk_disable_unprepare(hdmi->iahb_clk);
clk_disable_unprepare(hdmi->isfr_clk);
--
2.13.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dw-hdmi: add missing cec_notifier_put
2017-08-07 7:20 [PATCH] dw-hdmi: add missing cec_notifier_put Hans Verkuil
@ 2017-08-07 10:57 ` Archit Taneja
0 siblings, 0 replies; 2+ messages in thread
From: Archit Taneja @ 2017-08-07 10:57 UTC (permalink / raw)
To: Hans Verkuil; +Cc: Russell King - ARM Linux, dri-devel
On 08/07/2017 12:50 PM, Hans Verkuil wrote:
> The __dw_hdmi_remove() function was missing a call to cec_notifier_put
> to balance the cec_notifier_get in the probe function.
Queued to drm-misc-next.
Thanks,
Archit
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> This fix was in the v3 patch but unfortunately the v2 patch ended up being merged.
> So fix this in a separate patch.
> ---
> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> index f8171cd07e74..a24ec4ad18bd 100644
> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> @@ -2496,6 +2496,9 @@ static void __dw_hdmi_remove(struct dw_hdmi *hdmi)
> /* Disable all interrupts */
> hdmi_writeb(hdmi, ~0, HDMI_IH_MUTE_PHY_STAT0);
>
> + if (hdmi->cec_notifier)
> + cec_notifier_put(hdmi->cec_notifier);
> +
> clk_disable_unprepare(hdmi->iahb_clk);
> clk_disable_unprepare(hdmi->isfr_clk);
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-07 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07 7:20 [PATCH] dw-hdmi: add missing cec_notifier_put Hans Verkuil
2017-08-07 10:57 ` Archit Taneja
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.