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

Commit e325988b authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: misc: ks_bridge: Enable enumeration on second xHCI port



There might be 2 USB ports on some platform and the second USB
port's xhci plat device comes up as xhci-hcd.1.auto. Enable
ks_bridge dev enumeration on this port by adding the str_to_busid
check.

Change-Id: I3cd399c247774d890614d458a63022909199dd0c
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent c05d4dd4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@ static enum bus_id str_to_busid(const char *name)
		return BUS_HSIC;
	if (!strncasecmp("msm_ehci_host.0", name, BUSNAME_LEN))
		return BUS_USB;
	if (!strncasecmp("xhci-hcd.0.auto", name, BUSNAME_LEN))
	if (!strncasecmp("xhci-hcd.0.auto", name, BUSNAME_LEN) ||
	    !strncasecmp("xhci-hcd.1.auto", name, BUSNAME_LEN))
		return BUS_USB;

	return BUS_UNDEF;