Skip to content
Snippets Groups Projects
  1. Sep 27, 2006
  2. Jun 30, 2006
  3. Nov 17, 2005
  4. Oct 28, 2005
    • David Brownell's avatar
      [PATCH] usb_interface power state · db690874
      David Brownell authored
      
      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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg 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
    • Al Viro's avatar
      [PATCH] gfp_t: drivers/usb · 55016f10
      Al Viro authored
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      55016f10
  5. Sep 08, 2005
    • David Brownell's avatar
      [PATCH] USB: usbnet (9/9) module for pl2301/2302 cables · 090ffa9d
      David Brownell authored
      
      This wraps up the conversion of the "usbnet" driver structure, by
      moving the Prolific PL-2201/2302 minidriver to a module of its own.
      It also includes some minor cleanups to the remaining "usbnet" file,
      notably removing that long changelog at the top.
      
      Minor historical note:  Linux 2.2 first called the driver for
      this hardware "plusb".
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      090ffa9d
    • David Brownell's avatar
      [PATCH] USB: usbnet (8/9) module for RNDIS devices · 64e04910
      David Brownell authored
      
      This adds host-side RNDIS support to the "usbnet" driver, so Linux can talk
      to various devices (often based on WinCE) that otherwise only Windows could
      talk to.
      
      Tested with little-endian Linux talking to a Linux-USB Ethernet/RNDIS based
      peripheral.  This also includes updates from Eddie C. Dost <ecd@brainaid.de>
      for big-endian SPARC Linux talking to a Nokia 9500 Communicator.
      
      It's still marked as EXPERIMENTAL because this code is so young.  This
      ought to let Linux to work with various cable modems that previously
      would have been "Windows Only".
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      64e04910
    • David Brownell's avatar
      [PATCH] USB: usbnet (7/9) module for CDC Ethernet · 4324fd49
      David Brownell authored
      
      Makes the CDC Ethernet support live in a separate driver module.
      This module is a bit special since it exports utility functions
      that are reused by the the Zaurus and RNDIS drivers, but it's
      not "core" like usbnet itself.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      4324fd49
    • David Brownell's avatar
      [PATCH] USB: usbnet (6/9) module for Zaurii and compatibles · 0aa599c5
      David Brownell authored
      
      This moves usbnet support for Zaurus and compatibles into its own module.
      Other than exporting a couple of helper functions, this just involved
      shuffling some code and updating the comments.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0aa599c5
    • David Brownell's avatar
      [PATCH] USB: usbnet (5/9) module for genesys gl620a cables · 47ee3051
      David Brownell authored
      
      This moves the GeneSys GL620USB-A support into its own driver file.
      It also fixes a "return wrong skb" glitch in the rx unbatching, as
      recently reported, and adds some missing byteswaps in the special
      "genelink" headers (so it might now work on big-endian Linux).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      47ee3051
    • David Brownell's avatar
      [PATCH] USB: usbnet (4/9) module for net1080 cables · 904813cd
      David Brownell authored
      
      As with the "cdc_subset" and "asix" drivers, this just moves the net1080
      support into its one driver module.  In this case there's a small bit of
      extra cleanup involved, moving some funky framing logic into the tx_fixup()
      routine (resolving a long overdue FIXME).
      
      Minor historical note:  "usbnet" started out as "net1080", then got
      generalized to make it easier for other network drivers to reuse the
      urb queueing and fault management code here.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      904813cd
    • David Brownell's avatar
      [PATCH] USB: usbnet (3/9) module for ASIX Ethernet adapters · 2e55cc72
      David Brownell authored
      
      This patch moves the ASIX AX8817x driver into its own file, just using
      the "usbnet" infrastructure as a utility library.
      
       - As with "cdc_subset" this involved minor Kconfig/kbuild tweaks,
         moving code from one file to another, and exporting a few functions.
      
       - This includes updates from Jamie Painter to add (and use) a new hook
         to handle the different maximum transfer sizes for rx and tx sides.
      
       - Also from Jamie, some bugfixes:
          * MDIO byteorder (to address some PPC media negotiation problems);
          * Force alignment at key spots when using ax88772 framing (on some
            embedded hardware, the network stack will break otherwise);
          * Address some link reset problems.
      
      It also makes this driver use the standard (5 seconds vs half second)
      control timeouts used elsewhere in USB; and wraps a few lines before
      the 80th column (which previously needed it).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      2e55cc72
    • David Brownell's avatar
      [PATCH] USB: usbnet (2/9) module for simple network links · 38bde1d4
      David Brownell authored
      
      This patch creates the first of several separate "minidriver" modules
      for "usbnet".  This one handles only the very simplest hardware, which
      can be handled almost entirely by the "usbnet" core.
      
          - Move device-specific bits into new "cdc_subset.c" driver,
            shrinking "usbnet" by a bunch;
      
          - Export the functions needed to support this minidriver
            (with EXPORT_SYMBOL_GPL);
      
          - Update Kconfig and kbuild accordingly.
      
      This one handles about a dozen different device types, with the most
      notable ones being Gumstix and most Linux-based PDAs (except Zaurus
      running that ancient code from Sharp).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      38bde1d4
    • David Brownell's avatar
      [PATCH] USB: usbnet (1/9) clean up framing · f29fc259
      David Brownell authored
      
      This starts to prepare the core of "usbnet" to know less about various
      framing protocols that map Ethernet packets onto USB, so "minidrivers"
      can be modules that just plug into the core.
      
        - Remove some framing-specific code that cluttered the core:
      
            * net->hard_header_len records how much space to preallocate;
              now drivers that add their own framing (Net1080, GeneLink,
      	Zaurus, and RNDIS) will have smoother TX paths.  Even for
      	the drivers (Zaurus, Net1080) that need trailers.
      
            * defines new dev->hard_mtu, using this "hardware" limit to
              check changes to the link's settable "software" mtu.
      
            * now net->hard_header_len and dev->hard_mtu are set up in the
              driver bind() routines, if needed.
      
        - Transaction ID is no longer specific to the Net1080 framing;
          RNDIS needs one too.
      
        - Creates a new "usbnet.h" header with declarations that are shared
          between the core and what will be separate modules.
      
        - Plus a couple other minor tweaks, like recognizing -ESHUTDOWN
          means the keventd work should just shut itself down asap.
      
      The core code is only about 1/3 of this large file.  Splitting out the
      minidrivers into separate modules (e.g. ones for ASIX adapters,
      Zaurii and similar, CDC Ethernet, etc), in later patches, will
      improve maintainability and shrink typical runtime footprints.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      f29fc259
    • Alan Stern's avatar
      [PATCH] USB: URB_ASYNC_UNLINK flag removed from the kernel · b375a049
      Alan Stern authored
      
      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: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      b375a049
    • david-b@pacbell.net's avatar
      [PATCH] USB: usbnet and unsigned gfp_flags · 0d9899f8
      david-b@pacbell.net authored
      
      This just fixes some gfp flags warnings that joined us recently.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0d9899f8
  6. Aug 29, 2005
  7. Aug 24, 2005
  8. Jul 08, 2005
  9. Jun 27, 2005
  10. Jun 03, 2005
  11. May 17, 2005
    • David Brownell's avatar
      [PATCH] USB: usbnet driver fixes · 80615f81
      David Brownell authored
      
      Updates to the usbnet driver:
      
       - Remove a warning when built with Zaurus support but not CDC Ethernet;
         just moves an #ifdef to cover more code
      
       - Two tweaks to the pseudo-MDLM support:
          * correctly handle _either_ of the two GUIDs
          * ignore a padding bit that doesn't seem necessary
      
       - Remove ID for one Motorola phone that uses the MDLM stuff.
      
      It also updates the Kconfig helptext to make it clearer that the "Zaurus"
      configuration option supports an increasing (sigh) family of nonstandard
      peripheral protocols.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      80615f81
  12. May 04, 2005
  13. Apr 26, 2005
  14. Apr 22, 2005
  15. Apr 19, 2005
    • David Brownell's avatar
      [PATCH] USB: usbnet and zaurus zl-5600 · a2fe2012
      David Brownell authored
      
      Hmm, another case of a Zaurus ROM not telling the expected conformance lie;
      this patch handles the lies told by the SL5600.
      
      From: bender647@gmail.com
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a2fe2012
    • akpm@osdl.org's avatar
      [PATCH] USB: usbnet printk warning fix · 403a9817
      akpm@osdl.org authored
      
      On ppc64:
      
      drivers/usb/net/usbnet.c: In function `skb_return':
      drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3)
      drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3)
      
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
      diff -puN drivers/usb/net/usbnet.c~usbnet-printk-warning-fix drivers/usb/net/usbnet.c
      403a9817
    • David Brownell's avatar
      [PATCH] usb suspend updates (interface suspend) · 27d72e85
      David Brownell authored
      
      This is the first of a few installments of PM API updates to match the
      recent switch to "pm_message_t".  This installment primarily affects
      USB device drivers (for USB interfaces), and it changes the handful of
      drivers which currently implement suspend methods:
      
          - <linux/usb.h> and usbcore, signature change
      
          - Some drivers only changed the signature, net effect this just
            shuts up "sparse -Wbitwise":
      	* hid-core
      	* stir4200
      
          - Two network drivers did that, and also grew slightly more
            featureful suspend code ... they now properly shut down
            their activities.  (As should stir4200...)
      	* pegasus
      	* usbnet
      
      Note that the Wake-On-Lan (WOL) support in pegasus doesn't yet work; looks
      to me like it's missing a request to turn it on, vs just configuring it.
      The ASIX code in usbnet also has WOL hooks that are ready to use; untested.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
      Index: gregkh-2.6/drivers/net/irda/stir4200.c
      ===================================================================
      27d72e85
  16. Apr 16, 2005
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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!
      v2.6.12-rc2
      1da177e4
Loading