1. 19 4月, 2017 1 次提交
  2. 13 3月, 2017 5 次提交
  3. 07 2月, 2017 1 次提交
    • J
      USB: serial: ftdi_sio: fix line-status over-reporting · a6bb1e17
      Johan Hovold 提交于
      FTDI devices use a receive latency timer to periodically empty the
      receive buffer and report modem and line status (also when the buffer is
      empty).
      
      When a break or error condition is detected the corresponding status
      flags will be set on a packet with nonzero data payload and the flags
      are not updated until the break is over or further characters are
      received.
      
      In order to avoid over-reporting break and error conditions, these flags
      must therefore only be processed for packets with payload.
      
      This specifically fixes the case where after an overrun, the error
      condition is continuously reported and NULL-characters inserted until
      further data is received.
      Reported-by: NMichael Walle <michael@walle.cc>
      Fixes: 72fda3ca ("USB: serial: ftd_sio: implement sysrq handling on
      break")
      Fixes: 166ceb69 ("USB: ftdi_sio: clean up line-status handling")
      Cc: stable <stable@vger.kernel.org>	# v2.6.35
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      a6bb1e17
  4. 26 1月, 2017 1 次提交
  5. 25 1月, 2017 1 次提交
    • J
      USB: serial: ftdi_sio: fix extreme low-latency setting · c6dce262
      Johan Hovold 提交于
      Since commit 557aaa7f ("ft232: support the ASYNC_LOW_LATENCY
      flag") the FTDI driver has been using a receive latency-timer value of
      1 ms instead of the device default of 16 ms.
      
      The latency timer is used to periodically empty a non-full receive
      buffer, but a status header is always sent when the timer expires
      including when the buffer is empty. This means that a two-byte bulk
      message is received every millisecond also for an otherwise idle port as
      long as it is open.
      
      Let's restore the pre-2009 behaviour which reduces the rate of the
      status messages to 1/16th (e.g. interrupt frequency drops from 1 kHz to
      62.5 Hz) by not setting ASYNC_LOW_LATENCY by default.
      
      Anyone willing to pay the price for the minimum-latency behaviour should
      set the flag explicitly instead using the TIOCSSERIAL ioctl or a tool
      such as setserial (e.g. setserial /dev/ttyUSB0 low_latency).
      
      Note that since commit 0cbd81a9 ("USB: ftdi_sio: remove
      tty->low_latency") the ASYNC_LOW_LATENCY flag has no other effects but
      to set a minimal latency timer.
      Reported-by: NAntoine Aubert <a.aubert@overkiz.com>
      Fixes: 557aaa7f ("ft232: support the ASYNC_LOW_LATENCY flag")
      Cc: stable@vger.kernel.org # v2.6.31: e3e574adSigned-off-by: NJohan Hovold <johan@kernel.org>
      c6dce262
  6. 16 1月, 2017 2 次提交
  7. 12 11月, 2016 1 次提交
  8. 07 11月, 2016 1 次提交
  9. 17 10月, 2016 1 次提交
  10. 08 8月, 2016 2 次提交
  11. 25 4月, 2016 1 次提交
  12. 07 4月, 2016 1 次提交
  13. 28 2月, 2016 1 次提交
  14. 25 1月, 2016 1 次提交
  15. 19 8月, 2015 1 次提交
  16. 21 5月, 2015 1 次提交
  17. 25 3月, 2015 1 次提交
  18. 16 3月, 2015 1 次提交
  19. 03 3月, 2015 1 次提交
  20. 27 2月, 2015 1 次提交
  21. 19 11月, 2014 1 次提交
  22. 23 10月, 2014 1 次提交
  23. 22 10月, 2014 1 次提交
  24. 09 9月, 2014 1 次提交
  25. 01 9月, 2014 1 次提交
  26. 18 8月, 2014 2 次提交
  27. 02 8月, 2014 1 次提交
  28. 12 7月, 2014 1 次提交
  29. 10 7月, 2014 1 次提交
  30. 07 7月, 2014 4 次提交