Skip to content

Commit

Permalink
[PATCH] synclink.c: add loopback to async mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Fulghum authored and Linus Torvalds committed Sep 9, 2005
1 parent 9661239 commit 7c1fff5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/char/synclink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7c1fff5

Please sign in to comment.