Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2eddc61 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Felipe Balbi
Browse files

usb: gadget: renesas_usbhs: usbhs_dcp_control_transfer_done() cares mod_host



CCPL setting is needed on only mod_gadget.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 9e74d601
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -636,9 +636,13 @@ struct usbhs_pipe *usbhs_dcp_malloc(struct usbhs_priv *priv)

void usbhs_dcp_control_transfer_done(struct usbhs_pipe *pipe)
{
	struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe);

	WARN_ON(!usbhs_pipe_is_dcp(pipe));

	usbhs_pipe_enable(pipe);

	if (!usbhs_mod_is_host(priv)) /* funconly */
		usbhsp_pipectrl_set(pipe, CCPL, CCPL);
}