From b90acd0987c81e4c8d7b4e7995ff3cecd16b2122 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 30 Sep 2021 14:24:33 +0300 Subject: [PATCH] drm/i915/dsi: return -EBUSY instead of -1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Avoid using the incidental -EPERM. Also remove useless comment. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/37df1edc6d3745997cec2dfe41520d9f704e14b4.1633000838.git.jani.nikula@intel.com --- drivers/gpu/drm/i915/display/icl_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/icl_dsi.c b/drivers/gpu/drm/i915/display/icl_dsi.c index 0daa90058ee3..9ee62707ec72 100644 --- a/drivers/gpu/drm/i915/display/icl_dsi.c +++ b/drivers/gpu/drm/i915/display/icl_dsi.c @@ -169,9 +169,8 @@ static int dsi_send_pkt_hdr(struct intel_dsi_host *host, enum transcoder dsi_trans = dsi_port_to_transcoder(host->port); u32 tmp; - /* check if header credit available */ if (!wait_for_header_credits(dev_priv, dsi_trans, 1)) - return -1; + return -EBUSY; tmp = intel_de_read(dev_priv, DSI_CMD_TXHDR(dsi_trans)); -- 2.34.1