Commit d0a0a65e authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

[media] redrat3: ensure dma is setup properly

This fixes the driver on arm.
Reported-by: default avatarSteven Guitton <keltiek@gmail.com>
Tested-by: default avatarSteven Guitton <keltiek@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ddc0085e
...@@ -966,7 +966,7 @@ static int redrat3_dev_probe(struct usb_interface *intf, ...@@ -966,7 +966,7 @@ static int redrat3_dev_probe(struct usb_interface *intf,
rr3->ep_in = ep_in; rr3->ep_in = ep_in;
rr3->bulk_in_buf = usb_alloc_coherent(udev, rr3->bulk_in_buf = usb_alloc_coherent(udev,
le16_to_cpu(ep_in->wMaxPacketSize), GFP_ATOMIC, &rr3->dma_in); le16_to_cpu(ep_in->wMaxPacketSize), GFP_KERNEL, &rr3->dma_in);
if (!rr3->bulk_in_buf) { if (!rr3->bulk_in_buf) {
dev_err(dev, "Read buffer allocation failure\n"); dev_err(dev, "Read buffer allocation failure\n");
goto error; goto error;
...@@ -975,6 +975,8 @@ static int redrat3_dev_probe(struct usb_interface *intf, ...@@ -975,6 +975,8 @@ static int redrat3_dev_probe(struct usb_interface *intf,
pipe = usb_rcvbulkpipe(udev, ep_in->bEndpointAddress); pipe = usb_rcvbulkpipe(udev, ep_in->bEndpointAddress);
usb_fill_bulk_urb(rr3->read_urb, udev, pipe, rr3->bulk_in_buf, usb_fill_bulk_urb(rr3->read_urb, udev, pipe, rr3->bulk_in_buf,
le16_to_cpu(ep_in->wMaxPacketSize), redrat3_handle_async, rr3); le16_to_cpu(ep_in->wMaxPacketSize), redrat3_handle_async, rr3);
rr3->read_urb->transfer_dma = rr3->dma_in;
rr3->read_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
rr3->ep_out = ep_out; rr3->ep_out = ep_out;
rr3->udev = udev; rr3->udev = udev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment