1. 17 7月, 2007 1 次提交
    • Y
      serial: assert DTR for serial console devices · 79492689
      Yinghai Lu 提交于
      Some RS-232 devices require DTR to be asserted before they can be used.  DTR
      is normally asserted in uart_startup() when the port is opened.  But we don't
      actually open serial console ports, so assert DTR when the port is added.
      
      BTW:
      earlyprintk and early_uart are hard coded to set DTR/RTS.
      
      rmk says
      
        The only issue I can think of is the possibility for an attached modem to
        auto-answer or maybe even auto-dial before the system is ready for it to do
        so.  Might have an undesirable cost implication for some running with such a
        setup.
      
        Apart from that, I can't think of any other side effect of this specific
        patch.
      Signed-off-by: NYinghai Lu <yinghai.lu@sun.com>
      Acked-by: NRussell King <rmk@arm.linux.org.uk>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Gerd Hoffmann <kraxel@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      79492689
  2. 08 5月, 2007 3 次提交
    • J
      Serial: serial_core, use pr_debug · eb3a1e11
      Jiri Slaby 提交于
      serial_core, use pr_debug
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      eb3a1e11
    • D
      serial: define FIXED_PORT flag for serial_core · abb4a239
      David Gibson 提交于
      At present, the serial core always allows setserial in userspace to change the
      port address, irq and base clock of any serial port.  That makes sense for
      legacy ISA ports, but not for (say) embedded ns16550 compatible serial ports
      at peculiar addresses.  In these cases, the kernel code configuring the ports
      must know exactly where they are, and their clocking arrangements (which can
      be unusual on embedded boards).  It doesn't make sense for userspace to change
      these settings.
      
      Therefore, this patch defines a UPF_FIXED_PORT flag for the uart_port
      structure.  If this flag is set when the serial port is configured, any
      attempts to alter the port's type, io address, irq or base clock with
      setserial are ignored.
      
      In addition this patch uses the new flag for on-chip serial ports probed in
      arch/powerpc/kernel/legacy_serial.c, and for other hard-wired serial ports
      probed by drivers/serial/of_serial.c.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      abb4a239
    • M
      serial driver PMC MSP71xx · beab697a
      Marc St-Jean 提交于
      Serial driver patch for the PMC-Sierra MSP71xx devices.
      
      There are three different fixes:
      
      1 Fix for DesignWare APB THRE errata: In brief, this is a non-standard
        16550 in that the THRE interrupt will not re-assert itself simply by
        disabling and re-enabling the THRI bit in the IER, it is only re-enabled
        if a character is actually sent out.
      
        It appears that the "8250-uart-backup-timer.patch" in the "mm" tree
        also fixes it so we have dropped our initial workaround.  This patch now
        needs to be applied on top of that "mm" patch.
      
      2 Fix for Busy Detect on LCR write: The DesignWare APB UART has a feature
        which causes a new Busy Detect interrupt to be generated if it's busy
        when the LCR is written.  This fix saves the value of the LCR and
        rewrites it after clearing the interrupt.
      
      3 Workaround for interrupt/data concurrency issue: The SoC needs to
        ensure that writes that can cause interrupts to be cleared reach the UART
        before returning from the ISR.  This fix reads a non-destructive register
        on the UART so the read transaction completion ensures the previously
        queued write transaction has also completed.
      Signed-off-by: NMarc St-Jean <Marc_St-Jean@pmc-sierra.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      beab697a
  3. 15 2月, 2007 2 次提交
  4. 09 12月, 2006 1 次提交
    • A
      [PATCH] tty: switch to ktermios · 606d099c
      Alan Cox 提交于
      This is the grungy swap all the occurrences in the right places patch that
      goes with the updates.  At this point we have the same functionality as
      before (except that sgttyb() returns speeds not zero) and are ready to
      begin turning new stuff on providing nobody reports lots of bugs
      
      If you are a tty driver author converting an out of tree driver the only
      impact should be termios->ktermios name changes for the speed/property
      setting functions from your upper layers.
      
      If you are implementing your own TCGETS function before then your driver
      was broken already and its about to get a whole lot more painful for you so
      please fix it 8)
      
      Also fill in c_ispeed/ospeed on init for most devices, although the current
      code will do this for you anyway but I'd like eventually to lose that extra
      paranoia
      
      [akpm@osdl.org: bluetooth fix]
      [mp3@de.ibm.com: sclp fix]
      [mp3@de.ibm.com: warning fix for tty3270]
      [hugh@veritas.com: fix tty_ioctl powerpc build]
      [jdike@addtoit.com: uml: fix ->set_termios declaration]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NMartin Peschke <mp3@de.ibm.com>
      Acked-by: NPeter Oberparleiter <oberpar@de.ibm.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      606d099c
  5. 02 10月, 2006 4 次提交
  6. 26 9月, 2006 1 次提交
  7. 30 8月, 2006 1 次提交
  8. 10 7月, 2006 1 次提交
    • Z
      [SERIAL] 8250: add tsi108 serial support · 3be91ec7
      Zang Roy-r61911 提交于
      The following patch gets rid of CONFIG_TSI108_BRIDGE.  I add UPIO_TSI to
      handle IIR and IER register in serial_in and serial_out.
      
      (1) the reason to rewrite serial_in:
      
          TSI108 rev Z1 version ERRATA.  Reading the UART's Interrupt
          Identification Register (IIR) clears the Transmit Holding Register
          Empty (THRE) and Transmit buffer Empty (TEMP) interrupts even if they
          are not enabled in the Interrupt Enable Register (IER).  This leads to
          loss of the interrupts.  Interrupts are not cleared when reading UART
          registers as 32-bit word.
      
      (2) the reason to rewrite serial_out:
      
          Check for UART_IER_UUE bit in the autoconfig routine.  This section
          of autoconfig is excluded for Tsi108/109 because bits 7 and 6 are
          reserved for internal use.  They are R/W bits.  In addition to
          incorrect identification, changing these bits (from 00) will make
          Tsi108/109 UART non-functional.
      Signed-off-by: NRoy Zang <tie-fei.zang@freescale.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3be91ec7
  9. 04 7月, 2006 1 次提交
  10. 03 7月, 2006 1 次提交
    • R
      [SERIAL] Convert fifosize to an unsigned int · 947deee8
      Russell King 提交于
      Some UARTs have more than 255 bytes of FIFO, which can't be
      represented by an unsigned char.  Change the kernel's internal
      structure to be an unsigned int, but still export an unsigned char
      via the TIOCGSERIAL ioctl.  If the TIOCSSERIAL ioctl provides a
      fifo size of 0, assume this means "don't change" otherwise we'll
      corrupt the larger fifo sizes.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      947deee8
  11. 01 7月, 2006 1 次提交
  12. 27 6月, 2006 2 次提交
  13. 16 5月, 2006 1 次提交
  14. 30 4月, 2006 1 次提交
  15. 21 3月, 2006 1 次提交
  16. 09 3月, 2006 1 次提交
  17. 03 2月, 2006 1 次提交
    • A
      [SERIAL] initialize spinlock for port failed to setup console · 9c0f4755
      Atsushi Nemoto 提交于
      It seems serial_core intend to initialize port->lock just once for each
      ports.  This is done in uart_set_options() for console, and in
      uart_add_one_port() for other ports.  But there is a case the port->lock is
      not initialized by serial_core.  If the setup function for the console was
      failed, it will not call uart_set_options() but the port is marked as
      console (uart_console(port) returns 1).  It can happen if console was PCI
      port which can not detected at the time of register_console.
      
      This patch is to initialize port->lock for such console port.  With this
      change, most of spin_lock_init() (some of them are labeled "Temporary
      fix.") in low-level serial drivers can be omitted.
      Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      9c0f4755
  18. 22 1月, 2006 2 次提交
  19. 14 1月, 2006 1 次提交
  20. 13 1月, 2006 1 次提交
  21. 08 1月, 2006 1 次提交
    • R
      [SERIAL] Fix clocal wakeup problem · f61051cd
      Russell King 提交于
      Jim Alexander reported a problem where "if one calls open() in
      blocking mode with CLOCAL off, the 8250.c driver under the 2.6
      kernel (or at least 2.6.8 and 2.6.10) does not wake up the
      blocked process when DCD is asserted."
      
      Fix this by enabling modem status interrupts immediately before
      we read the carrier detect status.
      
      Thanks to Jim for reporting the problem and testing the fix.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f61051cd
  22. 05 1月, 2006 1 次提交
  23. 29 11月, 2005 1 次提交
  24. 13 11月, 2005 1 次提交
  25. 06 11月, 2005 1 次提交
  26. 31 10月, 2005 2 次提交
  27. 03 9月, 2005 1 次提交
  28. 01 9月, 2005 1 次提交
  29. 04 7月, 2005 1 次提交
  30. 30 6月, 2005 1 次提交
  31. 29 6月, 2005 1 次提交