Re: Calling usb_bulk_msg inside usbtouch_process_pkt is causing kernel panic

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

 



>>> Submitting a urb (note, with a call to usb_submit_urb()) should not cause a problem here, as long as you pass the proper flags to the call, which you are doing, right?

Sorry, I was not getting the point here... I'm now trying to submit a urb (for the first time for myself)

usb_fill_bulk_urb(usbtouch->irq, usbdev, usb_sndbulkpipe(usbdev, (int)0x02), &requestPacket, 8, usbtouch_irq, usbtouch);
retval = usb_submit_urb(usbtouch->irq, GFP_ATOMIC);

if (retval)
{
    printk(KERN_INFO "usb_submit_urb failed with result");
}

This was I have done. No kernel panic but in syslog I had the following:

[ 3532.059998] dpx: usbtouch_irq - usb_submit_urb failed with result: -22


Should I create another urb from the scratch or can I use the one that is already included in the device context structure initialized at the beggining?


Thanks,

Nuno

--
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