Skip to contentSkip to conversation

drm: bridge/dw_hdmi: Fix return error path

PATCH In review Fabio Estevam 3 participants 4 messages Jan 27, 2015 – Jan 28, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: bridge/dw_hdmi: Fix return error path

If devm_request_threaded_irq() fails we should jump to 'err_iahb' label that will disable the clocks that were previously enabled.

---
 drivers/gpu/drm/bridge/dw_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/dw_hdmi.c +1 -1
index ed3dfe7..cd6a706 100644
@@ -1642,7 +1642,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
 					dw_hdmi_irq, IRQF_SHARED,
 					dev_name(dev), hdmi);
 	if (ret)
-		return ret;
+		goto err_iahb;
 
 	/*
 	 * To prevent overflows in HDMI_IH_FC_STAT2, set the clk regenerator
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Fabio,

Am Dienstag, den 27.01.2015, 10:54 -0200 schrieb Fabio Estevam:

Quoted 13 lines

If devm_request_threaded_irq() fails we should jump to 'err_iahb' label that will disable the clocks that were previously enabled.

---
 drivers/gpu/drm/bridge/dw_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/dw_hdmi.c +0 -0
index ed3dfe7..cd6a706 100644

drivers/gpu/drm/bridge/dw_hdmi.c int dw_hdmi_bind(struct device *dev, struct device *master, · line 1648

Quoted 8 lines
drivers/gpu/drm/bridge/dw_hdmi.c +1 -1
@@ -1642,7 +1642,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
 					dw_hdmi_irq, IRQF_SHARED,
 					dev_name(dev), hdmi);
 	if (ret)
-		return ret;
+		goto err_iahb;
 
 	/*
 	 * To prevent overflows in HDMI_IH_FC_STAT2, set the clk regenerator

Thanks for the fix. I have applied this to my tree since I've introduced the bug in there.

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 22 lines · Philipp Zabel

Hi Fabio,

Am Dienstag, den 27.01.2015, 10:54 -0200 schrieb Fabio Estevam:

Quoted 19 lines

If devm_request_threaded_irq() fails we should jump to 'err_iahb' label that will disable the clocks that were previously enabled.

---
 drivers/gpu/drm/bridge/dw_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/dw_hdmi.c +1 -1
index ed3dfe7..cd6a706 100644
@@ -1642,7 +1642,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
 					dw_hdmi_irq, IRQF_SHARED,
 					dev_name(dev), hdmi);
 	if (ret)
-		return ret;
+		goto err_iahb;
 
Quoted 5 lines

drivers/gpu/drm/bridge/dw_hdmi.c int dw_hdmi_bind(struct device *dev, struct device *master, · line 1648

Quoted 2 lines
drivers/gpu/drm/bridge/dw_hdmi.c +0 -0
 	/*
 	 * To prevent overflows in HDMI_IH_FC_STAT2, set the clk regenerator

Thanks for the fix. I have applied this to my tree since I've introduced the bug in there.

I'm currently redoing the drm/{panel,bridge} pull request anyway, so I could apply this while at it.

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Acked-by
#3 lore raw

Hi Thierry,

Am Mittwoch, den 28.01.2015, 09:00 +0100 schrieb Thierry Reding:

Quoted 23 lines · Philipp Zabel
Quoted 22 lines

Hi Fabio,

Am Dienstag, den 27.01.2015, 10:54 -0200 schrieb Fabio Estevam:

Quoted 19 lines

If devm_request_threaded_irq() fails we should jump to 'err_iahb' label that will disable the clocks that were previously enabled.

---
 drivers/gpu/drm/bridge/dw_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/dw_hdmi.c +1 -1
index ed3dfe7..cd6a706 100644
@@ -1642,7 +1642,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
 					dw_hdmi_irq, IRQF_SHARED,
 					dev_name(dev), hdmi);
 	if (ret)
-		return ret;
+		goto err_iahb;
 
Quoted 8 lines
Quoted 5 lines

drivers/gpu/drm/bridge/dw_hdmi.c int dw_hdmi_bind(struct device *dev, struct device *master, · line 1648

Quoted 2 lines
drivers/gpu/drm/bridge/dw_hdmi.c +0 -0
 	/*
 	 * To prevent overflows in HDMI_IH_FC_STAT2, set the clk regenerator

Thanks for the fix. I have applied this to my tree since I've introduced the bug in there.

I'm currently redoing the drm/{panel,bridge} pull request anyway, so I could apply this while at it.

Thanks, I have a few fixes for the last pull anyway:

    git://git.pengutronix.de/git/pza/linux.git tags/imx-drm-next-2015-01-28

I can remove this patch from the branch if you'll take it, let me know what you prefer. Just in case:

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel