tree 6bfa317c409fda8007a198e01312580f39ae4ae4
parent 9661239f7f698ba3a79db5e8ab5bb2f4090663d9
author Paul Fulghum <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:02:14 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:57:34 -0700

[PATCH] synclink.c: add loopback to async mode

Add internal loopback support for asynchronous mode operation.

Signed-off-by: Paul Fulghum <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/char/synclink.c |    5 +++++
 1 files changed, 5 insertions(+)

diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c
--- a/drivers/char/synclink.c
+++ b/drivers/char/synclink.c
@@ -6151,6 +6151,11 @@ static void usc_set_async_mode( struct m
                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()
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to