alistair23-linux/drivers/usb
Alan Stern 5c12e7856d USB: UHCI: improve comments and logic for root-hub suspend
This patch (as1488) improves the comments and logic in uhci-hcd's
suspend routine.  The existing comments are hard to understand and
don't give a good idea of what's really going on.

The question of whether EGSM (Enter Global Suspend Mode) and RD
(enable Resume Detect interrupts) can be useful when they're not both
set is difficult.  The spec doesn't give any details on how they
interact with system wakeup, although clearly they are meant to be
used together.  To be safe, the patch changes the subroutine so that
neither bit gets set unless they both do.  There shouldn't be any
functional changes from this; only systems that are designed badly or
broken in some way need to avoid using those bits.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-09-26 15:58:18 -07:00
..
atm
c67x00
class usb: cdc-acm: Owen SI-30 support 2011-09-18 01:33:07 -07:00
core USB: Update USB default wakeup settings 2011-09-26 15:54:11 -07:00
dwc3 usb: dwc3: gadget: improve debug on link state change 2011-09-09 13:05:31 +03:00
early
gadget USB: gadget: u_serial.c: fixed a brace coding style issue 2011-09-26 15:49:42 -07:00
host USB: UHCI: improve comments and logic for root-hub suspend 2011-09-26 15:58:18 -07:00
image atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
misc usb: Provide usb_speed_string() function 2011-09-18 01:29:04 -07:00
mon usbmon vs. tcpdump: fix dropped packet count 2011-09-26 15:36:07 -07:00
musb Merge branch 'for-next' of git://gitorious.org/usb/usb into usb-next 2011-09-18 01:45:29 -07:00
otg USB: irq: Remove IRQF_DISABLED 2011-09-18 01:39:36 -07:00
renesas_usbhs USB: irq: Remove IRQF_DISABLED 2011-09-18 01:39:36 -07:00
serial USB: pl2303: add id for SMART device 2011-09-26 15:34:50 -07:00
storage USB: Realtek cr: Fix driver freeze issue 2011-09-18 01:51:34 -07:00
wusbcore USB: use usb_endpoint_maxp() instead of le16_to_cpu() 2011-08-23 09:47:40 -07:00
Kconfig usb/host: introduce USB_ARCH_HAS_XHCI 2011-09-26 15:51:11 -07:00
Makefile usb: Provide usb_speed_string() function 2011-09-18 01:29:04 -07:00
README
usb-common.c usb: Provide usb_speed_string() function 2011-09-18 01:29:04 -07:00
usb-skeleton.c USB: use usb_endpoint_maxp() instead of le16_to_cpu() 2011-08-23 09:47:40 -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.