linux/drivers/usb
Rafael J. Wysocki e83e9aef51 PM / Runtime: Rework the "runtime idle" helper routine
The "runtime idle" helper routine, rpm_idle(), currently ignores
return values from .runtime_idle() callbacks executed by it.
However, it turns out that many subsystems use
pm_generic_runtime_idle() which checks the return value of the
driver's callback and executes pm_runtime_suspend() for the device
unless that value is not 0.  If that logic is moved to rpm_idle()
instead, pm_generic_runtime_idle() can be dropped and its users
will not need any .runtime_idle() callbacks any more.

Moreover, the PCI, SCSI, and SATA subsystems' .runtime_idle()
routines, pci_pm_runtime_idle(), scsi_runtime_idle(), and
ata_port_runtime_idle(), respectively, as well as a few drivers'
ones may be simplified if rpm_idle() calls rpm_suspend() after 0 has
been returned by the .runtime_idle() callback executed by it.

To reduce overall code bloat, make the changes described above.

Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
2014-03-07 12:52:24 +08:00
..
atm USB: cxacru: potential underflow in cxacru_cm_get_array() 2013-05-20 11:35:47 -07:00
c67x00
chipidea usb: chipidea: fix id change handling 2013-06-11 16:18:05 -07:00
class usb: cdc-wdm: manage_power should always set needs_remote_wakeup 2014-01-09 12:24:20 -08:00
core PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
dwc_otg USB: support DWC_OTG Driver Version3.10 and used by default 2014-03-03 14:48:06 +08:00
dwc_otg_310 support 3188 vmac 2014-03-07 09:13:02 +08:00
dwc3 usb: dwc3: fix implementation of endpoint wedge 2013-12-20 07:45:08 -08:00
early rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
gadget USB: change FSG_BUFLEN from 16KB to 64KB in order to increase copy-speed 2014-03-06 14:06:01 +08:00
host USB: renamed ehci-rk.c -> ehci-rkhsic.c for support HSIC and EHCI 2014-03-04 15:30:07 +08:00
image USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
misc rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
mon rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
musb rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
phy Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android 2013-08-29 18:40:30 +01:00
renesas_usbhs USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
serial Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into develop-3.10 2014-02-10 16:23:36 +08:00
storage usb-storage: add quirk for mandatory READ_CAPACITY_16 2013-11-13 12:05:29 +09:00
wusbcore wusbcore: fix kernel panic when disconnecting a wireless USB->serial device 2013-08-20 08:43:05 -07:00
Kconfig USB: support DWC_OTG Driver Version3.10 and used by default 2014-03-03 14:48:06 +08:00
Makefile USB: support DWC_OTG Driver Version3.10 and used by default 2014-03-03 14:48:06 +08:00
README
usb-common.c
usb-skeleton.c USB: usb-skeleton.c: fix blocked forever in skel_read 2013-03-25 13:32:20 -07: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 ("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.