1. 10 9月, 2012 10 次提交
  2. 09 2月, 2012 1 次提交
  3. 13 1月, 2012 1 次提交
  4. 02 7月, 2011 1 次提交
  5. 23 10月, 2010 3 次提交
  6. 11 8月, 2010 1 次提交
  7. 25 3月, 2009 1 次提交
  8. 18 10月, 2008 2 次提交
  9. 17 10月, 2008 1 次提交
  10. 22 7月, 2008 2 次提交
    • D
      usb gadget serial: use composite gadget framework · 7bb5ea54
      David Brownell 提交于
      This switches the serial gadget over to using the new "function"
      versions of the serial port interfacing code.  The remaining code
      in the main source file is quite small...
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7bb5ea54
    • D
      usb gadget: use new serial core · a7707adf
      David Brownell 提交于
      Teach "gadget serial" to use the new abstracted (and bugfixed) TTY glue,
      and remove all the orignal tangled-up code.  Update the documentation
      accordingly.  This is a net object code shrink and cleanup; it should
      make it a lot easier to see how the TTY glue should accomodate updates
      to the TTY layer, be bugfixed, etc.
      
      Notable behavior changes include:  it can now support getty even when
      there's no USB connection; it fits properly into the mdev/udev world;
      and RX handling is better (throttling works, and low latency).
      
      Configurations with scripts setting up the /dev/ttygserial device node
      (with "experimental" major number) may want to change that to be a
      symlink pointing to the /dev/ttyGS0 file, as a migration aid; else,
      just switch entirely over to mdev/udev.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a7707adf
  11. 15 5月, 2008 4 次提交
    • D
      USB: serial gadget: descriptor cleanup · b9370332
      David Brownell 提交于
      Bugfix some serial gadget descriptors:
      
       - Stop mangling the low bits (controller type ID) of bcdDevice;
         just use the high bits for a driver revision code.
      
       - Serial numbers that aren't specific to individual devices
         are useless; stop reporting "0" for this.
      
       - Since it's not part of a CDC-conformant function, the "bulk only"
         configuration shouldn't be using "CDC Data" as its interface class.
         Switch over to using CLASS_VENDOR_SPEC (different value, 0xff).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Al Borchers <alborchers@steinerpoint.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b9370332
    • D
      USB: serial gadget: simplify endpoint handling · 734d37c6
      David Brownell 提交于
      Switch serial gadget away from a *very* old idiom:  just remember
      the endpoints we'll be using, instead of looking them up by name
      each time.  This is a net code and data (globals) shrink.
      
      Also fix a small memory leak in the rmmod path, by working the
      same as the disconnect code.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Al Borchers <alborchers@steinerpoint.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      734d37c6
    • D
      USB: serial gadget: remove needless data structure · 2c2d28a0
      David Brownell 提交于
      This removes a needless data structure from the serial gadget code;
      it's a small code shrink, and a larger data shrink.
      
      Since "struct usb_request" already has a "struct list_head" reserved
      for use by gadget drivers, the serial gadget code doesn't need to
      allocate wrapper structs to hold that list ... it can (and should!)
      just use the list_head provided for that exact use.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Al Borchers <alborchers@steinerpoint.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2c2d28a0
    • D
      USB: serial gadget: cleanup/reorg · 9079e91b
      David Brownell 提交于
      Some cleanup/reorg of g_serial ... simplifying it, and disentangling
      its structure so morphing it into a "function" driver (combinable with
      other interfaces) should be less painful.
      
       - Remove most forward declarations
           * put tty and gadget driver structs after their contents
           * snug module init/exit decls next to their functions
           * reordered some functions
      
       - Other cleanup:
           * convert a funky macro to an inline function
           * snug up module params next to their declarations
           * add missing driver.owner
           * add separator lines between major driver sections
      
       - Add comments re potential parameter/#define changes:
           * only supports one port (shrank GS_NUM_PORTS)
           * changing from 9600-8-N-1 affects multiple sites
      
       - Remove net2280-specific optimization ... it was being done
         way too late, can be done by net2280 module options, and in
         any case doesn't matter at any sane serial data rates.
      
      There are no behavioral changes, but the macro thing saves I-space.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Al Borchers <alborchers@steinerpoint.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      9079e91b
  12. 03 5月, 2008 1 次提交
    • D
      usb serial gadget: CDC ACM fixes · f371e750
      David Brownell 提交于
      Based on a patch from <Aurel.Thomi@ruag.com>, this makes the
      CDC-ACM support in the serial gadget handle the SET_LINE_CODING
      and SET_CONTROL_LINE_STATE requests ... which should improve
      interop with at least MS-Windows "usbser.sys" if not some other
      ACM host drivers.
      
      It also adds a few REVISIT comments where this code plays a bit
      loose with the CDC ACM spec.  If this were used to hook up to a
      real RS232 or modem link, those places would need a bit of work.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f371e750
  13. 30 4月, 2008 1 次提交
  14. 25 4月, 2008 1 次提交
  15. 02 2月, 2008 1 次提交
  16. 13 10月, 2007 3 次提交
  17. 11 9月, 2007 1 次提交
  18. 20 7月, 2007 2 次提交
  19. 13 7月, 2007 1 次提交
  20. 09 5月, 2007 1 次提交
  21. 17 2月, 2007 1 次提交
    • B
      USB: fix g_serial small error · 8356f311
      Bryan O'Donoghue 提交于
      A SET_LINE_CODING control request should return a zero length packet
      as an ACK to the host, during the status phase of a USB transaction.
      
      The return value of gs_setup_class() is treated as the number of
      bytes to write in the status phase of the control request, by
      gs_setup(). For this case, the value returned by gs_setup_class should
      be zero for SET_LINE_CODING but, right now, appears to be
      sizeof(struct usb_cdc_line_coding).
      
      However, if after doing the memcpy of the line coding descriptor we
      set the variable "ret" to be zero, we should return the appropiate ZLP
      to the host as an ACK in the status phase of the control request.
      I've tested this out using Linux as both host and slave and confirmed
      that the following small change fixes the spurious return of
      sizeof(struct usb_cdc_line_coding)/wLength bytes in the status phase
      of a USB_CDC_REQ_SET_LINE_CODING request. It's not a huge bug but, it
      is worth fixing.
      Signed-off-by: NBryan O'Donoghue <bodonoghue@codehermit.ie>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8356f311