• Alan Stern's avatar
    [PATCH] USB: Improve UHCI root hub code: descriptor, OC bits, etc. · 1345ad81
    Alan Stern authored
    This patch is from David Brownell.
    
    UHCI root hub updates ... minor bugfixes and cleanups, improving
    conformance with the USB hub specification.
    
     - UHCI doesn't support any kind of power switching; so modify the
       hub descriptor to stop claiming it does!  Likewise fail attempts
       to disable power on any port.
    
     - Intel defined both overcurrent status overcurrent-change bits, but
       the current code only knows about one.  Modify hub descriptor to
       report per-port overcurrent protection; and use both bits.
    
     - Modify the port status set/clear macros to know about the bits
       that must always be written as zero, and the write-to-clear bits.
       Update callers which wrote "set" instead of "clear".
    
     - Rewrote code returning port status; magic numbers are gone.
    
     - Driver can't really support 8 root hub ports; don't try.
    
    Also moves the #define DEBUG earlier so that it can kick in any of
    the various debug macros ... like pr_debug() and dev_dbg().
    1345ad81
uhci-hcd.h 14.2 KB