1. 31 Mar, 2004 7 commits
    • Greg Kroah-Hartman's avatar
    • David Brownell's avatar
      [PATCH] USB: remove usb_interface.driver field · e0d47b75
      David Brownell authored
      Remove usb_interface.driver, and along with it the "half bound" state
      previously associated with drivers binding with claim() instead of probe().
      This changes usb_driver_claim_interface() semantics slightly: drivers must
      now be prepared to accept disconnect() callbacks.
      
      Fixes more locking bugs, and a claim() oops that snuck in with a
      recent patch.
      e0d47b75
    • David Brownell's avatar
      33c65459
    • Alan Stern's avatar
      [PATCH] USB Gadget: Rename the dummy_hcd's gadget · 1114cf18
      Alan Stern authored
      When David added an entry to the gadget_chips.h file for the dummy_hcd
      driver, he mistakenly used the name "dummy_udc" rather than "dummy_hcd".
      The mistake is understandable, since other controllers use "_udc" in their
      names and it is illogical to put "_hcd" in a _device_ controller's name.
      
      This patch updates the dummy_hcd driver and changes the gadget name to
      agree with the gadget_chips.h entry.
      1114cf18
    • Alan Stern's avatar
      [PATCH] USB: Complete all URBs in UHCI when releasing the bus · 915801c3
      Alan Stern authored
      This patch changes the UHCI driver's bus-release routine; now it will
      correctly finish all pending but not-yet-completed URBs.  This fixes a
      reported bug, when trying to rmmod uhci-hcd while using a USB mouse under
      X.  Also, the patch changes a variable name from ...hs... to ...fs...
      ("high speed" -> "full speed") -- something I accidentally omitted in an
      earlier patch.
      915801c3
    • Alan Stern's avatar
      [PATCH] USB Gadget: Use automatic endpoint selection in file-storage · a5bbb7ea
      Alan Stern authored
      This patch imports the endpoint auto-config library into the file-storage
      gadget, simplifying the code needed for endpoint selection and removing
      almost all dependencies on the controller type from the driver.  It also
      changes some log messages for reporting fatal problems from INFO to ERROR.
      a5bbb7ea
    • Alan Stern's avatar
      [PATCH] USB Gadget: Use configuration-buffer library in file-storage · 354e8872
      Alan Stern authored
      This patch imports the config-buffer library into the file-storage gadget,
      simplifying and decreasing the amount of code needed for assembling
      configuration descriptors.  It also changes the driver to remove any
      pretense at bus-powered operation and to use the new DUALSPEED
      configuration option.  This is in line with recent changes made to other
      gadget drivers.
      354e8872
  2. 30 Mar, 2004 15 commits
    • David Brownell's avatar
      [PATCH] USB: fix dvb-ttusb-budget driver due to set_configuration locking cleanups · 6334e786
      David Brownell authored
      > Oops, you forgot to grep:
      >
      > CC [M]  drivers/media/dvb/ttusb-dec/ttusb_dec.o
      > drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c: In function `ttusb_setup_interfaces':
      > drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:1011: warning: implicit declaration of function `usb_set_configuration'
      
      Well, when I did the grep that bug wasn't there; it
      was just integrated on Feb 26!
      
      
      > Care to send a patch to fix it up before Andrew gets grumpy with me for
      > breaking his build?  :)
      
      The first part makes it use usb_reset_configuration() like
      it did before ... I'm surprised this driver hasn't been
      generating "it deadlocks during probe" reports.
      
      The second part prints a diagnostic if the configuration
      wasn't set right; the fix would use hotplug and sysfs.
      6334e786
    • Dave Jones's avatar
      [PATCH] USB: w9968cf driver misplaced ; · d4f1dca6
      Dave Jones authored
      d4f1dca6
    • Alessandro Zummo's avatar
      [PATCH] USB: omninet patch · 1510776b
      Alessandro Zummo authored
        here's a small patch for omninet.c .
      1510776b
    • Marcel Holtmann's avatar
      [PATCH] USB: Rename the USB HID driver · ff533b76
      Marcel Holtmann authored
      > > I like to see this rename as soon as possible. So if nobody minds I send
      > > a patch to LKML and ask Linus for inclusion.
      >
      > Go ahead, but also please patch all relevant documentation in the
      > kernel.
      
      the attached patch should do the renaming everywhere hid or hid.o was
      mentioned. It also removes all references to *.o module names.
      ff533b76
    • David Brownell's avatar
      [PATCH] USB: RNDIS/Ethernet Gadget Driver comment changes · fea7770c
      David Brownell authored
      Whoops, I missed something.  You should apply this patch too.
      
      The RNDIS spec license agreement does NOT require tacking any
      GPL-incompatible restrictions on the results of _using_ the
      spec:
      
         "... may be used solely for the purpose of implementing
          the RNDIS protocol message set to interface with ..."
         (the two cases identified in the text)
      
      And that's all the implementation does -- end of story.
      fea7770c
    • Dave Jones's avatar
      [PATCH] USB: kill off CONFIG_USB_BRLVGER detritus. · 38c2c0e8
      Dave Jones authored
      This died a while ago, but lingers on in defconfigs.
      38c2c0e8
    • Andries E. Brouwer's avatar
      [PATCH] USB Storage: datafab fix and unusual devices · 45fbc50e
      Andries E. Brouwer authored
      datafab.c has an often-seen bug: the SCSI READ_CAPACITY command
      does not need the number of sectors but the last sector.
      
      I just tried the CF and SM parts of a 5-in-1 card reader.
      The CF part works with US_PR_DATAFAB when the bug mentioned is fixed.
      The SM part works with US_PR_SDDR55.
      (Revision Number is 17.08 - that in case the 0000-ffff
      should prove to be too optimistic.)
      
      We still must discuss what setup to use for readers like this -
      I have several of them - that require different drivers for
      different LUNs. As it is now one has to compile usb-storage
      twice, once with CONFIG_USB_STORAGE_DATAFAB defined and once
      without, and remove one usb-storage.ko and insert the other
      to go from CF to SM. (And that hangs with 2.6.4 so a reboot
      is required..)
      45fbc50e
    • Paulo Marques's avatar
      [PATCH] USB: ftdi_sio.c: not unlinking urb on ftdi_close · c3e08bc4
      Paulo Marques authored
      This patch fixes a bug in ftdi_sio.c where the driver wouldn't unlink the
      read urb if the user application cleared the HUPCL flag on termios->c_cflag.
      c3e08bc4
    • Andrew Morton's avatar
      [PATCH] USB: drivers/usb/gadget/epautoconf.c gcc-3.5 build fix · cf2bbebe
      Andrew Morton authored
      drivers/usb/gadget/epautoconf.c: In function `ep_matches':
      drivers/usb/gadget/epautoconf.c:175: error: `typeof' applied to a bit-field
      cf2bbebe
    • David Brownell's avatar
      [PATCH] USB: set_configuration locking cleanups · 10766dde
      David Brownell authored
      I've posted all these before, the only notable change is
      treating that one gphoto2 case as warn-and-continue rather
      than return-with-failure.
      
      
      usb_set_configuration() cleanup
      
       * Remove it from the USB kernel driver API.  No drivers need it now,
         and the sysadmin can change bConfigurationValue using sysfs (say,
         when hotplugging an otherwise problematic device).
      
       * Simpler/cleaner locking:  caller must own dev->serialize.
      
       * Access from usbfs now uses usb_reset_configuration() sometimes,
         preventing sysfs thrash, and warns about some dangerous usage
         (which gphoto2 and other programs may be relying on).  (This is
         from Alan Stern, but I morphed an error return into a warning.)
      
       * Prevent a couple potential "no configuration" oopses. (Alan's?)
      
       * Remove one broken call from usbcore,  in the "device morphed" path
         of usb_reset_device().  This should be more polite now, hanging
         that one device rather than khubd.
      10766dde
    • David Brownell's avatar
      [PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (2/2) · 394d7256
      David Brownell authored
      This updates the existing Ethernet gadget driver to
      support an additional RNDIS configuration on all
      current USB controllers that can support one.
      
      It also includes a bit more work to address the complex
      autoconfiguration of this driver.  Needs testing on PXA.
      
      Patch (mostly) contributed by Robert Schwebel, and developed
      with support from Auerswald GmbH.
      394d7256
    • David Brownell's avatar
      [PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (1/2) · 166685d0
      David Brownell authored
      This patch adds the RNDIS message engine and kbuild/kconfig
      support for it.  This is currently labeled EXPERIMENTAL.
      
      Patch contributed by Robert Schwebel, and developed with
      support from Auerswald GmbH.
      166685d0
    • David Brownell's avatar
      [PATCH] USB: ohci unlink tweaks · 21d554cc
      David Brownell authored
      Minor unlink tweaks, including a case where SMP could oops
      if it were abused, as if from 'usbtest' or 'stir4200'.
      21d554cc
    • David Brownell's avatar
      [PATCH] USB: usb/core/config.c null pointers after kfree · 976942da
      David Brownell authored
      Prevents an oops with some other patchsets.
      
      
      Clear some pointers after the memory is kfreed, to avoid
      making some other patch combinations oops.
      976942da
    • David Brownell's avatar
      [PATCH] USB; minor usbfs locking updates · eea93a30
      David Brownell authored
      These are "obvious" locking fixes:  using the right lock
      to protect interface claim/release (should be the driver
      model bus lock, not BKL).
      eea93a30
  3. 26 Mar, 2004 18 commits
    • Alan Stern's avatar
      [PATCH] USB: Altsetting update for USB input drivers · 6f58f120
      Alan Stern authored
      This patch continues the update process for the cur_altsetting change.
      The drivers in usb/input were all in good shape and needed only minimal
      changes.
      6f58f120
    • David Brownell's avatar
      [PATCH] USB: ohci misc updates · 18a860b2
      David Brownell authored
      Mostly from Benjamin Herrenschmidt:
      
        - prevent usbcore from asking the HCD root hub code
          to read registers on one more suspend path (some
          hardware gets upset in those cases);
      
        - try handling a "device died" cleanup case better
      
        - add some wmb() calls in spots that could matter
          on some hardware
      18a860b2
    • Deepak Saxena's avatar
      [PATCH] IXP425 -> IXP4XX conversion for USB-gadget · dc6b9d7f
      Deepak Saxena authored
      The 2.6 code for Intel's IXP4xx NPU line has been updated to
      remove all references to IXP42x or IXP425 and replace it
      with IXP4XX, including config options and file names. This
      patch updates the USB-gadget pxa-udc driver with these changes.
      dc6b9d7f
    • Greg Kroah-Hartman's avatar
      2e3ed9ac
    • Corey Edwards's avatar
      [PATCH] USB: add ftdi_sio product ids · c19158f4
      Corey Edwards authored
      c19158f4
    • Greg Kroah-Hartman's avatar
      USB: ftdi_sio merge fixups. · f5879964
      Greg Kroah-Hartman authored
      f5879964
    • Gude Analog- und Digitalsysteme GmbH's avatar
      71a8bfa2
    • Alan Stern's avatar
      [PATCH] USB: Add dummy_hcd to the main kernel · 0c7989b9
      Alan Stern authored
      This is a resubmission of as225, together with appropriate changes for the
      g_serial driver.  David Brownell's latest g_ether update makes it
      unnecessary to change that file or gadget_chips.h.
      
      
      
      dummy_hcd is simultaneously a host controller driver and a device
      controller driver.  It creates a simulated HC together with a simulated
      UDC plugged into it.  Gadget drivers can run under the simulated UDC and
      will appear as regular USB devices on the simulated HC.  The simulation is
      reasonably (although not totally) realistic.
      
      It's a wonderful tool for testing and developing gadget drivers without
      the need for lots of additional hardware: Both the host driver and the
      gadget driver can run on the same computer.  It's been available for quite
      some time in David's gadget-2.6 tree and it works well.  I couldn't have
      gotten the file-storage gadget running in any reasonable length of time
      without it.
      0c7989b9
    • Greg Kroah-Hartman's avatar
      USB: mark pwc driver as broken, as it is. · d0d4457b
      Greg Kroah-Hartman authored
      And the maintainer doesn't seem to want to fix it :(
      d0d4457b
    • Meelis Roos's avatar
      [PATCH] USB: fix whiteheat USB serial compile failure on PPC · 05b905b3
      Meelis Roos authored
      > Bah, looks like PPC doesn't ever define CMSPAR :(
      >
      > How about adding something like:
      > 	#ifndef CMSPAR
      > 	#define CMSPAR 0
      > 	#endif
      > To the beginning of the driver like the cdc-acm.c driver does?  If that
      > works, care to send me a patch?
      
      Yes, it compiles.
      05b905b3
    • David Brownell's avatar
      [PATCH] USB: g_ether does endpoint autoconfig too · 7ab4b6bc
      David Brownell authored
      Here's an update for the Ethernet gadget that corresponds
      to the earlier one for Gadget Zero ... it gets rid of almost
      all the remaining controller-specific #ifdefs in this driver.
      (And also lets the driver initialize using "dummy_hcd".)
      
      This is a significant step towards doing hardware-specific
      configuration at run time (or at least init-time) rather
      than compile time, but other patches will be needed to take
      it the rest of the way there.   (Especially considering the
      RNDIS support...)  The runtime footprint of the driver shrank
      a bit, mostly because things moved into the init section.
      7ab4b6bc
    • David Brownell's avatar
      [PATCH] USB: usbnet, minor probe() fault fix · 1a8ebef0
      David Brownell authored
      Some hardware had the poor taste to misbehave during probe(),
      which turned up a minor bug.  This fixes it:  don't try to
      free a network device that hasn't been registerd.
      1a8ebef0
    • David Brownell's avatar
      [PATCH] USB: define USB feature bit indices · 69dc1c65
      David Brownell authored
      This patch provides standard symbols for the various USB
      device and endpoint feature bits, so that drivers can
      use symbolic names for them.  It also changes the code
      relating to endpoint halts so it uses those symbols.
      69dc1c65
    • Arjan van de Ven's avatar
      [PATCH] USB: fix race in whiteheat serial driver · 0c2b45d0
      Arjan van de Ven authored
      Patch below fixes an obvious race in the whiteheat usb serial driver...
      0c2b45d0
    • Patrick Mochel's avatar
      [PATCH] USB: Fix drivers/usb/net/Kconfig · 8f8d19fc
      Patrick Mochel authored
      This allows the pegasus driver to actually be seen as a config option.
      Apparently it's not that popular, though I have confirmed that it still
      works on at least the netgear fv101.
      8f8d19fc
    • Oliver Neukum's avatar
      [PATCH] USB: fix hfc_usb sleeping in irq · d63ee150
      Oliver Neukum authored
      you are using GFP_KERNEL in irq and __devinit with hotpluggable code.
      
            - use proper GFP flags
            - kill __devinit
      d63ee150
    • Oliver Neukum's avatar
      [PATCH] USB: fix typo in previous patch · c9c6bf07
      Oliver Neukum authored
      I screwed up. This corrects it.
      c9c6bf07
    • Oliver Neukum's avatar
      [PATCH] USB: cleanup of st5481 · 2d3dd618
      Oliver Neukum authored
      you are using __devinit which must not be used with USB drivers,
      in addition you are using some false GFP values and fail to check
      some error codes.
      
        - check for unlink due to removal of controller
        - correct GFP values
        - no __devinit in USB
      2d3dd618