|
@@ -640,6 +640,11 @@ static struct usbhs_pipe *usbhsp_get_pipe(struct usbhs_priv *priv, u32 type)
|
|
|
return pipe;
|
|
|
}
|
|
|
|
|
|
+static void usbhsp_put_pipe(struct usbhs_pipe *pipe)
|
|
|
+{
|
|
|
+ usbhsp_flags_init(pipe);
|
|
|
+}
|
|
|
+
|
|
|
void usbhs_pipe_init(struct usbhs_priv *priv,
|
|
|
int (*dma_map_ctrl)(struct usbhs_pkt *pkt, int map))
|
|
|
{
|
|
@@ -727,6 +732,11 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
|
|
|
return pipe;
|
|
|
}
|
|
|
|
|
|
+void usbhs_pipe_free(struct usbhs_pipe *pipe)
|
|
|
+{
|
|
|
+ usbhsp_put_pipe(pipe);
|
|
|
+}
|
|
|
+
|
|
|
void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo)
|
|
|
{
|
|
|
if (pipe->fifo)
|