mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
60479ed594
commit
1607acaec3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue