1. 06 11月, 2014 1 次提交
    • P
      serial: Fix upstat_t sparse warnings · d4260b51
      Peter Hurley 提交于
      Commit 299245a1,
      serial: core: Privatize modem status enable flags, introduced
      the upstat_t type and matching bit definitions. The purpose is to
      produce sparse warnings if the wrong bit definitions are used
      (by warning of implicit integer conversions).
      
      Fix implicit conversion to integer return type from uart_cts_enabled()
      and uart_dcd_enabled().
      
      Fixes the following sparse warnings:
      drivers/tty/serial/serial_core.c:63:30: warning: incorrect type in return expression (different base types)
      drivers/tty/serial/serial_core.c:63:30:    expected int
      drivers/tty/serial/serial_core.c:63:30:    got restricted upstat_t
      include/linux/serial_core.h:364:30: warning: incorrect type in return expression (different base types)
      include/linux/serial_core.h:364:30:    expected bool
      include/linux/serial_core.h:364:30:    got restricted upstat_t
      include/linux/serial_core.h:364:30: warning: incorrect type in return expression (different base types)
      include/linux/serial_core.h:364:30:    expected bool
      include/linux/serial_core.h:364:30:    got restricted upstat_t
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d4260b51
  2. 27 9月, 2014 1 次提交
  3. 24 9月, 2014 2 次提交
  4. 09 9月, 2014 2 次提交
  5. 18 7月, 2014 1 次提交
  6. 21 5月, 2014 1 次提交
  7. 25 4月, 2014 1 次提交
    • R
      tty/serial: add generic serial earlycon · 9aac5887
      Rob Herring 提交于
      This introduces generic earlycon infrastructure for serial devices
      based on the 8250 earlycon. This allows for supporting earlycon option
      with other serial devices. The earlycon output is enabled at the time
      early_params are processed.
      
      Only architectures that have fixmap support or have functional ioremap
      when early_params are processed are supported. This is the same
      restriction that the 8250 driver had.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9aac5887
  8. 17 10月, 2013 1 次提交
    • L
      serial: core: delete .set_wake() callback · fa2b5ea0
      Linus Walleij 提交于
      This deletes the .set_wake() callback in the struct uart_ops.
      Apparently this has been unused since pre-git times. In the
      old-2.6-bkcvs it is deleted as part of a changeset removing
      the PM_SET_WAKEUP from pm_request_t which is since also deleted
      from the kernel.
      
      The apropriate way to set wakeups in the kernel is to have a
      code snippet like this in .suspend() or .runtime_suspend()
      callbacks:
      
      static int foo_suspend(struct device *dev)
      {
      	if (device_may_wakeup(dev)) {
      		/* Enable wakeups, set internal states */
      	}
      }
      
      This specific callback is not coming back.
      
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Dmitry Artamonow <mad_soft@inbox.ru>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fa2b5ea0
  9. 21 5月, 2013 1 次提交
  10. 14 2月, 2013 1 次提交
    • G
      pps: Move timestamp read into PPS code proper · 593fb1ae
      George Spelvin 提交于
      The PPS (Pulse-Per-Second) line discipline has developed a number of
      unhealthy attachments to core tty data and functions, ultimately leading
      to its breakage.
      
      The previous patches fixed the crashing.  This one reduces coupling further
      by eliminating the timestamp parameter from the dcd_change ldisc method.
      This reduces header file linkage and makes the extension more generic,
      and the timestamp read is delayed only slightly, from just before the
      ldisc->ops->dcd_change method call to just after.
      
      Fix attendant build breakage in
          drivers/tty/n_tty.c
          drivers/tty/tty_buffer.c
          drivers/staging/speakup/selection.c
          drivers/staging/dgrp/dgrp_*.c
      
      Cc: William Hubbs <w.d.hubbs@gmail.com>
      Cc: Chris Brannon <chris@the-brannons.com>
      Cc: Kirk Reiser <kirk@braille.uwo.ca>
      Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGeorge Spelvin <linux@horizon.com>
      Acked-by: NRodolfo Giometti <giometti@enneenne.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      593fb1ae
  11. 30 1月, 2013 1 次提交
  12. 16 1月, 2013 3 次提交
  13. 04 11月, 2012 3 次提交
  14. 13 10月, 2012 1 次提交
  15. 27 9月, 2012 2 次提交
  16. 17 8月, 2012 1 次提交
    • A
      serial: New serial driver MAX310X · f6544418
      Alexander Shiyan 提交于
      This driver is a replacement for a MAX3107 driver with a lot of
      improvements and new features.
      The main differences from the old version:
      - Using the regmap.
      - Using devm_XXX-related functions.
      - The use of threaded IRQ with IRQF_ONESHOT flag allows the driver to
        the hardware that supports only level IRQ.
      - Improved error handling of serial port, improved FIFO handling,
        improved hardware & software flow control.
      - Advanced flags allows turn on RS-485 mode (Auto direction control).
      - Ability to load multiple instances of drivers.
      - Added support for MAX3108.
      - GPIO support.
      - Driver is quite ready for adding I2C support and support other ICs
        with compatible registers set (MAX3109, MAX14830).
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f6544418
  17. 27 7月, 2012 1 次提交
  18. 13 6月, 2012 1 次提交
  19. 19 4月, 2012 1 次提交
  20. 10 4月, 2012 2 次提交
  21. 10 3月, 2012 1 次提交
    • P
      serial: introduce generic port in/out helpers · 927353a7
      Paul Gortmaker 提交于
      Looking at the existing serial drivers (esp. the 8250 derived
      variants) we see a common trend.  They create a hardware specific
      port struct, which in turn contains a generic serial_port struct.
      
      The other trend, is that they all create some sort of shortcut
      to go through the hardware specific struct, to the serial_port
      struct, which has the basic in/out operations within.  Looking
      for the serial_in and serial_out in several drivers shows this.
      
      Rather than let this continue, lets create a generic set of
      similar helper wrappers that can be used on a struct port, so
      we can eliminate bouncing out through hardware specific struct
      pointers just to come back into struct port where possible.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      927353a7
  22. 27 1月, 2012 1 次提交
  23. 08 12月, 2011 1 次提交
  24. 27 11月, 2011 1 次提交
  25. 16 11月, 2011 1 次提交
    • J
      TTY: serial, cleanup include file · 027d7dac
      Jiri Slaby 提交于
      There are some functions (uart_handle_dcd_change, _handle_cts_change,
      _insert_char) which are big enough to not be inlined. So move them
      from .h to .c. We need to export them so that modules can actually use
      them.
      
      They will be even bigger when we introduce tty refcounting to them.
      
      While at it, cleanup the "Proud member of Uglyhacks'R'US". It means,
      define uart_handle_sysrq_char only when SUPPORT_SYSRQ is set.
      Otherwise define it as a macro. This is needed for some arm driver
      where the second parameter is undefined if expanded.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      027d7dac
  26. 23 9月, 2011 1 次提交
  27. 24 8月, 2011 3 次提交
  28. 20 5月, 2011 1 次提交
    • S
      tty/serial: Add explicit PORT_TEGRA type · 4539c24f
      Stephen Warren 提交于
      Tegra's UART is currently auto-detected as PORT_XSCALE due to register
      bit UART_IER.UUE being writable. However, the Tegra documentation states
      that this register bit is reserved. Hence, we should not program it.
      
      Instead, the documentation specifies that the UART is 16550 compatible.
      However, Tegra does need register bit UART_IER.RTOIE set, which is not
      enabled by any 16550 port type. This was not noticed before, since
      PORT_XSCALE enables CAP_UUE, which conflates both UUE and RTOIE bit
      programming.
      
      This change defines PORT_TEGRA that doesn't set UART_CAP_UUE, but does
      set UART_CAP_RTOIE, which is a new capability indicating that the RTOIE
      bit needs to be enabled.
      Based-on-code-by: NLaxman Dewangan <ldewangan@nvidia.com>
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4539c24f
  29. 04 5月, 2011 1 次提交
  30. 14 1月, 2011 1 次提交