Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1226453 > unrolled thread

[PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin

Started byDouglas Anderson <dianders@chromium.org>
First post2015-09-16 22:50 +0200
Last post2015-09-21 16:20 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin Douglas Anderson <dianders@chromium.org> - 2015-09-16 22:50 +0200
    Re: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused  cable_plugin Thierry Reding <treding@nvidia.com> - 2015-09-21 12:00 +0200
      Re: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused  cable_plugin Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-09-21 16:20 +0200

#1226453 — [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin

FromDouglas Anderson <dianders@chromium.org>
Date2015-09-16 22:50 +0200
Subject[PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin
Message-ID<q9rOq-735-9@gated-at.bofh.it>
There's a member in 'struct dw_hdmi' called cable_plugin.  It's never
set to anything anywhere so thus is always false.  There's a bit of code
checking it, but since it's always false this must be dead code.
Eliminate it.

Note: if someone wants to figure out the intention of the original code
and implement whatever feature / fix was needed then we can drop this
patch.  The 'cable_plugin' member has been unused since the code was
first added in (9aaf880 imx-drm: Add mx6 hdmi transmitter support).

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
 drivers/gpu/drm/bridge/dw_hdmi.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
index 0083d4e..ba90885 100644
--- a/drivers/gpu/drm/bridge/dw_hdmi.c
+++ b/drivers/gpu/drm/bridge/dw_hdmi.c
@@ -115,7 +115,6 @@ struct dw_hdmi {
 	int vic;
 
 	u8 edid[HDMI_EDID_LEN];
-	bool cable_plugin;
 
 	bool phy_enabled;
 	struct drm_display_mode previous_mode;
@@ -1203,12 +1202,6 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi)
 		hdmi_writeb(hdmi, val, HDMI_FC_INVIDCONF);
 }
 
-static void hdmi_enable_overflow_interrupts(struct dw_hdmi *hdmi)
-{
-	hdmi_writeb(hdmi, 0, HDMI_FC_MASK2);
-	hdmi_writeb(hdmi, 0, HDMI_IH_MUTE_FC_STAT2);
-}
-
 static void hdmi_disable_overflow_interrupts(struct dw_hdmi *hdmi)
 {
 	hdmi_writeb(hdmi, HDMI_IH_MUTE_FC_STAT2_OVERFLOW_MASK,
@@ -1285,8 +1278,6 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
 	hdmi_tx_hdcp_config(hdmi);
 
 	dw_hdmi_clear_overflow(hdmi);
-	if (hdmi->cable_plugin && hdmi->sink_is_hdmi)
-		hdmi_enable_overflow_interrupts(hdmi);
 
 	return 0;
 }
-- 
2.6.0.rc0.131.gf624c3d

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1229167 — Re: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin

FromThierry Reding <treding@nvidia.com>
Date2015-09-21 12:00 +0200
SubjectRe: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin
Message-ID<qb638-33B-19@gated-at.bofh.it>
In reply to#1226453

[Multipart message — attachments visible in raw view] — view raw

On Wed, Sep 16, 2015 at 01:41:38PM -0700, Douglas Anderson wrote:
> There's a member in 'struct dw_hdmi' called cable_plugin.  It's never
> set to anything anywhere so thus is always false.  There's a bit of code
> checking it, but since it's always false this must be dead code.
> Eliminate it.
> 
> Note: if someone wants to figure out the intention of the original code
> and implement whatever feature / fix was needed then we can drop this
> patch.  The 'cable_plugin' member has been unused since the code was
> first added in (9aaf880 imx-drm: Add mx6 hdmi transmitter support).
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
>  drivers/gpu/drm/bridge/dw_hdmi.c | 9 ---------
>  1 file changed, 9 deletions(-)

Except for the CHROMIUM: prefix this looks good to me:

Reviewed-by: Thierry Reding <treding@nvidia.com>

Russell, do you have patches to this driver queued for v4.4 and plan to
pick this up into your tree or should I take it?

Thierry

> 
> diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
> index 0083d4e..ba90885 100644
> --- a/drivers/gpu/drm/bridge/dw_hdmi.c
> +++ b/drivers/gpu/drm/bridge/dw_hdmi.c
> @@ -115,7 +115,6 @@ struct dw_hdmi {
>  	int vic;
>  
>  	u8 edid[HDMI_EDID_LEN];
> -	bool cable_plugin;
>  
>  	bool phy_enabled;
>  	struct drm_display_mode previous_mode;
> @@ -1203,12 +1202,6 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi)
>  		hdmi_writeb(hdmi, val, HDMI_FC_INVIDCONF);
>  }
>  
> -static void hdmi_enable_overflow_interrupts(struct dw_hdmi *hdmi)
> -{
> -	hdmi_writeb(hdmi, 0, HDMI_FC_MASK2);
> -	hdmi_writeb(hdmi, 0, HDMI_IH_MUTE_FC_STAT2);
> -}
> -
>  static void hdmi_disable_overflow_interrupts(struct dw_hdmi *hdmi)
>  {
>  	hdmi_writeb(hdmi, HDMI_IH_MUTE_FC_STAT2_OVERFLOW_MASK,
> @@ -1285,8 +1278,6 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
>  	hdmi_tx_hdcp_config(hdmi);
>  
>  	dw_hdmi_clear_overflow(hdmi);
> -	if (hdmi->cable_plugin && hdmi->sink_is_hdmi)
> -		hdmi_enable_overflow_interrupts(hdmi);
>  
>  	return 0;
>  }
> -- 
> 2.6.0.rc0.131.gf624c3d
> 

[toc] | [prev] | [next] | [standalone]


#1229420 — Re: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin

FromRussell King - ARM Linux <linux@arm.linux.org.uk>
Date2015-09-21 16:20 +0200
SubjectRe: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin
Message-ID<qba6L-CY-31@gated-at.bofh.it>
In reply to#1229167
On Mon, Sep 21, 2015 at 11:51:06AM +0200, Thierry Reding wrote:
> On Wed, Sep 16, 2015 at 01:41:38PM -0700, Douglas Anderson wrote:
> > There's a member in 'struct dw_hdmi' called cable_plugin.  It's never
> > set to anything anywhere so thus is always false.  There's a bit of code
> > checking it, but since it's always false this must be dead code.
> > Eliminate it.
> > 
> > Note: if someone wants to figure out the intention of the original code
> > and implement whatever feature / fix was needed then we can drop this
> > patch.  The 'cable_plugin' member has been unused since the code was
> > first added in (9aaf880 imx-drm: Add mx6 hdmi transmitter support).
> > 
> > Signed-off-by: Douglas Anderson <dianders@chromium.org>
> > ---
> >  drivers/gpu/drm/bridge/dw_hdmi.c | 9 ---------
> >  1 file changed, 9 deletions(-)
> 
> Except for the CHROMIUM: prefix this looks good to me:
> 
> Reviewed-by: Thierry Reding <treding@nvidia.com>
> 
> Russell, do you have patches to this driver queued for v4.4 and plan to
> pick this up into your tree or should I take it?

My current patch stack for imx-drm related stuff looks like this at
present:

drm: bridge/dw_hdmi: place PHY into low power mode when disabled
drm: bridge/dw_hdmi: start of support for pixel doubled modes
drm: bridge/dw_hdmi: remove CEC engine register definitions
drm: bridge/dw_hdmi-cec: add Designware HDMI CEC driver
cec: add HDMI CEC input driver
cec: add HDMI CEC core driver
drm: bridge/dw_hdmi: replace CTS calculation for the ACR
drm: bridge/dw_hdmi: remove ratio support from ACR code
drm: bridge/dw_hdmi: adjust pixel clock values in N calculation
drm: bridge/dw_hdmi: avoid being recursive in N calculation
drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes
drm: bridge/dw_hdmi-ahb-audio: basic support for multi-channel PCM audio
drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver
drm: bridge/dw_hdmi-ahb-audio: add audio driver
drm: bridge/dw_hdmi: improve HDMI enable/disable handling
drm: bridge/dw_hdmi: add connector mode forcing
drm: bridge/dw_hdmi: add support for interlaced video modes
gpu: imx: fix support for interlaced modes
gpu: imx: simplify sync polarity setting

I haven't yet decided what, if anything, from that stack I'm going to
try to get into the next merge window.  Given the lack of interest last
time I posted these patches, I'm loosing interest myself in trying to
get them merged, especially ones which are getting on for being 2 years
old.

-- 
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web