Commit b90acd09 authored by Jani Nikula's avatar Jani Nikula

drm/i915/dsi: return -EBUSY instead of -1

Avoid using the incidental -EPERM. Also remove useless comment.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/37df1edc6d3745997cec2dfe41520d9f704e14b4.1633000838.git.jani.nikula@intel.com
parent 207ea507
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment