Re: Bug#675093: linux-image-3.2.0-2-amd64: USB "timeout initializing reports" with Eaton UPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 31 May 2012, Manu Benoît wrote:

> Alright, got the log you requested.

Ok, thanks. I will have to think about this whole thing a little bit more, 
but as a first step, could you please try with the patch below to see if 
it makes any difference and makes the device behave correctly? Thanks.


NOT-Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>
--- 
 drivers/hid/usbhid/hid-core.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 482f936..4da252d 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -367,6 +367,9 @@ static int hid_submit_ctrl(struct hid_device *hid)
 	} else {
 		int maxpacket, padlen;
 
+		if (hid->quirks & HID_QUIRK_NOGET)
+			return;
+
 		usbhid->urbctrl->pipe = usb_rcvctrlpipe(hid_to_usb_dev(hid), 0);
 		maxpacket = usb_maxpacket(hid_to_usb_dev(hid),
 					  usbhid->urbctrl->pipe, 0);

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux