diff options
Diffstat (limited to 'drivers/usb/renesas_usbhs/pipe.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/pipe.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index 75e9e3cbc0e5..7a11616d6e28 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c | |||
@@ -531,7 +531,9 @@ static struct usbhs_pipe *usbhsp_get_pipe(struct usbhs_priv *priv, u32 type) | |||
531 | return pipe; | 531 | return pipe; |
532 | } | 532 | } |
533 | 533 | ||
534 | void usbhs_pipe_init(struct usbhs_priv *priv) | 534 | void usbhs_pipe_init(struct usbhs_priv *priv, |
535 | void (*tx_done)(struct usbhs_pkt *pkt), | ||
536 | void (*rx_done)(struct usbhs_pkt *pkt)) | ||
535 | { | 537 | { |
536 | struct usbhs_pipe_info *info = usbhs_priv_to_pipeinfo(priv); | 538 | struct usbhs_pipe_info *info = usbhs_priv_to_pipeinfo(priv); |
537 | struct usbhs_pipe *pipe; | 539 | struct usbhs_pipe *pipe; |
@@ -561,6 +563,9 @@ void usbhs_pipe_init(struct usbhs_priv *priv) | |||
561 | usbhsp_pipectrl_set(pipe, ACLRM, ACLRM); | 563 | usbhsp_pipectrl_set(pipe, ACLRM, ACLRM); |
562 | usbhsp_pipectrl_set(pipe, ACLRM, 0); | 564 | usbhsp_pipectrl_set(pipe, ACLRM, 0); |
563 | } | 565 | } |
566 | |||
567 | info->tx_done = tx_done; | ||
568 | info->rx_done = rx_done; | ||
564 | } | 569 | } |
565 | 570 | ||
566 | struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv, | 571 | struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv, |
@@ -639,7 +644,6 @@ void usbhs_dcp_control_transfer_done(struct usbhs_pipe *pipe) | |||
639 | usbhsp_pipectrl_set(pipe, CCPL, CCPL); | 644 | usbhsp_pipectrl_set(pipe, CCPL, CCPL); |
640 | } | 645 | } |
641 | 646 | ||
642 | |||
643 | /* | 647 | /* |
644 | * pipe module function | 648 | * pipe module function |
645 | */ | 649 | */ |