1. 22 7月, 2021 1 次提交
  2. 20 7月, 2021 1 次提交
  3. 16 6月, 2021 1 次提交
  4. 10 6月, 2021 2 次提交
  5. 12 4月, 2021 2 次提交
  6. 09 3月, 2021 2 次提交
  7. 09 2月, 2021 1 次提交
  8. 01 2月, 2021 7 次提交
  9. 25 1月, 2021 1 次提交
  10. 18 1月, 2021 6 次提交
  11. 13 1月, 2021 1 次提交
  12. 04 12月, 2020 6 次提交
    • J
      USB: serial: cp210x: clean up dtr_rts() · daa91919
      Johan Hovold 提交于
      Clean up dtr_rts() by renaming the port parameter and adding missing
      whitespace.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      daa91919
    • J
      USB: serial: cp210x: refactor flow-control handling · ed921771
      Johan Hovold 提交于
      Add a helper function to be used to configure flow control.
      
      The flow-control code was the last caller that relied on the
      memset-on-failure behaviour of cp210x_read_reg_block(), which we can now
      drop in favour of bailing out on errors when retrieving the flow-control
      settings.
      
      This should also simplify adding support for software flow control.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      ed921771
    • J
      USB: serial: cp210x: drop flow-control debugging · b339628e
      Johan Hovold 提交于
      Drop some unnecessary flow-control debugging.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      b339628e
    • J
      USB: serial: cp210x: set terminal settings on open · 46827bda
      Johan Hovold 提交于
      Unlike other drivers cp210x have been retrieving the current terminal
      settings from the device on open and reflecting those in termios.
      
      Due to how set_termios() used to be implemented, this saved a few
      control requests on open but has instead caused problems like broken
      flow control and has required adding workarounds for swapped
      line-control in cp2108 and line-speed initialisation on cp2104.
      
      This unusual implementation also complicates adding new features for no
      good reason.
      
      Rip out the corresponding code and the above mentioned workarounds and
      instead initialise the terminal settings unconditionally on open.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      46827bda
    • J
      USB: serial: cp210x: clean up line-control handling · d4297629
      Johan Hovold 提交于
      Update the line-control settings in one request unconditionally instead
      of setting the word-length, parity and stop-bit settings separately.
      
      This avoids multiple requests when several settings are changed even if
      this scheme could potentially also be used to detect unsupported device
      settings. Since all device types but CP2101 appears to support all
      settings, let's handle that one specifically and also report back the
      unsupported settings properly through termios by clearing the
      corresponding bits.
      
      Also drop the related unnecessary debug printks.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      d4297629
    • J
      USB: serial: cp210x: return early on unchanged termios · 95168d62
      Johan Hovold 提交于
      Return early from set_termios() in case no relevant terminal settings
      have changed.
      
      This avoids testing each parameter in turn and specifically allows the
      line-control handling to be cleaned up further.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      95168d62
  13. 14 7月, 2020 5 次提交
  14. 06 7月, 2020 2 次提交
  15. 18 11月, 2019 1 次提交
  16. 28 3月, 2019 1 次提交