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>
This commit is contained in:

committed by
Felipe Balbi

parent
e5679d07a6
commit
3edeee3893
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user