From 6a120c044242872e1cdf92463e2fee1a85dbff66 Mon Sep 17 00:00:00 2001 From: Dario Pagani <> Date: Wed, 19 Aug 2020 22:50:26 +0200 Subject: Added broken pipe as a new "normal" error code in the last handler. Replaced hid_err with hid_warn in the last handler --- hid-tminit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hid-tminit.c b/hid-tminit.c index 8219ab1..1538bab 100644 --- a/hid-tminit.c +++ b/hid-tminit.c @@ -62,10 +62,10 @@ static void tminit_change_handler(struct urb *urb) struct hid_device *hdev = urb->context; // The wheel seems to kill himself before answering the host and therefore is violating the USB protocol... - if(urb->status == 0 || urb->status == -EPROTO) + if(urb->status == 0 || urb->status == -EPROTO || urb->status == -EPIPE) hid_info(hdev, "Success?! The wheel should have been initialized!\n"); else - hid_err(hdev, "URB to change wheel mode failed with error %d\n", urb->status); + hid_warn(hdev, "URB to change wheel mode seems to have failed with error %d\n", urb->status); } -- cgit v1.3