1. 09 9月, 2005 9 次提交
  2. 08 9月, 2005 1 次提交
  3. 05 9月, 2005 1 次提交
  4. 05 8月, 2005 2 次提交
  5. 30 7月, 2005 2 次提交
  6. 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
  7. 08 7月, 2005 2 次提交
  8. 28 6月, 2005 18 次提交