1. 05 8月, 2005 2 次提交
  2. 30 7月, 2005 2 次提交
  3. 13 7月, 2005 5 次提交
    • D
      [PATCH] USB: fix ohci merge glitch · edfd6aee
      david-b@pacbell.net 提交于
      A patch re-organizing some parts of root hub initialization deleted the
      code initializing the bus-neutral reboot/shutdown notifier for OHCI.
      This patch just restores that deleted code.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      edfd6aee
    • D
      [PATCH] USB: ohci-omap pm updates · b404a5b0
      david-b@pacbell.net 提交于
      The recent "pm_message_t" changes removed functionality from the Linux
      PM framework.  This patch removes it from the OMAP OHCI too, removing
      the distinction between (previous) PM_SUSPEND_MEM and PM_SUSPEND_DISK
      state transitions ... now the only suspend semantics supportable are
      what was previously PM_SUSPEND_DISK (4) and is now "PMSG_SUSPEND" (3).
      
      From: Todd Poynor <tpoynor@mvista.com>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b404a5b0
    • K
      [PATCH] USB: coverity: (desc->bitmap)[] overrun fix · b2134bcd
      KAMBAROV, ZAUR 提交于
      The length of the array desc->bitmap is 3, and not 4:
      
      Definitions involved:
      
      In drivers/usb/core/hcd.h
      
      464  	#define bitmap 	DeviceRemovable
      
      In drivers/usb/host/ohci-hub.c
      
      395  		struct usb_hub_descriptor	*desc
      
      In drivers/usb/core/hub.h
      
      130  	struct usb_hub_descriptor {
      131  		__u8  bDescLength;
      132  		__u8  bDescriptorType;
      133  		__u8  bNbrPorts;
      134  		__u16 wHubCharacteristics;
      135  		__u8  bPwrOn2PwrGood;
      136  		__u8  bHubContrCurrent;
      137  		    	/* add 1 bit for hub status change; round to bytes */
      138  		__u8  DeviceRemovable[(USB_MAXCHILDREN + 1 + 7) / 8];
      139  		__u8  PortPwrCtrlMask[(USB_MAXCHILDREN + 1 + 7) / 8];
      140  	} __attribute__ ((packed));
      
      In include/linux/usb.h
      
      306  	#define USB_MAXCHILDREN		(16)
      
      This defect was found automatically by Coverity Prevent, a static analysis
      tool.
      
      (akpm: this code should be shot.  Field `bitmap' doesn't exist in struct
      usb_hub_descriptor.  And this .c file is #included in
      drivers/usb/host/ohci-hcd.c, and someone somewhere #defines `bitmap' to
      `DeviceRemovable'.
      
      >From a maintainability POV it would be better to memset the whole array
      beforehand - I changed the patch to do that)
      Signed-off-by: NZaur Kambarov <zkambarov@coverity.com>
      Cc: <linux-usb-devel@lists.sourceforge.net?
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b2134bcd
    • O
      [PATCH] USB: Fix kmalloc's flags type in USB · 5db539e4
      Olav Kongas 提交于
      Greg,
      
      This patch fixes the kmalloc() flags argument type in USB
      subsystem; hopefully all of its occurences. The patch was
      made against patch-2.6.12-git2 from Jun 20.
      
      Cleanup of flags for kmalloc() in USB subsystem.
      Signed-off-by: NOlav Kongas <ok@artecdesign.ee>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5db539e4
    • O
      [PATCH] USB: isp116x-hcd cleanup · 17f8bb73
      Olav Kongas 提交于
      Sorry that it took so long. Here comes a cleanup patch that
      addresses the remarks by Alexey Dobriyan about
      gregkh-usb-usb-isp116x-hcd-add.patch EXCEPT the remark about
      the typecasting of mem_flags argument for kcalloc; this will
      be addressed in a later patch.
      
      OlavCleanup of isp116x-hcd.
      
      Signed off by: Olav Kongas <ok@artecdesign.ee>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      17f8bb73
  4. 08 7月, 2005 2 次提交
  5. 28 6月, 2005 19 次提交
  6. 21 6月, 2005 1 次提交
  7. 13 6月, 2005 1 次提交
  8. 01 6月, 2005 2 次提交
    • D
      [PATCH] USB: add sl811_cs support · c6de2b64
      David Brownell 提交于
      This adds support for a CF-card USB Host adapter, the Ratoc REX-CFU1U, by
      wrapping a PCMCIA driver around the existing "sl811-hcd" platform driver.
      
      This CF card is especially useful for PDAs, which currently tend to have
      no other solution for USB host capability.
      
      From: Botond Botyanszki <boti@rocketmail.com>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c6de2b64
    • D
      [PATCH] USB: sl811-hcd fixes · 1e9a47b6
      David Brownell 提交于
      Various fixes to the sl811-hcd driver:
      
        * Fix small glitches that crept in during recent evolution of usbcore's hcd
          glue layer, coupling endpoint state records to usbcore and active urbs.
          (As noted by folk whose boards weren't stuck on 2.6.9 kernels...)
      
        * Cope with various system-specific issues:
            - Some configurations (e.g. a CF-card uses this chip) have iospace
              addresses for the two registers, rather than memory mapped ones.
            - Some configurations do interesting things with IRQs; maybe the
              line is shared, or it doesn't support level triggering.
            - Not all boards can drive the chip reset line in software.
      
        * Address a potential race during unlinking.
      
        * Tweak probe/remove section info to handle the case where this segment
          of a platform bus is hotpluggable (e.g. CF card).  (The basic problem
          is that CONFIG_HOTPLUG is global, which is wrong since not all busses
          can hotplug even on hotplug-friendly systems...)  Also export the
          driver, so that the CF driver can depend on it.
      
      Also removed some annoying end-of-line whitespace.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1e9a47b6
  9. 17 5月, 2005 1 次提交
  10. 04 5月, 2005 2 次提交
    • S
      [PATCH] USB: Spelling fixes for drivers/usb. · 093cf723
      Steven Cole 提交于
      Here are some spelling corrections for drivers/usb.
      
      cancelation -> cancellation
      succesful -> successful
      cancelation -> cancellation
      decriptor -> descriptor
      Initalize -> Initialize
      wierd -> weird
      Protocoll -> Protocol
      occured -> occurred
      successfull -> successful
      Procesing -> Processing
      devide -> divide
      Isochronuous -> Isochronous
      noticable -> noticeable
      Basicly -> Basically
      transfering -> transferring
      intialize -> initialize
      Incomming -> Incoming
      additionnal -> additional
      asume -> assume
      Unfortunatly -> Unfortunately
      retreive -> retrieve
      tranceiver -> transceiver
      Compatiblity -> Compatibility
      Incorprated -> Incorporated
      existance -> existence
      Ununsual -> Unusual
      Signed-off-by: NSteven Cole <elenstev@mesatop.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      093cf723
    • D
      [PATCH] USB: ehci power fixes · 56c1e26d
      David Brownell 提交于
      Miscellaneous updates for EHCI.
      
       - Mostly updates the power switching on EHCI controllers.  One routine
         centralizes the "power on/off all ports" logic, and the capability to
         do that is reported more correctly.
      
       - Courtesy Colin Leroy, a patch to always power up ports after resumes
         which didn't keep a USB device suspended.  The reset-everything logic
         powers down those ports (on some hardware) so something needs to turn
         them back on.
      
       - Minor tweaks/bugfixes for the debug port support.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      56c1e26d
  11. 19 4月, 2005 3 次提交