android_kernel_samsung_msm8976/drivers/usb
Manu Gautam 23bafa2fa4 USB: phy-msm-usb: Avoid race b/w sm_work and set_suspend
OTG's set_suspend routine is used by host controller (EHCI)
driver to suspend or resume USB OTG/PHY hardware from its
runtime suspend/resume callbacks. OTG set_suspend routine
uses sm_workqueue to put hardware in LPM (or suspend it).
As there is no synchronization between sm_work and
set_suspend, this results in both racing with each other.
Sometimes with fast back to back set_suspend calls, PHY LPM
state goes out of sync than what requested by host driver.
Fix this by flushing work from set_suspend to complete
event processing by sm_work.

CRs-fixed: 654489
Change-Id: I5e0bfa3bc6c12af23fd26b2496c7ee5b7fc1488e
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2014-05-01 14:32:02 +05:30
..
atm
c67x00
chipidea USB: Gadget: Add support for pinctrl framework 2014-03-08 00:35:40 +05:30
class Merge "USB: ccid_bridge: Add module param for bulk message timeout" 2014-04-26 00:54:36 -07:00
core Merge upstream linux-stable v3.10.28 into msm-3.10 2014-03-24 14:28:34 -07:00
dwc3 Merge "usb: dwc3-msm: Fix some cleanup during remove" 2014-04-30 00:34:24 -07:00
early
gadget Merge "usb: gadget: diag: fix read/write race with unbind" 2014-04-30 02:34:45 -07:00
host USB: ice40-hcd: Add optimization to improve read throughput 2014-04-25 11:28:47 +05:30
image
misc Merge "usb: misc: ks_bridge: Add polling call back" 2014-04-07 00:30:01 -07:00
mon
musb Remove GENERIC_HARDIRQ config option 2014-02-07 13:49:47 -08:00
phy USB: phy-msm-usb: Avoid race b/w sm_work and set_suspend 2014-05-01 14:32:02 +05:30
renesas_usbhs Remove GENERIC_HARDIRQ config option 2014-02-07 13:49:47 -08:00
serial Merge "Merge upstream linux-stable v3.10.28 into msm-3.10" 2014-03-26 23:36:07 -07:00
storage USB: storage: Allow UICC cards to perform house keeping operations 2014-04-23 09:15:16 +05:30
wusbcore
Kconfig usb: host: make USB_ARCH_HAS_?HCI obsolete 2014-03-04 20:35:20 -08:00
Makefile USB: ice40-hcd: Add ICE40 FPGA based SPI to Inter-Chip USB host driver 2014-03-10 11:18:35 +05:30
README
usb-common.c
usb-skeleton.c

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 ("khubd").

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.