diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-10-11 01:07:20 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:41:51 -0400 |
commit | e2eddc6103c7f00a2a1a0dfe5fac494d039b099a (patch) | |
tree | e8c0d1cf479c37daab361baad7dc6d92f6d43068 /drivers/usb | |
parent | 9e74d601de8adb0fe96e100e459ac52f2ddd47f3 (diff) |
usb: gadget: renesas_usbhs: usbhs_dcp_control_transfer_done() cares mod_host
CCPL setting is needed on only mod_gadget.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/renesas_usbhs/pipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index 1acbe29437cb..c74389ce2177 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c | |||
@@ -636,10 +636,14 @@ struct usbhs_pipe *usbhs_dcp_malloc(struct usbhs_priv *priv) | |||
636 | 636 | ||
637 | void usbhs_dcp_control_transfer_done(struct usbhs_pipe *pipe) | 637 | void usbhs_dcp_control_transfer_done(struct usbhs_pipe *pipe) |
638 | { | 638 | { |
639 | struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe); | ||
640 | |||
639 | WARN_ON(!usbhs_pipe_is_dcp(pipe)); | 641 | WARN_ON(!usbhs_pipe_is_dcp(pipe)); |
640 | 642 | ||
641 | usbhs_pipe_enable(pipe); | 643 | usbhs_pipe_enable(pipe); |
642 | usbhsp_pipectrl_set(pipe, CCPL, CCPL); | 644 | |
645 | if (!usbhs_mod_is_host(priv)) /* funconly */ | ||
646 | usbhsp_pipectrl_set(pipe, CCPL, CCPL); | ||
643 | } | 647 | } |
644 | 648 | ||
645 | void usbhs_dcp_dir_for_host(struct usbhs_pipe *pipe, int dir_out) | 649 | void usbhs_dcp_dir_for_host(struct usbhs_pipe *pipe, int dir_out) |