mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
V4L/DVB (12775): tm6000: fix usb_submit_urb to be called inside interrupt context
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
7c3f53ec49
commit
2cd4fd1e57
@ -229,11 +229,15 @@ static int tm6000_usb_probe(struct usb_interface *interface,
|
|||||||
|
|
||||||
/* Increment usage count */
|
/* Increment usage count */
|
||||||
tm6000_devused|=1<<nr;
|
tm6000_devused|=1<<nr;
|
||||||
|
snprintf(dev->name, 29, "tm6000 #%d", nr);
|
||||||
|
|
||||||
|
dev->model=id->driver_info;
|
||||||
|
if ((card[nr]>=0) && (card[nr]<ARRAY_SIZE(tm6000_boards))) {
|
||||||
|
dev->model=card[nr];
|
||||||
|
}
|
||||||
|
|
||||||
INIT_LIST_HEAD(&dev->tm6000_corelist);
|
INIT_LIST_HEAD(&dev->tm6000_corelist);
|
||||||
dev->udev= usbdev;
|
dev->udev= usbdev;
|
||||||
dev->model=id->driver_info;
|
|
||||||
snprintf(dev->name, 29, "tm6000 #%d", nr);
|
|
||||||
dev->devno=nr;
|
dev->devno=nr;
|
||||||
|
|
||||||
switch (usbdev->speed) {
|
switch (usbdev->speed) {
|
||||||
|
@ -591,7 +591,7 @@ static int tm6000_start_thread( struct tm6000_dmaqueue *dma_q,
|
|||||||
|
|
||||||
/* submit urbs and enables IRQ */
|
/* submit urbs and enables IRQ */
|
||||||
for (i = 0; i < dev->isoc_ctl.num_bufs; i++) {
|
for (i = 0; i < dev->isoc_ctl.num_bufs; i++) {
|
||||||
rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_KERNEL);
|
rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_ATOMIC);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
tm6000_err("submit of urb %i failed (error=%i)\n", i,
|
tm6000_err("submit of urb %i failed (error=%i)\n", i,
|
||||||
rc);
|
rc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user