]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/scdc-helper: Convert errors into debug messages
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Mar 2018 18:25:37 +0000 (20:25 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Mar 2018 18:37:24 +0000 (21:37 +0300)
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20180323182537.30784-1-ville.syrjala@linux.intel.com
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
drivers/gpu/drm/drm_scdc_helper.c

index 657ea5ab6c3f896821672b3568e5808d39987f0b..870e25f1f788f32017866f124e94cd3a9debf9ad 100644 (file)
@@ -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;
        }