From: Roel Kluin Date: Fri, 14 Aug 2009 12:02:34 +0000 (+0200) Subject: tty: icom: bit and/or confusion? X-Git-Tag: 2.1b_release~11401^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1607acaec38319c5e0b48a3586c00e667e920a0d;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git tty: icom: bit and/or confusion? Previously, if any bit other than CMD_SND_BREAK was set, CMD_SND_BREAK was not unset. Signed-off-by: Roel Kluin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/serial/icom.c b/drivers/serial/icom.c index cd1b6a4..060f4e3 100644 --- a/drivers/serial/icom.c +++ b/drivers/serial/icom.c @@ -617,7 +617,7 @@ static void shutdown(struct icom_port *icom_port) * disable break condition */ cmdReg = readb(&icom_port->dram->CmdReg); - if ((cmdReg | CMD_SND_BREAK) == CMD_SND_BREAK) { + if (cmdReg & CMD_SND_BREAK) { writeb(cmdReg & ~CMD_SND_BREAK, &icom_port->dram->CmdReg); } }