Driver lirc_igorplugusb freeze randomly. Timeout in usb_control_msg function is: HZ * USB_CTRL_GET_TIMEOUT: #define USB_CTRL_GET_TIMEOUT 5 ... ... ret = usb_control_msg( ir->usbdev, usb_rcvctrlpipe(ir->usbdev, 0), SET_INFRABUFFER_EMPTY, USB_TYPE_VENDOR|USB_DIR_IN, /*unused*/0, /*unused*/0, /*dummy*/ir->buf_in, /*dummy*/ir->len_in, /*timeout*/HZ * USB_CTRL_GET_TIMEOUT); In my system HZ * USB_CTRL_GET_TIMEOUT = 1250000 msec = 1250 sec. When I change HZ to 1000 then timeout = 5000 msec = 5 sec. Reproducible: Always Steps to Reproduce: 1. Run lirc and connect igorplugusb device 2. Press random buttons on remote control
Created attachment 218032 [details, diff] Patch change timeout from 1250000 msec to 5000 msec
Created attachment 218059 [details, diff] Patch fix timeout in usb_control_msg function Patch change timeout in kerlnel > 2.5.x from 1250000 to USB_CTRL_GET_TIMEOUT defined in include/linux/usb.h: #define USB_CTRL_GET_TIMEOUT 5000
Still valid with 0.9.0?