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

Commit 46df55ce authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull USB fixes from Greg KH:
 "Here are some USB fixes for 4.5-rc3.

  The usual, xhci fixes for reported issues, combined with some small
  gadget driver fixes, and a MAINTAINERS file update.  All have been in
  linux-next with no reported issues"

* tag 'usb-4.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
  xhci: harden xhci_find_next_ext_cap against device removal
  xhci: Fix list corruption in urb dequeue at host removal
  usb: host: xhci-plat: fix NULL pointer in probe for device tree case
  usb: xhci-mtk: fix AHB bus hang up caused by roothubs polling
  usb: xhci-mtk: fix bpkts value of LS/HS periodic eps not behind TT
  usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Broxton-M platforms
  usb: xhci: set SSIC port unused only if xhci_suspend succeeds
  usb: xhci: add a quirk bit for ssic port unused
  usb: xhci: handle both SSIC ports in PME stuck quirk
  usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.
  Revert "xhci: don't finish a TD if we get a short-transfer event mid TD"
  MAINTAINERS: fix my email address
  usb: dwc2: Fix probe problem on bcm2835
  Revert "usb: dwc2: Move reset into dwc2_get_hwparams()"
  usb: musb: ux500: Fix NULL pointer dereference at system PM
  usb: phy: mxs: declare variable with initialized value
  usb: phy: msm: fix error handling in probe.
parents dacd53c8 89140fda
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3450,7 +3450,7 @@ S: Maintained
F:	drivers/usb/dwc2/

DESIGNWARE USB3 DRD IP DRIVER
M:	Felipe Balbi <balbi@ti.com>
M:	Felipe Balbi <balbi@kernel.org>
L:	linux-usb@vger.kernel.org
L:	linux-omap@vger.kernel.org
T:	git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
@@ -7362,7 +7362,7 @@ F: drivers/tty/isicom.c
F:	include/linux/isicom.h

MUSB MULTIPOINT HIGH SPEED DUAL-ROLE CONTROLLER
M:	Felipe Balbi <balbi@ti.com>
M:	Felipe Balbi <balbi@kernel.org>
L:	linux-usb@vger.kernel.org
T:	git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
S:	Maintained
@@ -7931,7 +7931,7 @@ F: drivers/media/platform/omap3isp/
F:	drivers/staging/media/omap4iss/

OMAP USB SUPPORT
M:	Felipe Balbi <balbi@ti.com>
M:	Felipe Balbi <balbi@kernel.org>
L:	linux-usb@vger.kernel.org
L:	linux-omap@vger.kernel.org
T:	git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
@@ -11314,7 +11314,7 @@ F: Documentation/usb/ehci.txt
F:	drivers/usb/host/ehci*

USB GADGET/PERIPHERAL SUBSYSTEM
M:	Felipe Balbi <balbi@ti.com>
M:	Felipe Balbi <balbi@kernel.org>
L:	linux-usb@vger.kernel.org
W:	http://www.linux-usb.org/gadget
T:	git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
@@ -11390,7 +11390,7 @@ S: Maintained
F:	drivers/net/usb/pegasus.*

USB PHY LAYER
M:	Felipe Balbi <balbi@ti.com>
M:	Felipe Balbi <balbi@kernel.org>
L:	linux-usb@vger.kernel.org
T:	git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
S:	Maintained
+0 −14
Original line number Diff line number Diff line
@@ -572,12 +572,6 @@ static bool dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host)
	set = host ? GUSBCFG_FORCEHOSTMODE : GUSBCFG_FORCEDEVMODE;
	clear = host ? GUSBCFG_FORCEDEVMODE : GUSBCFG_FORCEHOSTMODE;

	/*
	 * If the force mode bit is already set, don't set it.
	 */
	if ((gusbcfg & set) && !(gusbcfg & clear))
		return false;

	gusbcfg &= ~clear;
	gusbcfg |= set;
	dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG);
@@ -3278,9 +3272,6 @@ static void dwc2_get_dev_hwparams(struct dwc2_hsotg *hsotg)
/**
 * During device initialization, read various hardware configuration
 * registers and interpret the contents.
 *
 * This should be called during driver probe. It will perform a core
 * soft reset in order to get the reset values of the parameters.
 */
int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
{
@@ -3288,7 +3279,6 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
	unsigned width;
	u32 hwcfg1, hwcfg2, hwcfg3, hwcfg4;
	u32 grxfsiz;
	int retval;

	/*
	 * Attempt to ensure this device is really a DWC_otg Controller.
@@ -3308,10 +3298,6 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
		hw->snpsid >> 12 & 0xf, hw->snpsid >> 8 & 0xf,
		hw->snpsid >> 4 & 0xf, hw->snpsid & 0xf, hw->snpsid);

	retval = dwc2_core_reset(hsotg);
	if (retval)
		return retval;

	hwcfg1 = dwc2_readl(hsotg->regs + GHWCFG1);
	hwcfg2 = dwc2_readl(hsotg->regs + GHWCFG2);
	hwcfg3 = dwc2_readl(hsotg->regs + GHWCFG3);
+7 −1
Original line number Diff line number Diff line
@@ -530,7 +530,13 @@ static int dwc2_driver_probe(struct platform_device *dev)
	if (retval)
		return retval;

	/* Reset the controller and detect hardware config values */
	/*
	 * Reset before dwc2_get_hwparams() then it could get power-on real
	 * reset value form registers.
	 */
	dwc2_core_reset_and_force_dr_mode(hsotg);

	/* Detect config values from hardware */
	retval = dwc2_get_hwparams(hsotg);
	if (retval)
		goto error;
+1 −0
Original line number Diff line number Diff line
@@ -2789,6 +2789,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
	dwc->gadget.speed		= USB_SPEED_UNKNOWN;
	dwc->gadget.sg_supported	= true;
	dwc->gadget.name		= "dwc3-gadget";
	dwc->gadget.is_otg		= dwc->dr_mode == USB_DR_MODE_OTG;

	/*
	 * FIXME We might be setting max_speed to <SUPER, however versions
+4 −0
Original line number Diff line number Diff line
@@ -112,12 +112,16 @@ static inline int xhci_find_next_ext_cap(void __iomem *base, u32 start, int id)
	offset = start;
	if (!start || start == XHCI_HCC_PARAMS_OFFSET) {
		val = readl(base + XHCI_HCC_PARAMS_OFFSET);
		if (val == ~0)
			return 0;
		offset = XHCI_HCC_EXT_CAPS(val) << 2;
		if (!offset)
			return 0;
	};
	do {
		val = readl(base + offset);
		if (val == ~0)
			return 0;
		if (XHCI_EXT_CAPS_ID(val) == id && offset != start)
			return offset;

Loading