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

Commit 0698b9b3 authored by Li Jun's avatar Li Jun Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: host: init otg port number



Init otg_port number of otg capable host to be 1 at host start.

Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarLi Jun <b47624@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a28b904
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -82,10 +82,17 @@ static int host_start(struct ci_hdrc *ci)
	}

	ret = usb_add_hcd(hcd, 0, 0);
	if (ret)
	if (ret) {
		goto disable_reg;
	else
	} else {
		struct usb_otg *otg = ci->transceiver->otg;

		ci->hcd = hcd;
		if (otg) {
			otg->host = &hcd->self;
			hcd->self.otg_port = 1;
		}
	}

	if (ci->platdata->flags & CI_HDRC_DISABLE_STREAMING)
		hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, USBMODE_CI_SDIS);