mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-10 21:48:45 -04:00
drm/i915/dsi: return -EBUSY instead of -1
Avoid using the incidental -EPERM. Also remove useless comment. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/37df1edc6d3745997cec2dfe41520d9f704e14b4.1633000838.git.jani.nikula@intel.com
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user