1. 29 10月, 2005 4 次提交
    • A
      [PATCH] usbcore: Use kzalloc instead of kmalloc/memset · 0a1ef3b5
      Alan Stern 提交于
      This patch (as590) fixes up all the remaining places where usbcore can
      use kzalloc rather than kmalloc/memset.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0a1ef3b5
    • A
      [PATCH] usbcore: endpoint attributes track altsetting changes · 0e6c8e8d
      Alan Stern 提交于
      This patch (as588) fixes the way endpoint attribute files are registered
      and unregistered.  Now they will correctly track along with altsetting
      changes.  This fixes bugzilla entry #5467.
      
      In a separate but related change, when a usb_reset_configuration call
      fails, the device state is not changed to USB_STATE_ADDRESS.  In the
      first place, failure means that we don't know what the state is, not
      that we know the device is unconfigured.  In the second place, doing
      this can potentially lead to a memory leak, since usbcore might not
      realize there still is a current configuration that needs to be
      destroyed.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0e6c8e8d
    • A
      [PATCH] USB: usb_bulk_message() handles interrupts endpoints · d09d36a9
      Alan Stern 提交于
      Because there is no bulk_interrupt_message() routine and no
      USBDEVFS_INTERRUPT ioctl, people have been forced to abuse the
      usb_bulk_message() routine and USBDEVFS_BULK by using them for interrupt
      transfers as well as bulk transfers.
      
      This patch (as567) formalizes this practice and adds code to
      usb_bulk_message() for detecting when the target is really an interrupt
      endpoint.  If it is, the routine submits an interrupt URB (using the
      default interval) instead of a bulk URB.  In theory this should help HCDs
      that don't like it when people try to mix transfer types, queuing both
      periodic and non-periodic types for the same endpoint.
      
      Not fully tested -- I don't have any programs that use USBDEVFS_BULK for
      interrupt transfers -- but it compiles okay and normal bulk messages work
      as well as before.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
       drivers/usb/core/message.c |   24 ++++++++++++++++++++----
       1 file changed, 20 insertions(+), 4 deletions(-)
      d09d36a9
    • D
      [PATCH] usb_interface power state · db690874
      David Brownell 提交于
      This updates the handling of power state for USB interfaces.
      
        - Formalizes an existing invariant:  interface "power state" is a boolean:
          ON when I/O is allowed, and FREEZE otherwise.  It does so by defining
          some inlined helpers, then using them.
      
        - Adds a useful invariant:  the only interfaces marked active are those
          bound to non-suspended drivers.  Later patches build on this invariant.
      
        - Simplifies the interface driver API (and removes some error paths) by
          removing the requirement that they record power state changes during
          suspend and resume callbacks.  Now usbcore does that.
      
      A few drivers were simplified to address that last change.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
       drivers/usb/core/hub.c       |   33 +++++++++------------
       drivers/usb/core/message.c   |    1
       drivers/usb/core/usb.c       |   65 +++++++++++++++++++++++++++++++++----------
       drivers/usb/core/usb.h       |   18 +++++++++++
       drivers/usb/input/hid-core.c |    2 -
       drivers/usb/misc/usbtest.c   |   10 ------
       drivers/usb/net/pegasus.c    |    2 -
       drivers/usb/net/usbnet.c     |    2 -
       8 files changed, 85 insertions(+), 48 deletions(-)
      db690874
  2. 28 10月, 2005 1 次提交
  3. 22 9月, 2005 1 次提交
  4. 09 9月, 2005 2 次提交
    • D
      [PATCH] USB: remove annoying message · 8f34c288
      david-b@pacbell.net 提交于
      Avoid an annoying message that can appear if devices are disconnected
      in the middle of a USB scatterlist operation.
      
      Message noted in http://bugzilla.kernel.org/show_bug.cgi?id=4373
      (but the real issue there seems to be a SCSI level hang).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8f34c288
    • A
      [PATCH] USB: URB_ASYNC_UNLINK flag removed from the kernel · b375a049
      Alan Stern 提交于
      29 July 2005, Cambridge, MA:
      
      This afternoon Alan Stern submitted a patch to remove the URB_ASYNC_UNLINK
      flag from the Linux kernel.  Mr. Stern explained, "This flag is a relic
      from an earlier, less-well-designed system.  For over a year it hasn't
      been used for anything other than printing warning messages."
      
      An anonymous spokesman for the Linux kernel development community
      commented, "This is exactly the sort of thing we see happening all the
      time.  As the kernel evolves, support for old techniques and old code can
      be jettisoned and replaced by newer, better approaches.  Proprietary
      operating systems do not have the freedom or flexibility to change so
      quickly."
      
      Mr. Stern, a staff member at Harvard University's Rowland Institute who
      works on Linux only as a hobby, noted that the patch (labelled as548) did
      not update two files, keyspan.c and option.c, in the USB drivers' "serial"
      subdirectory.  "Those files need more extensive changes," he remarked.
      "They examine the status field of several URBs at times when they're not
      supposed to.  That will need to be fixed before the URB_ASYNC_UNLINK flag
      is removed."
      
      Greg Kroah-Hartman, the kernel maintainer responsible for overseeing all
      of Linux's USB drivers, did not respond to our inquiries or return our
      calls.  His only comment was "Applied, thanks."
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b375a049
  5. 30 7月, 2005 1 次提交
  6. 13 7月, 2005 1 次提交
  7. 04 5月, 2005 1 次提交
    • 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
  8. 19 4月, 2005 1 次提交
    • D
      [PATCH] USB: revert "fix" to usb_set_interface() · a81e7ecc
      David Brownell 提交于
      This reverts a recent change to usb_set_interface().  The change worked
      around a quirk in certain devices, but doing this in usbcore creates
      needless regressions for other devices.  More appropriate fixes won't
      put such handling in usbcore.
      
      Basically it's tricky to do a full software reset of USB device state, since
      the devices don't all act the same.  This adds a note to the kerneldoc for
      the usb_reset_configuration() call to highlight the quirk this was working
      around:  endpoint data toggles not being reset.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a81e7ecc
  9. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4