diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-12-09 03:28:54 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-13 12:06:26 +0100 |
commit | 3edeee3893b107364fe4ed8535245773b1e1e72b (patch) | |
tree | c2207d91e769635857b8f9b14e36ed686a6e8a32 /drivers/usb/renesas_usbhs/fifo.h | |
parent | usb: renesas_usbhs: add usbhs_pipe_attach() method (diff) | |
download | linux-3edeee3893b107364fe4ed8535245773b1e1e72b.tar.xz linux-3edeee3893b107364fe4ed8535245773b1e1e72b.zip |
usb: renesas_usbhs: care pipe sequence
driver has to re-use the limited pipe for each device/endpoint
when it is USB host hub mode, since number of pipe has limitation.
Then, each pipe should care own pipe sequence for next packet.
This patch adds sequence control.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/fifo.h')
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.h b/drivers/usb/renesas_usbhs/fifo.h index 32a7b246b28d..f68609c0f489 100644 --- a/drivers/usb/renesas_usbhs/fifo.h +++ b/drivers/usb/renesas_usbhs/fifo.h @@ -59,6 +59,7 @@ struct usbhs_pkt { int trans; int actual; int zero; + int sequence; }; struct usbhs_pkt_handle { @@ -95,7 +96,7 @@ void usbhs_pkt_init(struct usbhs_pkt *pkt); void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, void (*done)(struct usbhs_priv *priv, struct usbhs_pkt *pkt), - void *buf, int len, int zero); + void *buf, int len, int zero, int sequence); struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt); void usbhs_pkt_start(struct usbhs_pipe *pipe); |