1. 18 2月, 2016 1 次提交
  2. 25 1月, 2016 1 次提交
  3. 29 12月, 2015 1 次提交
  4. 26 11月, 2015 1 次提交
  5. 23 11月, 2015 1 次提交
  6. 16 11月, 2015 3 次提交
    • K
      USB: cp210x: work around cp2108 GET_LINE_CTL bug · d0bf1ff0
      Konstantin Shkolnyy 提交于
      Add helper to access line-control register in order to work around a
      cp2108 GET_LINE_CTL bug.
      
      cp2108 GET_LINE_CTL returns the 16-bit value with the 2 bytes swapped.
      However, SET_LINE_CTL functions properly. When the driver tries to modify
      the register, it reads it, modifies some bits and writes back. Because the
      read bytes were swapped, this often results in an invalid value to be
      written. In turn, this causes cp2108 respond with a stall. The stall
      sometimes doesn't clear properly and cp2108 starts responding to following
      valid commands also with stalls, effectively failing.
      Signed-off-by: NKonstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
      [johan: amend commit message, modify probe error handling ]
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      d0bf1ff0
    • K
      USB: cp210x: relocate private data from USB interface to port · e2ae67a3
      Konstantin Shkolnyy 提交于
      This change is preparation for implementing a cp2108 bug workaround.
      The workaround requires storing some private data. Right now the data is
      attached to the USB interface and allocated in the attach() callback.
      The bug detection requires USB I/O which is done easier from port_probe()
      callback rather than attach(). Since the USB access functions take port
      as a parameter, and since the private data is used exclusively by these
      functions, it can be allocated in port_probe(). Also, all cp210x devices
      have exactly 1 port per USB iterface, so moving private data from the USB
      interface to port is trivial.
      Signed-off-by: NKonstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      e2ae67a3
    • K
      USB: cp210x: flush device queues at close · ebfb319b
      Konstantin Shkolnyy 提交于
      Flush all device queues at close in order to work around a cp2108 Tx
      queue bug.
      
      Occasionally, writing data and immediately closing the port makes cp2108
      stop responding. The device has to be unplugged to clear the error.
      The failure is induced by shutting down the device while its Tx queue
      still has unsent data. This condition is avoided by issuing PURGE command
      from the close() callback.
      
      This change is applied to all cp210x devices. Clearing internal queues on
      close is generally good.
      Signed-off-by: NKonstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
      [johan: amend commit message ]
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      ebfb319b
  7. 06 7月, 2015 1 次提交
  8. 05 6月, 2015 1 次提交
  9. 29 4月, 2015 1 次提交
  10. 27 2月, 2015 1 次提交
  11. 26 1月, 2015 1 次提交
  12. 06 1月, 2015 1 次提交
  13. 02 1月, 2015 1 次提交
  14. 10 11月, 2014 1 次提交
  15. 22 10月, 2014 1 次提交
  16. 22 9月, 2014 2 次提交
  17. 18 7月, 2014 1 次提交
  18. 07 7月, 2014 1 次提交
  19. 17 4月, 2014 1 次提交
  20. 04 1月, 2014 1 次提交
  21. 24 7月, 2013 1 次提交
  22. 23 7月, 2013 3 次提交
  23. 11 6月, 2013 1 次提交
    • G
      USB: serial: ports: add minor and port number · 1143832e
      Greg Kroah-Hartman 提交于
      The usb_serial_port structure had the number field, which was the minor
      number for the port, which almost no one really cared about.  They
      really wanted the number of the port within the device, which you had to
      subtract from the minor of the parent usb_serial_device structure.  To
      clean this up, provide the real minor number of the port, and the number
      of the port within the serial device separately, as these numbers might
      not be related in the future.
      
      Bonus is that this cleans up a lot of logic in the drivers, and saves
      lines overall.
      Tested-by: NTobias Winter <tobias@linuxdingsda.de>
      Reviewed-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      
      --
       drivers/staging/serqt_usb2/serqt_usb2.c |   21 +++--------
       drivers/usb/serial/ark3116.c            |    2 -
       drivers/usb/serial/bus.c                |    6 +--
       drivers/usb/serial/console.c            |    2 -
       drivers/usb/serial/cp210x.c             |    2 -
       drivers/usb/serial/cypress_m8.c         |    4 +-
       drivers/usb/serial/digi_acceleport.c    |    6 ---
       drivers/usb/serial/f81232.c             |    5 +-
       drivers/usb/serial/garmin_gps.c         |    6 +--
       drivers/usb/serial/io_edgeport.c        |   58 ++++++++++++--------------------
       drivers/usb/serial/io_ti.c              |   21 ++++-------
       drivers/usb/serial/keyspan.c            |   29 +++++++---------
       drivers/usb/serial/metro-usb.c          |    4 +-
       drivers/usb/serial/mos7720.c            |   37 +++++++++-----------
       drivers/usb/serial/mos7840.c            |   52 +++++++++-------------------
       drivers/usb/serial/opticon.c            |    2 -
       drivers/usb/serial/pl2303.c             |    2 -
       drivers/usb/serial/quatech2.c           |    7 +--
       drivers/usb/serial/sierra.c             |    2 -
       drivers/usb/serial/ti_usb_3410_5052.c   |   10 ++---
       drivers/usb/serial/usb-serial.c         |    7 ++-
       drivers/usb/serial/usb_wwan.c           |    2 -
       drivers/usb/serial/whiteheat.c          |   20 +++++------
       include/linux/usb/serial.h              |    6 ++-
       24 files changed, 133 insertions(+), 180 deletions(-)
      1143832e
  24. 26 3月, 2013 1 次提交
  25. 12 3月, 2013 1 次提交
  26. 11 3月, 2013 1 次提交
  27. 31 1月, 2013 1 次提交
  28. 27 11月, 2012 1 次提交
  29. 01 11月, 2012 1 次提交
  30. 31 10月, 2012 1 次提交
  31. 17 10月, 2012 1 次提交
  32. 15 9月, 2012 1 次提交
  33. 14 9月, 2012 1 次提交
  34. 06 9月, 2012 1 次提交
  35. 17 7月, 2012 1 次提交