lkml.org 
[lkml]   [2008]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/8] Blackfin Serial Driver: Fix bug - Don't call tx_stop in tx_transfer.
    Date
    From: Sonic Zhang <sonic.zhang@analog.com>

    Disable irq and return immediately.

    Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
    Signed-off-by: Bryan Wu <cooloney@kernel.org>
    ---
    drivers/serial/bfin_5xx.c | 6 +++++-
    1 files changed, 5 insertions(+), 1 deletions(-)

    diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
    index 31fc8e1..afeff9f 100644
    --- a/drivers/serial/bfin_5xx.c
    +++ b/drivers/serial/bfin_5xx.c
    @@ -301,7 +301,11 @@ static void bfin_serial_tx_chars(struct bfin_serial_port *uart)
    bfin_serial_mctrl_check(uart);

    if (uart_circ_empty(xmit) || uart_tx_stopped(&uart->port)) {
    - bfin_serial_stop_tx(&uart->port);
    +#ifdef CONFIG_BF54x
    + /* Clear TFI bit */
    + UART_PUT_LSR(uart, TFI);
    +#endif
    + UART_CLEAR_IER(uart, ETBEI);
    return;
    }

    --
    1.5.6


    \
     
     \ /
      Last update: 2008-07-27 08:09    [W:0.020 / U:29.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site