projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60479ed
)
tty: icom: bit and/or confusion?
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 14 Aug 2009 12:02:34 +0000
(14:02 +0200)
committer
Live-CD User
<linux@linux.site>
Sat, 19 Sep 2009 20:13:11 +0000
(13:13 -0700)
Previously, if any bit other than CMD_SND_BREAK was set, CMD_SND_BREAK
was not unset.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/icom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/icom.c
b/drivers/serial/icom.c
index cd1b6a45bb8241b3cbdadc0f03021dc634adace4..060f4e3d54c532f7d210996c44dc3da374fac553 100644
(file)
--- 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);
}
}