android_kernel_sony_sdm845/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Glöckner c4f24a093f usb: musb: fix remote wakeup racing with suspend
[ Upstream commit ebc3dd688cd988754a304147753b13e58de1b5a1 ]

It has been observed that writing 0xF2 to the power register while it
reads as 0xF4 results in the register having the value 0xF0, i.e. clearing
RESUME and setting SUSPENDM in one go does not work. It might also violate
the USB spec to transition directly from resume to suspend, especially
when not taking T_DRSMDN into account. But this is what happens when a
remote wakeup occurs between SetPortFeature USB_PORT_FEAT_SUSPEND on the
root hub and musb_bus_suspend being called.

This commit returns -EBUSY when musb_bus_suspend is called while remote
wakeup is signalled and thus avoids to reset the RESUME bit. Ignoring
this error when musb_port_suspend is called from musb_hub_control is ok.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-26 08:08:06 +08:00
..
atm usb: atm: usbatm: don't print on ENOMEM 2016-08-30 19:17:36 +02:00
c67x00
chipidea usb: chipidea: properly handle host or gadget initialization failure 2018-04-13 19:47:59 +02:00
class usb: cdc_acm: prevent race at write to acm while system resumes 2018-05-25 16:13:01 +02:00
common usb: patches for v4.9 merge window 2016-09-14 20:37:50 +02:00
core USB: Accept bulk endpoints with 1024-byte maxpacket 2018-05-09 09:50:23 +02:00
dwc2 usb: dwc2: host: Fix transaction errors in host mode 2018-05-25 16:13:03 +02:00
dwc3 usb: dwc3: Update DWC_usb31 GTXFIFOSIZ reg fields 2018-05-25 16:13:03 +02:00
early treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
gadget usb: gadget: udc: renesas_usb3: disable the controller's irqs for reconnecting 2018-06-16 09:52:33 +02:00
host xhci: zero usb device slot_id member when disabling and freeing a xhci slot 2018-05-25 16:13:03 +02:00
image usb: microtek: Use "foo *bar" instead of "foo * bar". 2016-06-07 22:18:39 -07:00
isp1760 usb: Remove unnecessary space before open square bracket. 2016-05-09 13:08:46 +02:00
misc usb: misc: lvs: fix race condition in disconnect handling 2018-03-22 09:17:40 +01:00
mon usb: usbmon: Read text within supplied buffer size 2018-03-18 11:18:56 +01:00
musb usb: musb: fix remote wakeup racing with suspend 2018-06-26 08:08:06 +08:00
phy usb: phy: msm add regulator dependency 2018-02-25 11:05:56 +01:00
renesas_usbhs usb: renesas_usbhs: missed the "running" flag in usb_dmac with rx path 2018-02-28 10:18:32 +01:00
serial USB: serial: cp210x: use tcflag_t to fix incompatible pointer type 2018-06-06 16:44:32 +02:00
storage usb-storage: Add compatibility quirk flags for G-Technologies G-Drive 2018-06-16 09:52:33 +02:00
usbip usbip: vhci_sysfs: fix potential Spectre v1 2018-06-16 09:52:33 +02:00
wusbcore USB: wusbcore: fix NULL-deref at probe 2017-03-30 09:41:24 +02:00
Kconfig usb: Move USB_UHCI_BIG_ENDIAN_* out of USB_SUPPORT 2018-02-22 15:43:51 +01:00
Makefile
README
usb-skeleton.c usb: usb-skeleton: don't print on ENOMEM 2016-08-30 19:17:39 +02:00

To understand all the Linux-USB framework, you'll use these resources:

    * This source code.  This is necessarily an evolving work, and
      includes kerneldoc that should help you get a current overview.
      ("make pdfdocs", and then look at "usb.pdf" for host side and
      "gadget.pdf" for peripheral side.)  Also, Documentation/usb has
      more information.

    * The USB 2.0 specification (from www.usb.org), with supplements
      such as those for USB OTG and the various device classes.
      The USB specification has a good overview chapter, and USB
      peripherals conform to the widely known "Chapter 9".

    * Chip specifications for USB controllers.  Examples include
      host controllers (on PCs, servers, and more); peripheral
      controllers (in devices with Linux firmware, like printers or
      cell phones); and hard-wired peripherals like Ethernet adapters.

    * Specifications for other protocols implemented by USB peripheral
      functions.  Some are vendor-specific; others are vendor-neutral
      but just standardized outside of the www.usb.org team.

Here is a list of what each subdirectory here is, and what is contained in
them.

core/		- This is for the core USB host code, including the
		  usbfs files and the hub class driver ("hub_wq").

host/		- This is for USB host controller drivers.  This
		  includes UHCI, OHCI, EHCI, and others that might
		  be used with more specialized "embedded" systems.

gadget/		- This is for USB peripheral controller drivers and
		  the various gadget drivers which talk to them.


Individual USB driver directories.  A new driver should be added to the
first subdirectory in the list below that it fits into.

image/		- This is for still image drivers, like scanners or
		  digital cameras.
../input/	- This is for any driver that uses the input subsystem,
		  like keyboard, mice, touchscreens, tablets, etc.
../media/	- This is for multimedia drivers, like video cameras,
		  radios, and any other drivers that talk to the v4l
		  subsystem.
../net/		- This is for network drivers.
serial/		- This is for USB to serial drivers.
storage/	- This is for USB mass-storage drivers.
class/		- This is for all USB device drivers that do not fit
		  into any of the above categories, and work for a range
		  of USB Class specified devices. 
misc/		- This is for all USB device drivers that do not fit
		  into any of the above categories.