1. 12 4月, 2017 4 次提交
    • A
      vt: set mouse selection word-chars to gpm's default · 7d6d44ae
      Adam Borowski 提交于
      Since forever, gpm was this code's only user, and it overrides the table on
      start so the default was never seen -- until Bill Allombert's "consolation"
      came in.  The in-kernel set is "A-Za-z0-9_" which fails to catch typical
      file names, etc.  Let's change this to gpm's conservative default, ie
      "-A-Za-z0-9_./"; most terminals include more, for example xfce4-terminal has
      "-A-Za-z0-9,./?%&#:_=+@~".
      
      There's some discussion at https://bugs.debian.org/846587Signed-off-by: NAdam Borowski <kilobyte@angband.pl>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7d6d44ae
    • P
      imx-serial: Reduce RX DMA startup latency when opening for reading · 18a42088
      Peter Senna Tschudin 提交于
      Reduce RX DMA start latency for the first reception when port is opened
      for reading. Instead of waiting for an interrupt signaling data on RX
      FIFO or data too old on RX FIFO, start RX DMA immediately when the
      serial port is opened for reading.
      
      Before this patch, the average RX DMA latency for the first reception
      was 42489 microseconds with a standard deviation of 25721 microseconds
      in 36 samples.
      
      After the patch the average RX DMA latency for the first reception, when
      the serial port is opened for reading, is 653 microseconds with a
      standard deviation of 294 microseconds in 36 samples.
      Signed-off-by: NPeter Senna Tschudin <peter.senna@collabora.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      18a42088
    • J
      serial: omap: suspend device on probe errors · 77e6fe7f
      Johan Hovold 提交于
      Make sure to actually suspend the device before returning after a failed
      (or deferred) probe.
      
      Note that autosuspend must be disabled before runtime pm is disabled in
      order to balance the usage count due to a negative autosuspend delay as
      well as to make the final put suspend the device synchronously.
      
      Fixes: 388bc262 ("omap-serial: Fix the error handling in the omap_serial probe")
      Cc: Shubhrajyoti D <shubhrajyoti@ti.com>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      77e6fe7f
    • J
      serial: omap: fix runtime-pm handling on unbind · 099bd73d
      Johan Hovold 提交于
      An unbalanced and misplaced synchronous put was used to suspend the
      device on driver unbind, something which with a likewise misplaced
      pm_runtime_disable leads to external aborts when an open port is being
      removed.
      
      Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa024010
      ...
      [<c046e760>] (serial_omap_set_mctrl) from [<c046a064>] (uart_update_mctrl+0x50/0x60)
      [<c046a064>] (uart_update_mctrl) from [<c046a400>] (uart_shutdown+0xbc/0x138)
      [<c046a400>] (uart_shutdown) from [<c046bd2c>] (uart_hangup+0x94/0x190)
      [<c046bd2c>] (uart_hangup) from [<c045b760>] (__tty_hangup+0x404/0x41c)
      [<c045b760>] (__tty_hangup) from [<c045b794>] (tty_vhangup+0x1c/0x20)
      [<c045b794>] (tty_vhangup) from [<c046ccc8>] (uart_remove_one_port+0xec/0x260)
      [<c046ccc8>] (uart_remove_one_port) from [<c046ef4c>] (serial_omap_remove+0x40/0x60)
      [<c046ef4c>] (serial_omap_remove) from [<c04845e8>] (platform_drv_remove+0x34/0x4c)
      
      Fix this up by resuming the device before deregistering the port and by
      suspending and disabling runtime pm only after the port has been
      removed.
      
      Also make sure to disable autosuspend before disabling runtime pm so
      that the usage count is balanced and device actually suspended before
      returning.
      
      Note that due to a negative autosuspend delay being set in probe, the
      unbalanced put would actually suspend the device on first driver unbind,
      while rebinding and again unbinding would result in a negative
      power.usage_count.
      
      Fixes: 7e9c8e7d ("serial: omap: make sure to suspend device before remove")
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      099bd73d
  2. 09 4月, 2017 11 次提交
  3. 01 4月, 2017 2 次提交
  4. 31 3月, 2017 22 次提交
  5. 30 3月, 2017 1 次提交