icom: bit and/or confusion?
PATCH 1/1 icom: bit and/or confusion?
Previously, if any bit other than CMD_SND_BREAK was set, CMD_SND_BREAK was not unset.
---
I think meant was: If CMD_SND_BREAK is set, unset it. Correct?
// vi drivers/serial/icom.h +137
#define CMD_SND_BREAK 0x04
drivers/serial/icom.c +1 -1
@@ -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); } }
Quoted 15 lines · Roel Kluin
Previously, if any bit other than
CMD_SND_BREAKwas set,CMD_SND_BREAKwas not unset.Signed-off-by Roel Kluin <[email protected]>---
I think meant was: IfCMD_SND_BREAKis set, unset it. Correct?// vi
drivers/serial/icom.h+137
#defineCMD_SND_BREAK0x04drivers/serial/icom.c +0
-0
drivers/serial/icom.c static void shutdown(struct icom_port *icom_port) · line 620
Quoted 5 lines
drivers/serial/icom.c +1
-1@@ -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 ) {
This change is the exact same thing, right? How is the original incorrect here?
thanks,
greg k-h
Quoted 15 lines · Roel Kluin
Previously, if any bit other than
CMD_SND_BREAKwas set,CMD_SND_BREAKwas not unset.Signed-off-by Roel Kluin <[email protected]>---
I think meant was: IfCMD_SND_BREAKis set, unset it. Correct?// vi
drivers/serial/icom.h+137
#defineCMD_SND_BREAK0x04drivers/serial/icom.c +0
-0
drivers/serial/icom.c static void shutdown(struct icom_port *icom_port) · line 620
Quoted 5 lines
drivers/serial/icom.c +1
-1@@ -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 ) {
Nevermind, Alan rightly pointed out that I was completly wrong, I'll go queue this up.
thanks,
greg k-h