1. 19 4月, 2012 1 次提交
  2. 10 3月, 2012 1 次提交
    • P
      serial: make 8250's serial_in shareable to other drivers. · 3f0ab327
      Paul Gortmaker 提交于
      Currently 8250.c has serial_in and serial_out as shortcuts
      to doing the port I/O.  They are implemented as macros a
      ways down in the file.  This isn't by accident, but is
      implicitly required, so cpp doesn't mangle other instances
      of the common string "serial_in", as it exists as a field
      in the port struct itself.
      
      The above mangling avoidance violates the principle of least
      surprise, and it also prevents the shortcuts from being
      relocated up to the top of file, or into 8250.h -- either
      being a better location than the current one.
      
      Move them to 8250.h so other 8250-like drivers can also use
      the shortcuts, and in the process, make the conflicting
      names go away by using static inlines instead of macros.
      The object file size remains unchanged with this modification.
      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>
      3f0ab327
  3. 25 1月, 2012 1 次提交
  4. 10 12月, 2011 1 次提交
  5. 16 11月, 2011 2 次提交
    • G
      Revert "tty/serial: Prevent drop of DCD on suspend for Tegra UARTs" · 6edf0c9b
      Greg Kroah-Hartman 提交于
      This reverts commit 9636b755.
      
      It wasn't supposed to be applied, thanks to Doug for letting me know.
      
      Cc: Doug Anderson <dianders@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6edf0c9b
    • D
      tty/serial: Prevent drop of DCD on suspend for Tegra UARTs · 9636b755
      Doug Anderson 提交于
      On Tegra UARTs (except UART1), the DTR / DCD / DSR lines are not
      externally accessible.  Instead, the DTR line internally appears to be
      looped back to be the input to the DCD and DSR lines.  The net effect
      of this is that when we drop DTR (like when we suspend), we'll see DCD
      drop too.  ...and when we see DCD drop, we treat that as a hangup.
      
      In order to prevent this hangup from occurring at every sleep, we need
      to force DTR to remain high on Tegra UARTs.
      
      This patch uses the mcr_mask / mcr_force fields, which were originally
      added for the kludge ALPHA_KLUDGE_MCR.  Using these fields does not
      prevent us from removing ALPHA_KLUDGE_MCR--we can just remove the "if"
      tests I have added and always init mcr_mask / mcr_force from the
      serial8250_config.
      
      NOTE: If we have people that are using UARTA on a Tegra and need to
      control DTR, we'll need to either add a separate port type for UARTA
      or we'll need to add some tegra-specific code to detect whether the
      DTR needs to be left high.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9636b755
  6. 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
  7. 20 4月, 2011 1 次提交
  8. 14 1月, 2011 1 次提交
    • G
      tty: move drivers/serial/ to drivers/tty/serial/ · ab4382d2
      Greg Kroah-Hartman 提交于
      The serial drivers are really just tty drivers, so move them to
      drivers/tty/ to make things a bit neater overall.
      
      This is part of the tty/serial driver movement proceedure as proposed by
      Arnd Bergmann and approved by everyone involved a number of months ago.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Rogier Wolff <R.E.Wolff@bitwizard.nl>
      Cc: Michael H. Warfield <mhw@wittsend.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ab4382d2
  9. 20 9月, 2009 1 次提交
  10. 03 9月, 2008 1 次提交
    • W
      8250: improve workaround for UARTs that don't re-assert THRE correctly · 363f66fe
      Will Newton 提交于
      Recent changes to tighten the check for UARTs that don't correctly
      re-assert THRE (01c194d9: "serial 8250:
      tighten test for using backup timer") caused problems when such a UART was
      opened for the second time - the bug could only successfully be detected
      at first initialization.  For users of this version of this particular
      UART IP it is fatal.
      
      This patch stores the information about the bug in the bugs field of the
      port structure when the port is first started up so subsequent opens can
      check this bit even if the test for the bug fails.
      
      David Brownell: "My own exposure to this is that the UART on DaVinci
      hardware, which TI allegedly derived from its original 16550 logic, has
      periodically gone from working to unusable with the mainline 8250.c ...
      and back and forth a bunch.  Currently it's "unusable", a regression from
      some previous versions.  With this patch from Will, it's usable."
      Signed-off-by: NWill Newton <will.newton@gmail.com>
      Acked-by: NAlex Williamson <alex.williamson@hp.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: <stable@kernel.org>		[2.6.26.x]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      363f66fe
  11. 21 7月, 2008 1 次提交
  12. 31 5月, 2008 1 次提交
    • B
      8250 Serial Driver: revert extra IRQ flag definition patch · a4ed1e41
      Bryan Wu 提交于
      As Russell pointed out, original patch will break some serial configurations
      because of the dependency of the <asm/serial.h> header file.
      
      Revert it first and try to find out other solution later
      
      Cc: Javier Herrero <jherrero@hvsistemas.es>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Russell King <rmk+lkml@arm.linux.org.uk>
      Signed-off-by: NBryan Wu <cooloney@kernel.org>
      a4ed1e41
  13. 17 5月, 2008 1 次提交
  14. 01 7月, 2006 1 次提交
  15. 05 1月, 2006 1 次提交
  16. 06 11月, 2005 1 次提交
  17. 01 9月, 2005 1 次提交
  18. 23 6月, 2005 2 次提交
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4