1. 29 9月, 2005 2 次提交
  2. 22 9月, 2005 1 次提交
  3. 13 9月, 2005 7 次提交
  4. 10 9月, 2005 1 次提交
  5. 09 9月, 2005 11 次提交
  6. 08 9月, 2005 1 次提交
  7. 05 9月, 2005 1 次提交
  8. 05 8月, 2005 2 次提交
  9. 30 7月, 2005 2 次提交
  10. 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
  11. 08 7月, 2005 2 次提交
  12. 28 6月, 2005 5 次提交
    • D
      [PATCH] pcmcia id_table for sl811.cs · 22f3a8f5
      David Brownell 提交于
      Catch up with some PCMCIA API changes:
      
       - Docs say that as of 2.6.11 the PCMCIA IRQInfo2 field is ignored,
         but it's not yet removed from the API; stop using it anyway.
      
       - As of 2.6.13 PCMCIA finally hotplugs and does driver binding
         without "cardmgr"; add a MODULE_DEVICE_TABLE to support this.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      22f3a8f5
    • B
      [PATCH] ppc32: Remove CONFIG_PMAC_PBOOK · 8c870933
      Benjamin Herrenschmidt 提交于
      This patch removes CONFIG_PMAC_PBOOK (PowerBook support).  This is now
      split into CONFIG_PMAC_MEDIABAY for the actual hotswap bay that some
      powerbooks have, CONFIG_PM for power management related code, and just left
      out of any CONFIG_* option for some generally useful stuff that can be used
      on non-laptops as well.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8c870933
    • D
      [PATCH] USB: ehci-hcd - fix page pointer allocation in itd_patch() · 77078570
      David Brownell 提交于
      The itd_patch() function is responsible for allocating entries in the
      buffer page pointer list of the iTD.  Particularly, a new page pointer
      is needed every time when buffer data crosses a page boundary.
      
      However, there is a bug in the allocation logic: the function does not
      allocate a new entry when the current transaction is the first
      transaction in the iTD (as indicated by first!=0).
      
      The consequence is that, when the data of the first transaction begins
      somewhere at the end of a page so that it actually does cross the page
      boundary, no new page pointer is allocated.  This means that the data
      at the end of the first transaction (beyond the page boundary) will be
      accessed by the HC using the second page pointer, which is zero.
      Furthermore, the first page pointer will be later overwritten by the
      page pointers of the other transactions, which will garble it because
      the value is or-ed into the iTD field.
      
      All this particular check (for !first) does is cause incorrect
      behaviour, so it should be entirely removed (and with it the variable
      first that is not used for anything else).
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      77078570
    • A
      [PATCH] USB UHCI: Detect invalid ports · e07fefa6
      Alan Stern 提交于
      This patch changes the way uhci-hcd detects valid ports.  The
      specification doesn't mention any way to find out how many ports a
      controller has, so the driver has to use some heuristics, reading the port
      status and control register and deciding whether the value makes sense.
      With this patch the driver will recognize a typical failure mode (all bits
      set to one) for nonexistent ports and won't assume there are always at
      least 2 ports -- such an assumption seems silly if the heuristics have
      already shown that the ports don't exist.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e07fefa6
    • D
      [PATCH] USB: misc ehci updates · d49d4317
      David Brownell 提交于
      Various minor EHCI updates
      
         * Dump some more info in the debug dumps, notably the product
           description (e.g. chip vendor), BIOS handhake flags, and
           debug port status (when it's not managed by the HCD).
      
         * Minor updates to the BIOS handoff code:  always flag the HCD
           as owned by Linux (in case BIOS doesn't grab it "early"),
           and on the buggy-BIOS path always match the "early handoff"
           code and forcibly disable SMI IRQs.
      
         * For the disabled 64bit DMA support, there's now a constant
           to use for the mask; use it.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d49d4317