projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ae2a8
)
serial: imx: bit &/| confusion
author
Roel Kluin
<
[email protected]
>
Wed, 9 Dec 2009 20:31:36 +0000
(12:31 -0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 20 Jan 2010 23:03:30 +0000
(15:03 -0800)
Since UCR1_UARTEN is defined 1, the port was always treated as enabled.
Signed-off-by: Roel Kluin <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Acked-by: Oskar Schirmer <
[email protected]
>
Cc: Sascha Hauer <
[email protected]
>
Cc: Fabian Godehardt <
[email protected]
>
Cc: Daniel Glöckner <
[email protected]
>
Cc: Russell King <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/serial/imx.c
patch
|
blob
|
history
diff --git
a/drivers/serial/imx.c
b/drivers/serial/imx.c
index 18130f11238e6025b16682c9a00cca218727e370..60d665a17a885b280cd98b289dd783a58d9d4ac7 100644
(file)
--- a/
drivers/serial/imx.c
+++ b/
drivers/serial/imx.c
@@
-1088,7
+1088,7
@@
imx_console_get_options(struct imx_port *sport, int *baud,
int *parity, int *bits)
{
- if (
readl(sport->port.membase + UCR1) | UCR1_UARTEN
) {
+ if (
readl(sport->port.membase + UCR1) & UCR1_UARTEN
) {
/* ok, the port was enabled */
unsigned int ucr2, ubir,ubmr, uartclk;
unsigned int baud_raw;