mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-10 14:35:48 +00:00
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
|
||
|---|---|---|
| .. | ||
| adv7511 | ||
| analogix | ||
| analogix-anx78xx.c | ||
| analogix-anx78xx.h | ||
| dumb-vga-dac.c | ||
| dw-hdmi-ahb-audio.c | ||
| dw-hdmi-audio.h | ||
| dw-hdmi.c | ||
| dw-hdmi.h | ||
| Kconfig | ||
| Makefile | ||
| nxp-ptn3460.c | ||
| parade-ps8622.c | ||
| sii902x.c | ||
| sil-sii8620.c | ||
| sil-sii8620.h | ||
| tc358767.c | ||