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

Commit 7542548f authored by Li Yang's avatar Li Yang Committed by Greg Kroah-Hartman
Browse files

USB: fsl_usb2_udc: fix bug for portsc bit masking



Fix a bug that PORT_TYPE and PORT_WIDTH aren't masked correctly in portsc.

Signed-off-by: default avatarChristopher Cason <chris.cason@nec.com.au>
Signed-off-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7bbe990c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ static int dr_controller_setup(struct fsl_udc *udc)

	/* Config PHY interface */
	portctrl = fsl_readl(&dr_regs->portsc1);
	portctrl &= ~(PORTSCX_PHY_TYPE_SEL & PORTSCX_PORT_WIDTH);
	portctrl &= ~(PORTSCX_PHY_TYPE_SEL | PORTSCX_PORT_WIDTH);
	switch (udc->phy_mode) {
	case FSL_USB2_PHY_ULPI:
		portctrl |= PORTSCX_PTS_ULPI;