Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283581
b: refs/heads/master
c: dc7e3ef
h: refs/heads/master
i:
  283579: abf11f8
v: v3
  • Loading branch information
Paul Mundt committed Nov 24, 2011
1 parent ec098cb commit c967164
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: cdf7c42fece7c641fcb85cfbf190fdc2a95d19ac
refs/heads/master: dc7e3ef7dade7041fb1809f2a5403efac655a791
15 changes: 14 additions & 1 deletion trunk/drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,10 +1113,23 @@ static unsigned int sci_tx_empty(struct uart_port *port)
* handled via the ->init_pins() op, which is a bit of a one-way street,
* lacking any ability to defer pin control -- this will later be
* converted over to the GPIO framework).
*
* Other modes (such as loopback) are supported generically on certain
* port types, but not others. For these it's sufficient to test for the
* existence of the support register and simply ignore the port type.
*/
static void sci_set_mctrl(struct uart_port *port, unsigned int mctrl)
{
/* Nothing to do here. */
if (mctrl & TIOCM_LOOP) {
struct plat_sci_reg *reg;

/*
* Standard loopback mode for SCFCR ports.
*/
reg = sci_getreg(port, SCFCR);
if (reg->size)
sci_out(port, SCFCR, sci_in(port, SCFCR) | 1);
}
}

static unsigned int sci_get_mctrl(struct uart_port *port)
Expand Down

0 comments on commit c967164

Please sign in to comment.