OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
374b5a3
)
sh-sci: 8bit register fix.
author
Yoshinori Sato
<ysato@users.sourceforge.jp>
Thu, 26 Dec 2019 09:22:22 +0000
(18:22 +0900)
committer
Yoshinori Sato
<ysato@users.sourceforge.jp>
Wed, 30 Mar 2022 09:55:01 +0000
(18:55 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
drivers/tty/serial/sh-sci.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sh-sci.c
b/drivers/tty/serial/sh-sci.c
index
0f9b8bd
..
3029d5f
100644
(file)
--- a/
drivers/tty/serial/sh-sci.c
+++ b/
drivers/tty/serial/sh-sci.c
@@
-2931,10
+2931,7
@@
static int sci_init_single(struct platform_device *dev,
port->fifosize = sci_port->params->fifosize;
if (port->type == PORT_SCI) {
- if (sci_port->reg_size >= 0x20)
- port->regshift = 2;
- else
- port->regshift = 1;
+ port->regshift = sci_port->reg_size >> 4;
}
/*