Skip to content
  1. Jan 08, 2014
  2. Oct 17, 2013
  3. Aug 01, 2013
  4. Jul 29, 2013
  5. Jul 26, 2013
  6. Jul 24, 2013
  7. Jun 24, 2013
  8. Mar 15, 2013
  9. Jan 16, 2013
    • Jiri Slaby's avatar
      TTY: switch tty_flip_buffer_push · 2e124b4a
      Jiri Slaby authored
      
      
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      Now, the one where most of tty_port_tty_get gets removed:
      tty_flip_buffer_push.
      
      IOW we also closed all the races in drivers not using tty_port_tty_get
      at all yet.
      
      Also we move tty_flip_buffer_push declaration from include/linux/tty.h
      to include/linux/tty_flip.h to all others while we are changing it
      anyway.
      
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2e124b4a
    • Jiri Slaby's avatar
      TTY: switch tty_insert_flip_string · 05c7cd39
      Jiri Slaby authored
      
      
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      tty_insert_flip_string this time.
      
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      05c7cd39
  10. Nov 21, 2012
  11. Nov 16, 2012
  12. Nov 06, 2012
  13. Oct 13, 2012
  14. Apr 09, 2012
    • Siftar, Gabe's avatar
      tty/serial: atmel_serial: fix RS485 half-duplex problem · 57c36868
      Siftar, Gabe authored
      
      
      On our custom board, we are using RS485 in half-duplex mode on an AT91SAM9G45.
      SER_RS485_RX_DURING_TX is not set as we do not want to receive the data we
      transmit (our transceiver will receive transmitted data).
      Although the current driver attempts to disable and enable the receiver at the
      appropriate points, incoming data is still loaded into the receive register
      causing our code to receive the very last byte that was sent once the receiver
      is enabled.
      
      I ran this by Atmel support and they wrote: "The issue comes from the fact
      that you disable the PDC/DMA Reception and not the USART Reception channel. In
      your case, the[n] you will still receive data into the USART_RHR register, and
      maybe you [h]ave the overrun flag set. So please disable the USART reception
      channel."
      
      The following patch should force the driver to enable/disable the receiver via
      RXEN/RXDIS fields of the USART control register. It fixed the issue I was
      having.
      
      Signed-off-by: default avatarGabe Siftar <gabe.siftar@getingeusa.com>
      [nicolas.ferre@atmel.com: slightly modify commit message]
      Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      57c36868
  15. Feb 23, 2012
  16. Jan 05, 2012
  17. Nov 15, 2011
  18. Oct 19, 2011
  19. Oct 18, 2011
  20. Aug 24, 2011
  21. Aug 22, 2011
  22. Aug 08, 2011
  23. Jun 25, 2011
    • Jean-Christophe PLAGNIOL-VILLARD's avatar
      atmel_serial: fix internal port num · deba1a0d
      Jean-Christophe PLAGNIOL-VILLARD authored
      
      
      the atmel_ports is link to the console number and not the device id
      
      this was not detected on at91 as we always register the dbgu on the console
      as ttyS0
      
      tested on at91sam9263 by setting the dbgu as ttyS1 and use as console
      
      diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c
      index 70e5646..9b8a14f 100644
      - a/arch/arm/mach-at91/board-sam9263ek.c
      + b/arch/arm/mach-at91/board-sam9263ek.c
      @@ -58,14 +58,14 @@ static void __init ek_init_early(void)
              /* Initialize processor: 16.367 MHz crystal */
              at91_initialize(16367660);
      
      -       /* DBGU on ttyS0. (Rx & Tx only) */
      -       at91_register_uart(0, 0, 0);
      +       /* DBGU on ttyS1. (Rx & Tx only) */
      +       at91_register_uart(0, 1, 0);
      
      -       /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
      -       at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
      +       /* USART0 on ttyS0. (Rx, Tx, RTS, CTS) */
      +       at91_register_uart(AT91SAM9263_ID_US0, 0, ATMEL_UART_CTS | ATMEL_UART_RTS);
      
      -       /* set serial console to ttyS0 (ie, DBGU) */
      -       at91_set_serial_console(0);
      +       /* set serial console to ttyS1 (ie, DBGU) */
      +       at91_set_serial_console(1);
       }
      
       /*
      
      Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
      deba1a0d
  24. May 25, 2011
Loading