1. 10 12月, 2020 2 次提交
  2. 09 12月, 2020 1 次提交
  3. 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
  4. 20 11月, 2020 1 次提交
    • D
      USB: serial: mos7720: defer state restore to a workqueue · 053af9e6
      Davidlohr Bueso 提交于
      The parallel port restore operation currently defers writes
      to a tasklet, if it sees a locked disconnect mutex. The
      driver goes to a lot of trouble to ensure writes happen
      in a non-blocking context, but things can be greatly
      simplified if it's done in regular process context and
      this is not a system performance critical path. As such,
      instead of doing the state restore writes in softirq context,
      use a workqueue and just do regular synchronous writes.
      
      In addition to the cleanup, this also imposes less on the
      overall system as tasklets have been deprecated because
      of it's softirq implications, potentially blocking a higher
      priority task from running.
      Signed-off-by: NDavidlohr Bueso <dbueso@suse.de>
      Link: https://lore.kernel.org/r/20201120045300.28804-1-dave@stgolabs.net
      [johan: amend commit message ("softirq context")]
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      053af9e6
  5. 05 11月, 2020 1 次提交
  6. 04 11月, 2020 16 次提交
  7. 27 10月, 2020 2 次提交
  8. 26 10月, 2020 11 次提交