Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/tty/serial/atmel_serial.c

    r31826 r31885  
    811811        if (!uart_circ_empty(xmit))
    812812                tasklet_schedule(&atmel_port->tasklet);
     813        else if ((port->rs485.flags & SER_RS485_ENABLED) &&
     814                 !(port->rs485.flags & SER_RS485_RX_DURING_TX)) {
     815                /* DMA done, stop TX, start RX for RS485 */
     816                atmel_start_rx(port);
     817        }
    813818
    814819        spin_unlock_irqrestore(&port->lock, flags);
     
    913918                desc->callback_param = atmel_port;
    914919                atmel_port->cookie_tx = dmaengine_submit(desc);
    915 
    916         } else {
    917                 if (port->rs485.flags & SER_RS485_ENABLED) {
    918                         /* DMA done, stop TX, start RX for RS485 */
    919                         atmel_start_rx(port);
    920                 }
    921920        }
    922921
Note: See TracChangeset for help on using the changeset viewer.