Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235543
b: refs/heads/master
c: afaae08
h: refs/heads/master
i:
  235541: ca10828
  235539: 5cb4682
  235535: 5348a26
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent 9271ed1 commit 2693948
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d075b199b9a66ad90296f898f1f15c0ae1511b8
refs/heads/master: afaae08442d86402f9e0b63475c02a651c6f1387
26 changes: 13 additions & 13 deletions trunk/drivers/bluetooth/hci_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,32 @@ struct ath_struct {

static int ath_wakeup_ar3k(struct tty_struct *tty)
{
struct termios settings;
int status = tty->driver->ops->tiocmget(tty, NULL);
struct ktermios ktermios;
int status = tty->driver->ops->tiocmget(tty);

if (status & TIOCM_CTS)
return status;

/* Disable Automatic RTSCTS */
n_tty_ioctl_helper(tty, NULL, TCGETS, (unsigned long)&settings);
settings.c_cflag &= ~CRTSCTS;
n_tty_ioctl_helper(tty, NULL, TCSETS, (unsigned long)&settings);
memcpy(&ktermios, tty->termios, sizeof(ktermios));
ktermios.c_cflag &= ~CRTSCTS;
tty_set_termios(tty, &ktermios);

/* Clear RTS first */
status = tty->driver->ops->tiocmget(tty, NULL);
tty->driver->ops->tiocmset(tty, NULL, 0x00, TIOCM_RTS);
status = tty->driver->ops->tiocmget(tty);
tty->driver->ops->tiocmset(tty, 0x00, TIOCM_RTS);
mdelay(20);

/* Set RTS, wake up board */
status = tty->driver->ops->tiocmget(tty, NULL);
tty->driver->ops->tiocmset(tty, NULL, TIOCM_RTS, 0x00);
status = tty->driver->ops->tiocmget(tty);
tty->driver->ops->tiocmset(tty, TIOCM_RTS, 0x00);
mdelay(20);

status = tty->driver->ops->tiocmget(tty, NULL);
status = tty->driver->ops->tiocmget(tty);

n_tty_ioctl_helper(tty, NULL, TCGETS, (unsigned long)&settings);
settings.c_cflag |= CRTSCTS;
n_tty_ioctl_helper(tty, NULL, TCSETS, (unsigned long)&settings);
/* Disable Automatic RTSCTS */
ktermios.c_cflag |= CRTSCTS;
status = tty_set_termios(tty, &ktermios);

return status;
}
Expand Down

0 comments on commit 2693948

Please sign in to comment.