- perror("hmcfgusb_poll");
- break;
- } else {
- /* periodically wakeup the device */
- hmcfgusb_send_null_frame(dev);
+ if (errno != ETIMEDOUT) {
+ perror("hmcfgusb_poll");
+ break;
+ } else {
+ /* periodically wakeup the device */
+ hmcfgusb_send_null_frame(dev, 1);
+ }