Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Sharma, Shashank" <shashank.sharma@intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/scdc-helper: Convert errors into debug messages
Date: Mon, 26 Mar 2018 21:38:59 +0300	[thread overview]
Message-ID: <20180326183859.GI5453@intel.com> (raw)
In-Reply-To: <bf8f0949-f5a3-a651-1913-8c35a06da021@intel.com>

On Sat, Mar 24, 2018 at 08:35:43AM +0530, Sharma, Shashank wrote:
> Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>

Thanks. Pushed to drm-misc-next.

> 
> Regards
> Shashank
> On 3/23/2018 11:55 PM, Ville Syrjala wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Since we may attempt to reconfigure SCDC when the sink has already been
> > disconnected we probably shouldn't scare the user with errors in dmesg
> > that are 100% expected in that case. Just leave it up to the caller
> > whether to print an error message or not, and just output debug
> > messages from the helper itself.
> >
> > Cc: Shashank Sharma <shashank.sharma@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> >   drivers/gpu/drm/drm_scdc_helper.c | 10 +++++-----
> >   1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/drm_scdc_helper.c b/drivers/gpu/drm/drm_scdc_helper.c
> > index 657ea5ab6c3f..870e25f1f788 100644
> > --- a/drivers/gpu/drm/drm_scdc_helper.c
> > +++ b/drivers/gpu/drm/drm_scdc_helper.c
> > @@ -141,7 +141,7 @@ bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter)
> >   
> >   	ret = drm_scdc_readb(adapter, SCDC_SCRAMBLER_STATUS, &status);
> >   	if (ret < 0) {
> > -		DRM_ERROR("Failed to read scrambling status: %d\n", ret);
> > +		DRM_DEBUG_KMS("Failed to read scrambling status: %d\n", ret);
> >   		return false;
> >   	}
> >   
> > @@ -168,7 +168,7 @@ bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable)
> >   
> >   	ret = drm_scdc_readb(adapter, SCDC_TMDS_CONFIG, &config);
> >   	if (ret < 0) {
> > -		DRM_ERROR("Failed to read TMDS config: %d\n", ret);
> > +		DRM_DEBUG_KMS("Failed to read TMDS config: %d\n", ret);
> >   		return false;
> >   	}
> >   
> > @@ -179,7 +179,7 @@ bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable)
> >   
> >   	ret = drm_scdc_writeb(adapter, SCDC_TMDS_CONFIG, config);
> >   	if (ret < 0) {
> > -		DRM_ERROR("Failed to enable scrambling: %d\n", ret);
> > +		DRM_DEBUG_KMS("Failed to enable scrambling: %d\n", ret);
> >   		return false;
> >   	}
> >   
> > @@ -223,7 +223,7 @@ bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set)
> >   
> >   	ret = drm_scdc_readb(adapter, SCDC_TMDS_CONFIG, &config);
> >   	if (ret < 0) {
> > -		DRM_ERROR("Failed to read TMDS config: %d\n", ret);
> > +		DRM_DEBUG_KMS("Failed to read TMDS config: %d\n", ret);
> >   		return false;
> >   	}
> >   
> > @@ -234,7 +234,7 @@ bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set)
> >   
> >   	ret = drm_scdc_writeb(adapter, SCDC_TMDS_CONFIG, config);
> >   	if (ret < 0) {
> > -		DRM_ERROR("Failed to set TMDS clock ratio: %d\n", ret);
> > +		DRM_DEBUG_KMS("Failed to set TMDS clock ratio: %d\n", ret);
> >   		return false;
> >   	}
> >   

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2018-03-26 18:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-23 18:25 [PATCH] drm/scdc-helper: Convert errors into debug messages Ville Syrjala
2018-03-23 19:29 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-03-23 23:53 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-03-26 18:22   ` Ville Syrjälä
2018-03-24  3:05 ` [PATCH] " Sharma, Shashank
2018-03-26 18:38   ` Ville Syrjälä [this message]

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=20180326183859.GI5453@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=shashank.sharma@intel.com \
    /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