Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338618
b: refs/heads/master
c: 87c2905
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Oct 31, 2012
1 parent b2837d1 commit 95207ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3192fcb234895d9f313e7270702e1dc069d4a73a
refs/heads/master: 87c2905fd80da736b8f9aa58cbc0c9cf34a11aac
17 changes: 15 additions & 2 deletions trunk/drivers/usb/renesas_usbhs/mod_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,9 @@ static int usbhsh_queue_push(struct usb_hcd *hcd,
}

if (usb_pipein(urb->pipe))
pipe->handler = &usbhs_fifo_pio_pop_handler;
pipe->handler = &usbhs_fifo_dma_pop_handler;
else
pipe->handler = &usbhs_fifo_pio_push_handler;
pipe->handler = &usbhs_fifo_dma_push_handler;

buf = (void *)(urb->transfer_buffer + urb->actual_length);
len = urb->transfer_buffer_length - urb->actual_length;
Expand Down Expand Up @@ -916,6 +916,19 @@ static int usbhsh_dcp_queue_push(struct usb_hcd *hcd,
*/
static int usbhsh_dma_map_ctrl(struct usbhs_pkt *pkt, int map)
{
if (map) {
struct usbhsh_request *ureq = usbhsh_pkt_to_ureq(pkt);
struct urb *urb = ureq->urb;

/* it can not use scatter/gather */
if (urb->num_sgs)
return -EINVAL;

pkt->dma = urb->transfer_dma;
if (!pkt->dma)
return -EINVAL;
}

return 0;
}

Expand Down

0 comments on commit 95207ef

Please sign in to comment.