lkml.org 
[lkml]   [2012]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/7] pch_uart: Fix return value issue
    Date
    Currently, occurring line status interrupt,
    returned value is not set in interrupt handler function.
    As a result, 0 can be returned.

    This patch adds setting returned value.

    Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
    ---
    drivers/tty/serial/pch_uart.c | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
    index 020bbf3..6e7f0ac 100644
    --- a/drivers/tty/serial/pch_uart.c
    +++ b/drivers/tty/serial/pch_uart.c
    @@ -39,6 +39,7 @@ enum {
    PCH_UART_HANDLED_RX_ERR_INT_SHIFT,
    PCH_UART_HANDLED_RX_TRG_INT_SHIFT,
    PCH_UART_HANDLED_MS_INT_SHIFT,
    + PCH_UART_HANDLED_LS_INT_SHIFT,
    };

    enum {
    @@ -63,6 +64,8 @@ enum {
    PCH_UART_HANDLED_RX_TRG_INT_SHIFT)<<1))
    #define PCH_UART_HANDLED_MS_INT (1<<((PCH_UART_HANDLED_MS_INT_SHIFT)<<1))

    +#define PCH_UART_HANDLED_LS_INT (1<<((PCH_UART_HANDLED_LS_INT_SHIFT)<<1))
    +
    #define PCH_UART_RBR 0x00
    #define PCH_UART_THR 0x00

    @@ -1062,6 +1065,8 @@ static irqreturn_t pch_uart_interrupt(int irq, void *dev_id)
    UART_LSR_PE | UART_LSR_OE)) {
    pch_uart_err_ir(priv, lsr);
    ret = PCH_UART_HANDLED_RX_ERR_INT;
    + } else {
    + ret = PCH_UART_HANDLED_LS_INT;
    }
    break;
    case PCH_UART_IID_RDR: /* Received Data Ready */
    --
    1.7.7.6


    \
     
     \ /
      Last update: 2012-03-26 07:47    [W:0.022 / U:0.752 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site