Re: [PATCH v3] EG20T: Update PCH_UART driver to 2.6.36

From: Dan Carpenter
Date: Mon Nov 15 2010 - 07:41:20 EST


On Mon, Nov 15, 2010 at 09:26:03PM +0900, Tomoya MORINAGA wrote:
> + spin_lock_irqsave(&port->lock, flags);
> +
> + uart_update_timeout(port, termios->c_cflag, baud);
> + rtn = pch_uart_hal_set_line(priv, baud, parity, bits, stb);
> + if (rtn)

You need a spin_unlock_irqrestore(&port->lock, flags); here.

> + return;
> +
> + /* Don't rewrite B0 */
> + if (tty_termios_baud_rate(termios))
> + tty_termios_encode_baud_rate(termios, baud, baud);
> +
> + spin_unlock_irqrestore(&port->lock, flags);
> +}

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/