projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9661239
)
[PATCH] synclink.c: add loopback to async mode
author
Paul Fulghum
<paulkf@microgate.com>
Fri, 9 Sep 2005 20:02:14 +0000
(13:02 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:34 +0000
(13:57 -0700)
Add internal loopback support for asynchronous mode operation.
Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/synclink.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/synclink.c
b/drivers/char/synclink.c
index 26b421b74bb61246b8a7b5504b8cc8fc55223ee8..ea2d54be4843e07c17efc83ebf14a6677e599a5d 100644
(file)
--- a/
drivers/char/synclink.c
+++ b/
drivers/char/synclink.c
@@
-6151,6
+6151,11
@@
static void usc_set_async_mode( struct mgsl_struct *info )
usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12));
}
+ if (info->params.loopback) {
+ info->loopback_bits = 0x300;
+ outw(0x0300, info->io_base + CCAR);
+ }
+
} /* end of usc_set_async_mode() */
/* usc_loopback_frame()