]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'tty/tty-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 18 Nov 2011 03:30:08 +0000 (14:30 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 18 Nov 2011 03:30:08 +0000 (14:30 +1100)
Conflicts:
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
drivers/tty/tty_ldisc.c

1  2 
arch/x86/include/asm/mrst.h
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/mfd.c
drivers/tty/serial/pch_uart.c
drivers/tty/tty_ldisc.c
include/linux/serial_core.h

Simple merge
index d202c31ae92d6184ae095612e0e1f623e8559b68,45c5758f76904bb58728d636f7e93cd3b24a22fe..78a3e16bd57a12a4402e1beacb1fdd77efca690f
@@@ -495,6 -495,68 +495,28 @@@ config SERIAL_SAMSUNG_CONSOL
          your boot loader about how to pass options to the kernel at
          boot time.)
  
 -config SERIAL_S3C2410
 -      tristate "Samsung S3C2410 Serial port support"
 -      depends on SERIAL_SAMSUNG && CPU_S3C2410
 -      default y if CPU_S3C2410
 -      help
 -        Serial port support for the Samsung S3C2410 SoC
 -
 -config SERIAL_S3C2412
 -      tristate "Samsung S3C2412/S3C2413 Serial port support"
 -      depends on SERIAL_SAMSUNG && CPU_S3C2412
 -      default y if CPU_S3C2412
 -      help
 -        Serial port support for the Samsung S3C2412 and S3C2413 SoC
 -
 -config SERIAL_S3C2440
 -      tristate "Samsung S3C2440/S3C2442/S3C2416 Serial port support"
 -      depends on SERIAL_SAMSUNG && (CPU_S3C2440 || CPU_S3C2442 || CPU_S3C2416)
 -      default y if CPU_S3C2440
 -      default y if CPU_S3C2442
 -      select SERIAL_SAMSUNG_UARTS_4 if CPU_S3C2416
 -      help
 -        Serial port support for the Samsung S3C2440, S3C2416 and S3C2442 SoC
 -
 -config SERIAL_S3C6400
 -      tristate "Samsung S3C6400/S3C6410/S5P6440/S5P6450/S5PC100 Serial port support"
 -      depends on SERIAL_SAMSUNG && (CPU_S3C6400 || CPU_S3C6410 || CPU_S5P6440 || CPU_S5P6450 || CPU_S5PC100)
 -      select SERIAL_SAMSUNG_UARTS_4
 -      default y
 -      help
 -        Serial port support for the Samsung S3C6400, S3C6410, S5P6440, S5P6450
 -        and S5PC100 SoCs
 -
 -config SERIAL_S5PV210
 -      tristate "Samsung S5PV210 Serial port support"
 -      depends on SERIAL_SAMSUNG && (CPU_S5PV210 || CPU_EXYNOS4210 || SOC_EXYNOS4212)
 -      select SERIAL_SAMSUNG_UARTS_4 if (CPU_S5PV210 || CPU_EXYNOS4210 || SOC_EXYNOS4212)
 -      default y
 -      help
 -        Serial port support for Samsung's S5P Family of SoC's
 -
+ config SERIAL_SIRFSOC
+         tristate "SiRF SoC Platform Serial port support"
+         depends on ARM && ARCH_PRIMA2
+         select SERIAL_CORE
+         help
+           Support for the on-chip UART on the CSR SiRFprimaII series,
+           providing /dev/ttySiRF0, 1 and 2 (note, some machines may not
+           provide all of these ports, depending on how the serial port
+           pins are configured).
+ config SERIAL_SIRFSOC_CONSOLE
+         bool "Support for console on SiRF SoC serial port"
+         depends on SERIAL_SIRFSOC=y
+         select SERIAL_CORE_CONSOLE
+         help
+           Even if you say Y here, the currently visible virtual console
+           (/dev/tty0) will still be used as the system console by default, but
+           you can alter that using a kernel command line option such as
+           "console=ttySiRFx". (Try "man bootparam" or see the documentation of
+           your boot loader about how to pass options to the kernel at
+           boot time.)
  config SERIAL_MAX3100
        tristate "MAX3100 support"
        depends on SPI
