1. 07 9月, 2012 14 次提交
  2. 06 9月, 2012 22 次提交
  3. 17 8月, 2012 4 次提交
    • J
      pmac_zilog,kdb: Fix console poll hook to return instead of loop · 38f8eefc
      Jason Wessel 提交于
      kdb <-> kgdb transitioning does not work properly with this UART
      driver because the get character routine loops indefinitely as opposed
      to returning NO_POLL_CHAR per the expectation of the KDB I/O driver
      API.
      
      The symptom is a kernel hang when trying to switch debug modes.
      
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      38f8eefc
    • H
      serial: mxs-auart: fix the wrong RTS hardware flow control · 00592021
      Huang Shijie 提交于
      Without checking if the auart supports the hardware flow control or not,
      the old mxs_auart_set_mctrl() asserted the RTS pin blindly.
      
      This will causes the auart receives wrong data in the following case:
         The far-end has already started the write operation, and wait for
      the auart asserts the RTS pin. Then the auart starts the read operation,
      but mxs_auart_set_mctrl() may be called before we set the RTSCTS in the
      mxs_auart_settermios(). So the RTS pin is asserted in a wrong situation,
      and we get the wrong data in the end.
      
      This bug has been catched when I connect the mx23(DTE) to the mx53(DCE).
      
      This patch also replaces the AUART_CTRL2_RTS with AUART_CTRL2_RTSEN.
      We should use the real the hardware flow control, not the software-controled
      hardware flow control.
      Signed-off-by: NHuang Shijie <b32955@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      00592021
    • A
      serial: New serial driver MAX310X · f6544418
      Alexander Shiyan 提交于
      This driver is a replacement for a MAX3107 driver with a lot of
      improvements and new features.
      The main differences from the old version:
      - Using the regmap.
      - Using devm_XXX-related functions.
      - The use of threaded IRQ with IRQF_ONESHOT flag allows the driver to
        the hardware that supports only level IRQ.
      - Improved error handling of serial port, improved FIFO handling,
        improved hardware & software flow control.
      - Advanced flags allows turn on RS-485 mode (Auto direction control).
      - Ability to load multiple instances of drivers.
      - Added support for MAX3108.
      - GPIO support.
      - Driver is quite ready for adding I2C support and support other ICs
        with compatible registers set (MAX3109, MAX14830).
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f6544418
    • N
      OMAP/serial: Add support for driving a GPIO as DTR. · 9574f36f
      NeilBrown 提交于
      OMAP hardware doesn't provide a phyisical DTR line, but
      some configurations may need a DTR line which tracks whether
      the device is open or not.
      
      So allow a gpio to be configured as the DTR line.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9574f36f