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

Commit 905276c4 authored by Daniel Tang's avatar Daniel Tang Committed by Greg Kroah-Hartman
Browse files

Chipidea: Set connect-at-fullspeed bit when entering host mode if...


Chipidea: Set connect-at-fullspeed bit when entering host mode if CI_HDRC_FORCE_FULLSPEED is set in the platform data

PORTSC_PFSC is not set on entering host mode which means the USB OTG
controller will attempt to enumerate USB devices at high speed even when the
CI_HDRC_FORCE_FULLSPEED flag is set in the platform data.

This patch ensures it is set right before host mode operations begin if needed.

Signed-off-by: default avatarDaniel Tang <dt.tangr@gmail.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 89200448
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -133,6 +133,9 @@ static int host_start(struct ci_hdrc *ci)
	if (ci->platdata->flags & CI_HDRC_DISABLE_STREAMING)
	if (ci->platdata->flags & CI_HDRC_DISABLE_STREAMING)
		hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, USBMODE_CI_SDIS);
		hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, USBMODE_CI_SDIS);


	if (ci->platdata->flags & CI_HDRC_FORCE_FULLSPEED)
		hw_write(ci, OP_PORTSC, PORTSC_PFSC, PORTSC_PFSC);

	return ret;
	return ret;


put_hcd:
put_hcd: