1. 07 5月, 2015 23 次提交
  2. 29 4月, 2015 1 次提交
  3. 28 4月, 2015 6 次提交
    • R
      serial: samsung: fix serial console break · 31c6ba97
      Robert Baldyga 提交于
      This patch fixes problems with serial console break. When function
      s3c64xx_serial_startup() was started while serial console has been working,
      it caused lose of characters written to TX FIFO. This effect was particularly
      observable with systemd, which closes serial port every time when it's
      not currently needed, hence function s3c64xx_serial_startup() is called
      quite often there. To fix this problem we avoid resetting TX FIFO if port is
      used as serial console.
      
      Example of broken console log:
      
      [ 1086.7         Expecting device dev-ttySAC1.device...
      [ 1086.[  OK  ] Reached target Paths.
      [ 1086.756416] s[  OK  ] Reached target Swap.
      [ 1086.776413] systemd[1]: Reached target Swap.
      [ 1086.776642] systemd[1]: Starting Root Slice.
      [    5.53403[  OK  ] Created slice Root Slice.
      [    5.548433] systemd[1]: Create[  OK  ] Created slice User and Session Slice.
      [    5.568414] sys[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
      [    5.588388] s[  OK  ] Listening on Delayed Shutdown Socket.
      [    5.608376] sy[  OK  ] Listening on Journal Socket (/dev/log).
      [    5.628361] [  OK  ] Listening on udev Kernel Socket.
      [    5.648357] s[  OK  ] Listening on udev Control Socket.
      [    5.668353] s[  OK  ] Listening on Journal Socket.
      [    5.688366] systemd[1]: Listeni[  OK  ] Created slice System Slice.
      [    5.708393]          Mounting Temporary Directory...
      [ 7139.067436]          Starting prepare device daemon...
      [ 7139.091726] sy         Starting Generate environment from /etc/profile.d...
      [    5.792867] system         Starting Create Static Device Nodes in /dev...
      [ 7848.718         Mounting Debug File System...
      [ 7848.7384         Mounting Configuration File System...
      [    5.852         Starting Apply Kernel Variables...
      [    5.8720         Starting Setup Virtual Console...
      [ 7848.798         Starting udev Coldplug all Devices...
      [ 7848.817         Starting Journal Service...
      [  OK  ] Started Journal Service.
      [ 7848.854222] s[  OK  ] Reached target Slices.
               Starting Remount Root and Kernel File Systems...
      [  OK  ] Mounted Configuration File System.
      Reported-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
      Reviewed-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      31c6ba97
    • L
      tty/serial: at91: maxburst was missing for dma transfers · a8d4e016
      Ludovic Desroches 提交于
      Maxburst was not set when doing the dma slave configuration. This value
      is checked by the recently introduced xdmac. It causes an error when
      doing the slave configuration and so prevents from using dma.
      Signed-off-by: NLudovic Desroches <ludovic.desroches@atmel.com>
      Cc: <stable@vger.kernel.org> # 3.12 and later
      Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a8d4e016
    • M
      serial: of-serial: Remove device_type = "serial" registration · 6befa9d8
      Michal Simek 提交于
      Do not probe all serial drivers by of_serial.c which are using
      device_type = "serial"; property. Only drivers which have valid
      compatible strings listed in the driver should be probed.
      
      When PORT_UNKNOWN is setup probe will fail anyway.
      
      Arnd quotation about driver historical background:
      "when I wrote that driver initially, the idea was that it would
      get used as a stub to hook up all other serial drivers but after
      that, the common code learned to create platform devices from DT"
      
      This patch fix the problem with on the system with xilinx_uartps and
      16550a where of_serial failed to register for xilinx_uartps and because
      of irq_dispose_mapping() removed irq_desc. Then when xilinx_uartps was asking
      for irq with request_irq() EINVAL is returned.
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      CC: <stable@vger.kernel.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6befa9d8
    • M
      serial: xilinx: Use platform_get_irq to get irq description structure · 5c90c07b
      Michal Simek 提交于
      For systems with CONFIG_SERIAL_OF_PLATFORM=y and device_type =
      "serial"; property in DT of_serial.c driver maps and unmaps IRQ (because
      driver probe fails). Then a driver is called but irq mapping is not
      created that's why driver is failing again in again on request_irq().
      Based on this use platform_get_irq() instead of platform_get_resource()
      which is doing irq_desc allocation and driver itself can request IRQ.
      
      Fix both xilinx serial drivers in the tree.
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      CC: <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5c90c07b
    • P
      serial: core: Fix kernel-doc build warnings · 10afbe34
      Peter Hurley 提交于
      Fix uart_console_write() kernel-doc build warnings.
      
      Warning(drivers/tty/serial/serial_core.c:1778): No description found for parameter 'putchar'
      Warning(drivers/tty/serial/serial_core.c:1778): Excess function parameter 'write' description in 'uart_console_write'
      
      Fixes: 1cfe42b7 ("serial: core: Fix kernel doc for uart_console_write()")
      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>
      10afbe34
    • F
      tty: Re-add external interface for tty_set_termios() · b00f5c2d
      Frederic Danis 提交于
      This is needed by Bluetooth hci_uart module to be able to change speed
      of Bluetooth controller and local UART.
      Signed-off-by: NFrederic Danis <frederic.danis@linux.intel.com>
      Reviewed-by: NPeter Hurley <peter@hurleysoftware.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b00f5c2d
  4. 15 4月, 2015 2 次提交
  5. 10 4月, 2015 5 次提交
  6. 31 3月, 2015 3 次提交
    • J
      ttyFDC: Implement KGDB IO operations. · c2d7ef51
      James Hogan 提交于
      Implement KGDB IO operations for MIPS Fast Debug Channel (FDC). This can
      be enabled via Kconfig, which also allows the channel number to be
      chosen.
      
      The magic sysrq hack is implemented in the TTY driver, detecting just ^C
      for the KGDB channel, and ^O followed by a letter for the FDC console
      channel.
      
      The KGDB operations are reasonably efficient thanks to the flush
      callback, with a 4 byte buffer being used in both directions to allow up
      to 4 bytes to be encoded per FDC word. Reading of data for KGDB will
      discard any data received on other channels, which clearly isn't ideal,
      but given that there is a single FIFO shared between channels we can't
      do much better.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: linux-mips@linux-mips.org
      Cc: kgdb-bugreport@lists.sourceforge.net
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9147/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c2d7ef51
    • J
      MIPS, ttyFDC: Add early FDC console support · e934945d
      James Hogan 提交于
      Add support for early console of MIPS Fast Debug Channel (FDC) on
      channel 1 with a call very early from the MIPS setup_arch().
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9145/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e934945d
    • J
      TTY: Add MIPS EJTAG Fast Debug Channel TTY driver · 4cebec60
      James Hogan 提交于
      Add TTY driver and consoles for the MIPS EJTAG Fast Debug Channel (FDC),
      which is found on the per-CPU MIPS Common Device Mapped Memory (CDMM)
      bus.
      
      The FDC is a per-CPU device which is used to communicate with an EJTAG
      probe. RX and TX FIFOs exist, containing 32-bits of data and 4-bit
      channel numbers. 16 general data streams are implemented on this for TTY
      and console use by encoding up to 4 bytes on each 32-bit FDC word.
      
      The TTY devices are named e.g. /dev/ttyFDC3c2 for channel 2 of the FDC
      attached to logical CPU 3.
      
      These can be used for getting the kernel log, a login prompt, or as a
      GDB remote transport, all over EJTAG and without needing a serial port.
      
      It can have an interrupt to notify of when incoming data is available in
      the RX FIFO or when the TX FIFO is no longer full. The detection of this
      interrupt occurs in architecture / platform code, but it may be shared
      with the timer and/or performance counter interrupt.
      
      Due to the per-CPU nature of the hardware, all outgoing TTY data is
      written out from a kthread which is pinned to the appropriate CPU.
      
      The console is not bound to a specific CPU, so output will appear on the
      chosen channel on whichever CPU the code is executing on. Enable with
      e.g. console=fdc1 in kernel arguments. /dev/console is bound to the same
      channel on the boot CPU's FDC if it exists.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9146/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      4cebec60