aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod_gadget.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-07-07 03:23:24 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-08 17:57:12 -0400
commit233f519d273454e3e804e21363d5ef0bd031acfe (patch)
treea8ecdc7ba5d108962e9be01f737e7b2af4ac6374 /drivers/usb/renesas_usbhs/mod_gadget.c
parent45304e8cd9d9df07e9221551678262b390bdaaa4 (diff)
usb: renesas_usbhs: fixup comment-out
This patch add/modify comment-out of renesas_usbhs. On this process, usbhs_pkt_init was moved because it was placed under usbhsf_null_handler which has no relationship it Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_gadget.c')
-rw-r--r--drivers/usb/renesas_usbhs/mod_gadget.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index 9a8e2e9141b2..cc3ad634d4f7 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -114,7 +114,7 @@ struct usbhsg_recip_handle {
114#define usbhsg_status_has(gp, b) (gp->status & b) 114#define usbhsg_status_has(gp, b) (gp->status & b)
115 115
116/* 116/*
117 * list push/pop 117 * queue push/pop
118 */ 118 */
119static void usbhsg_queue_push(struct usbhsg_uep *uep, 119static void usbhsg_queue_push(struct usbhsg_uep *uep,
120 struct usbhsg_request *ureq) 120 struct usbhsg_request *ureq)
@@ -160,6 +160,9 @@ static void usbhsg_queue_done(struct usbhs_pkt *pkt)
160 usbhsg_queue_pop(uep, ureq, 0); 160 usbhsg_queue_pop(uep, ureq, 0);
161} 161}
162 162
163/*
164 * dma map/unmap
165 */
163static int usbhsg_dma_map(struct device *dev, 166static int usbhsg_dma_map(struct device *dev,
164 struct usbhs_pkt *pkt, 167 struct usbhs_pkt *pkt,
165 enum dma_data_direction dir) 168 enum dma_data_direction dir)
@@ -473,6 +476,11 @@ static int usbhsg_ep_enable(struct usb_ep *ep,
473 uep->pipe = pipe; 476 uep->pipe = pipe;
474 pipe->mod_private = uep; 477 pipe->mod_private = uep;
475 478
479 /*
480 * usbhs_fifo_dma_push/pop_handler try to
481 * use dmaengine if possible.
482 * It will use pio handler if impossible.
483 */
476 if (usb_endpoint_dir_in(desc)) 484 if (usb_endpoint_dir_in(desc))
477 uep->handler = &usbhs_fifo_dma_push_handler; 485 uep->handler = &usbhs_fifo_dma_push_handler;
478 else 486 else