@@@ -1527,13 -1589,22 +1549,22 @@@ config SERIAL_PCH_UAR
          which is an IOH(Input/Output Hub) for x86 embedded processor.
          Enabling PCH_DMA, this PCH UART works as DMA mode.
  
 -        This driver also can be used for OKI SEMICONDUCTOR IOH(Input/
 -        Output Hub), ML7213 and ML7223.
 -        ML7213 IOH is for IVI(In-Vehicle Infotainment) use and ML7223 IOH is
 -        for MP(Media Phone) use.
 -        ML7213/ML7223 is companion chip for Intel Atom E6xx series.
 -        ML7213/ML7223 is completely compatible for Intel EG20T PCH.
 +        This driver also can be used for LAPIS Semiconductor IOH(Input/
 +        Output Hub), ML7213, ML7223 and ML7831.
 +        ML7213 IOH is for IVI(In-Vehicle Infotainment) use, ML7223 IOH is
 +        for MP(Media Phone) use and ML7831 IOH is for general purpose use.
 +        ML7213/ML7223/ML7831 is companion chip for Intel Atom E6xx series.
 +        ML7213/ML7223/ML7831 is completely compatible for Intel EG20T PCH.
  
+ config SERIAL_PCH_UART_CONSOLE
+       bool "Support for console on Intel EG20T PCH UART/OKI SEMICONDUCTOR ML7213 IOH"
+       depends on SERIAL_PCH_UART=y
+       select SERIAL_CORE_CONSOLE
+       help
+         Say Y here if you wish to use the PCH UART as the system console
+         (the system  console is the device which receives all kernel messages and
+         warnings and which allows logins in single user mode).
  config SERIAL_MSM_SMD
        bool "Enable tty device interface for some SMD ports"
        default n
index 62f7d285db55d1f5fcfd84d07f02c7c531413e10,af57089ddb6787c7f8da87ee4d646facd4c348f9..e19ca06f32acb48fdfc61c420cf121420d5d2199
@@@ -89,4 -94,4 +89,5 @@@ obj-$(CONFIG_SERIAL_MSM_SMD)  += msm_smd
  obj-$(CONFIG_SERIAL_MXS_AUART) += mxs-auart.o
  obj-$(CONFIG_SERIAL_LANTIQ)   += lantiq.o
  obj-$(CONFIG_SERIAL_XILINX_PS_UART) += xilinx_uartps.o
 +obj-$(CONFIG_SERIAL_AR933X)   += ar933x_uart.o
+ obj-$(CONFIG_SERIAL_SIRFSOC) += sirfsoc_uart.o
Simple merge
Simple merge
index d6aba8c087e4784370648976c0d018a569c374f4,b950d059a78141d90697a1a951c3f3401c75af6c..de0f613ed6f56051df309abc3ad25ea804081006
@@@ -272,10 -277,11 +279,13 @@@ static struct pch_uart_driver_data drv_
        [pch_ml7213_uart2] = {PCH_UART_2LINE, 2},
        [pch_ml7223_uart0] = {PCH_UART_8LINE, 0},
        [pch_ml7223_uart1] = {PCH_UART_2LINE, 1},
 +      [pch_ml7831_uart0] = {PCH_UART_8LINE, 0},
 +      [pch_ml7831_uart1] = {PCH_UART_2LINE, 1},
  };
  
+ #ifdef CONFIG_SERIAL_PCH_UART_CONSOLE
+ static struct eg20t_port *pch_uart_ports[PCH_UART_NR];
+ #endif
  static unsigned int default_baud = 9600;
  static const int trigger_level_256[4] = { 1, 64, 128, 224 };
  static const int trigger_level_64[4] = { 1, 16, 32, 56 };
index 8e0924f55446f963b8b9d79a0d66347d30c982bc,174db3b0c09e634ec42a8d4747ac83bb99640062..24b95db75d84f8d6f42705bdfb57b622abcce322
  #include <linux/device.h>
  #include <linux/wait.h>
  #include <linux/bitops.h>
- #include <linux/delay.h>
  #include <linux/seq_file.h>
  #include <linux/uaccess.h>
- #include <asm/system.h>
- #include <linux/kbd_kern.h>
- #include <linux/vt_kern.h>
- #include <linux/selection.h>
- #include <linux/kmod.h>
- #include <linux/nsproxy.h>
 +#include <linux/ratelimit.h>
  
  /*
   *    This guards the refcounted line discipline lists. The lock
@@@ -553,13 -533,11 +535,11 @@@ static void tty_ldisc_flush_works(struc
   *    Wait for the line discipline to become idle. The discipline must
   *    have been halted for this to guarantee it remains idle.
   */
 -static int tty_ldisc_wait_idle(struct tty_struct *tty)
 +static int tty_ldisc_wait_idle(struct tty_struct *tty, long timeout)
  {
 -      int ret;
 +      long ret;
        ret = wait_event_timeout(tty_ldisc_idle,
 -                      atomic_read(&tty->ldisc->users) == 1, 5 * HZ);
 +                      atomic_read(&tty->ldisc->users) == 1, timeout);
-       if (ret < 0)
-               return ret;
        return ret > 0 ? 0 : -EBUSY;
  }
  
Simple merge