1. 11 8月, 2010 4 次提交
    • P
      U6715 16550A serial driver support · 235dae5d
      Philippe Langlais 提交于
      UART Features extract from STEricsson U6715 data-sheet (arm926 SoC for mobile phone):
      * Fully compatible with industry standard 16C550 and 16C450 from various
      manufacturers
      * RX and TX 64 byte FIFO reduces CPU interrupts
      * Full double buffering
      * Modem control signals include CTS, RTS, (and DSR, DTR on UART1 only)
      * Automatic baud rate selection
      * Manual or automatic RTS/CTS smart hardware flow control
      * Programmable serial characteristics:
      – Baud rate generation (50 to 3.25M baud)
      – 5, 6, 7 or 8-bit characters
      – Even, odd or no-parity bit generation and detection
      – 1, 1.5 or 2 stop bit generation
      * Independent control of transmit, receive, line status, data set interrupts and FIFOs
      * Full status-reporting capabilities
      * Separate DMA signaling for RX and TX
      * Timed interrupt to spread receive interrupt on known duration
      * DMA time-out interrupt to allow detection of end of reception
      * Carkit pulse coding and decoding compliant with USB carkit control interface [40]
      
      In 16550A auto-configuration, if the fifo size is 64 then it's an U6 16550A port
      Add set_termios hook & export serial8250_do_set_termios to change uart
      clock following baudrate
      Signed-off-by: NPhilippe Langlais <philippe.langlais@stericsson.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      235dae5d
    • F
      hsu: driver for Medfield High Speed UART device · d843fc6e
      Feng Tang 提交于
      This is a PCI & UART driver, which suppors both PIO and DMA mode
      UART operation. It has 3 identical UART ports and one internal
      DMA controller.
      
      Current FW will export 4 pci devices for hsu: 3 uart ports and 1
      dma controller, each has one IRQ line. And we need to discuss the
      device model, one PCI device covering whole HSU should be a better
      model, but there is a problem of how to export the 4 IRQs info
      
      Current driver set the highest baud rate to 2746800bps, which is
      easy to scale down to 115200/230400.... To suport higher baud rate,
      we need add special process, change DLAB/DLH/PS/DIV/MUL registers
      all together.
      
      921600 is the highest baud rate that has been tested with Bluetooth
      modem connected to HSU port 0. Will test more when there is right
      BT firmware.
      
      Current version contains several work around for A0's Silicon bugs
      Signed-off-by: NFeng Tang <feng.tang@intel.com>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d843fc6e
    • A
      serial: max3107: Abstract out the platform specific bits · 61fd1526
      Alan Cox 提交于
      At the moment there is only one platform type supported and there is is
      hard wired, but with these changes the infrastructure is now there for
      anyone else to provide methods for their hardware.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      61fd1526
    • A
      tty: serial - fix tty referencing in set_ldisc · d87d9b7d
      Alan Cox 提交于
      Pass down the ldisc number so that the drivers don't have to peek into the
      tty object themselves. This lets us get rid of another case of back referencing
      port to tty which we don't want (because of races versus hangup/close).
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d87d9b7d
  2. 24 5月, 2010 1 次提交
  3. 22 5月, 2010 2 次提交
  4. 21 5月, 2010 1 次提交
    • J
      kgdb,8250,pl011: Return immediately from console poll · f5316b4a
      Jason Wessel 提交于
      The design of the kdb shell requires that every device that can
      provide input to kdb have a polling routine that exits immediately if
      there is no character available.  This is required in order to get the
      page scrolling mechanism working.
      
      Changing the kernel debugger I/O API to require all polling character
      routines to exit immediately if there is no data allows the kernel
      debugger to process multiple input channels.
      
      NO_POLL_CHAR will be the return code to the polling routine when ever
      there is no character available.
      
      CC: linux-serial@vger.kernel.org
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      f5316b4a
  5. 13 3月, 2010 1 次提交
  6. 05 11月, 2009 1 次提交
  7. 01 10月, 2009 1 次提交
  8. 24 9月, 2009 1 次提交
    • R
      serial core: fix new kernel-doc warnings · 1b9894f3
      Randy Dunlap 提交于
      Fix new kernel-doc warnings in serial_core.[hc] files.
      
        Warning(include/linux/serial_core.h:485): No description found for parameter 'uport'
        Warning(include/linux/serial_core.h:485): Excess function parameter 'port' description in 'uart_handle_dcd_change'
        Warning(include/linux/serial_core.h:511): No description found for parameter 'uport'
        Warning(include/linux/serial_core.h:511): Excess function parameter 'port' description in 'uart_handle_cts_change'
        Warning(drivers/serial/serial_core.c:2437): No description found for parameter 'uport'
        Warning(drivers/serial/serial_core.c:2437): Excess function parameter 'port' description in 'uart_add_one_port'
        Warning(drivers/serial/serial_core.c:2509): No description found for parameter 'uport'
        Warning(drivers/serial/serial_core.c:2509): Excess function parameter 'port' description in 'uart_remove_one_port'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1b9894f3
  9. 20 9月, 2009 9 次提交
  10. 23 6月, 2009 1 次提交
  11. 11 6月, 2009 2 次提交
  12. 07 4月, 2009 2 次提交
  13. 21 2月, 2009 1 次提交
    • M
      8250: fix boot hang with serial console when using with Serial Over Lan port · b6adea33
      Mauro Carvalho Chehab 提交于
      Intel 8257x Ethernet boards have a feature called Serial Over Lan.
      
      This feature works by emulating a serial port, and it is detected by
      kernel as a normal 8250 port.  However, this emulation is not perfect, as
      also noticed on changeset 7500b1f6.
      
      Before this patch, the kernel were trying to check if the serial TX is
      capable of work using IRQ's.
      
      This were done with a code similar this:
      
              serial_outp(up, UART_IER, UART_IER_THRI);
              lsr = serial_in(up, UART_LSR);
              iir = serial_in(up, UART_IIR);
              serial_outp(up, UART_IER, 0);
      
              if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT)
      		up->bugs |= UART_BUG_TXEN;
      
      This works fine for other 8250 ports, but, on 8250-emulated SoL port, the
      chip is a little lazy to down UART_IIR_NO_INT at UART_IIR register.
      
      Due to that, UART_BUG_TXEN is sometimes enabled.  However, as TX IRQ keeps
      working, and the TX polling is now enabled, the driver miss-interprets the
      IRQ received later, hanging up the machine until a key is pressed at the
      serial console.
      
      This is the 6 version of this patch.  Previous versions were trying to
      introduce a large enough delay between serial_outp and serial_in(up,
      UART_IIR), but not taking forever.  However, the needed delay couldn't be
      safely determined.
      
      At the experimental tests, a delay of 1us solves most of the cases, but
      still hangs sometimes.  Increasing the delay to 5us was better, but still
      doesn't solve.  A very high delay of 50 ms seemed to work every time.
      
      However, poking around with delays and pray for it to be enough doesn't
      seem to be a good approach, even for a quirk.
      
      So, instead of playing with random large arbitrary delays, let's just
      disable UART_BUG_TXEN for all SoL ports.
      
      [akpm@linux-foundation.org: fix warnings]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b6adea33
  14. 08 1月, 2009 1 次提交
  15. 03 1月, 2009 4 次提交
  16. 16 12月, 2008 1 次提交
  17. 12 11月, 2008 1 次提交
  18. 14 10月, 2008 1 次提交
  19. 25 7月, 2008 1 次提交
  20. 21 7月, 2008 2 次提交
  21. 03 6月, 2008 1 次提交
    • A
      serial_core: uart_set_ldisc infrastructure · 64e9159f
      Alan Cox 提交于
      The tty layer provides a callback that is used when the line discipline
      is changed. Some hardware uses this to configure hardware specific
      features such as IrDA mode on serial ports. Unfortunately the serial
      layer does not provide this feature or pass it down to drivers.
      
      Blackfin used to hack around this by rewriting the tty ops, but those are
      now properly shared and const so the hack fails. Instead provide the
      proper operations.
      
      This change plus a follow up from the Blackfin guys is needed to avoid
      blackfin losing features in this release.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      64e9159f
  22. 30 4月, 2008 1 次提交