OpenCloudOS-Kernel/drivers/gpu/drm/bridge
Jianqun Xu 19423ba710 drm/bridge: analogix_dp: return error if transfer none byte
Reference from drm_dp_aux description (about transfer):
Upon success, the implementation should return the number of payload bytes
that were transferred, or a negative error-code on failure. Helpers
propagate errors from the .transfer() function, with the exception of
the -EBUSY error, which causes a transaction to be retried. On a short,
helpers will return -EPROTO to make it simpler to check for failure.

The analogix_dp_transfer will return num_transferred, but if there is none
byte been transferred, the return value will be 0, which means success, we
should return error-code if transfer none byte.

for (retry = 0; retry < 32; retry++) {
	err = aux->transfer(aux, &msg);
	if (err < 0) {
		if (err == -EBUSY)
			continue;

		goto unlock;
	}
}

Cc: zain wang <wzz@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1479255219-7243-1-git-send-email-jay.xu@rock-chips.com
2016-11-16 11:16:13 +05:30
..
adv7511 drm/bridge: adv7511: add support for the 2nd chip 2016-09-12 13:20:43 +05:30
analogix drm/bridge: analogix_dp: return error if transfer none byte 2016-11-16 11:16:13 +05:30
Kconfig drm/bridge: add Silicon Image SiI8620 driver 2016-10-26 11:19:12 +05:30
Makefile drm/bridge: add Silicon Image SiI8620 driver 2016-10-26 11:19:12 +05:30
analogix-anx78xx.c drm/bridge: Call drm_connector_cleanup directly 2016-10-05 15:20:36 +02:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
dumb-vga-dac.c drm/bridge: Add RGB to VGA bridge support 2016-10-10 10:58:44 +05:30
dw-hdmi-ahb-audio.c drm/bridge: dw-hdmi: Delete unnecessary assignment for the field "owner" 2016-08-23 11:34:26 -04:00
dw-hdmi-audio.h drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
dw-hdmi.c dw-hdmi i2c master controller 2016-11-11 09:57:54 +10:00
dw-hdmi.h drm: bridge/dw_hdmi: add dw hdmi i2c bus adapter support 2016-09-19 08:07:24 +02:00
nxp-ptn3460.c drm/bridge: Call drm_connector_cleanup directly 2016-10-05 15:20:36 +02:00
parade-ps8622.c drm/bridge: Call drm_connector_cleanup directly 2016-10-05 15:20:36 +02:00
sii902x.c drm/bridge: Add sii902x driver 2016-06-20 15:55:49 +02:00
sil-sii8620.c drm/bridge: fix platform_no_drv_owner.cocci warnings 2016-10-27 11:35:23 +05:30
sil-sii8620.h drm/bridge: add Silicon Image SiI8620 driver 2016-10-26 11:19:12 +05:30
tc358767.c drm/bridge: Drop drm_connector_unregister and call drm_connector_cleanup directly 2016-10-10 11:19:42 +02:00