aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/udl/udl_main.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2022-09-08 09:51:08 +0000
committerThomas Zimmermann <[email protected]>2022-09-10 19:45:52 +0000
commit53593515ec1a4a5afaaa88fd4522bc4c2d7f5d9b (patch)
tree2c2443ff7c8e48105be7366d8c02fd8a5369d84b /drivers/gpu/drm/udl/udl_main.c
parentRevert "drm/udl: Kill pending URBs at suspend and disconnect" (diff)
downloadkernel-53593515ec1a4a5afaaa88fd4522bc4c2d7f5d9b.tar.gz
kernel-53593515ec1a4a5afaaa88fd4522bc4c2d7f5d9b.zip
drm/udl: Suppress error print for -EPROTO at URB completion
The driver may receive -EPROTO at the URB completion when the device gets disconnected, and it's a normal situation. Suppress the error print for that, too. Signed-off-by: Takashi Iwai <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/udl/udl_main.c')
-rw-r--r--drivers/gpu/drm/udl/udl_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c
index a9f6b710b254..6aed6e0f669c 100644
--- a/drivers/gpu/drm/udl/udl_main.c
+++ b/drivers/gpu/drm/udl/udl_main.c
@@ -126,6 +126,7 @@ void udl_urb_completion(struct urb *urb)
if (urb->status) {
if (!(urb->status == -ENOENT ||
urb->status == -ECONNRESET ||
+ urb->status == -EPROTO ||
urb->status == -ESHUTDOWN)) {
DRM_ERROR("%s - nonzero write bulk status received: %d\n",
__func__, urb->status);