Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179570
b: refs/heads/master
c: 02ab851
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jan 15, 2010
1 parent 88ec4a3 commit ce83f5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46759a7c132648d79121518d2f7c34edc3f0cf58
refs/heads/master: 02ab851324dc7e2fc75787f7fae71187092be7ed
11 changes: 11 additions & 0 deletions trunk/drivers/serial/pmac_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,17 @@ static void pmz_transmit_chars(struct uart_pmac_port *uap)
goto ack_tx_int;
}

/* Under some circumstances, we see interrupts reported for
* a closed channel. The interrupt mask in R1 is clear, but
* R3 still signals the interrupts and we see them when taking
* an interrupt for the other channel (this could be a qemu
* bug but since the ESCC doc doesn't specify precsiely whether
* R3 interrup status bits are masked by R1 interrupt enable
* bits, better safe than sorry). --BenH.
*/
if (!ZS_IS_OPEN(uap))
goto ack_tx_int;

if (uap->port.x_char) {
uap->flags |= PMACZILOG_FLAG_TX_ACTIVE;
write_zsdata(uap, uap->port.x_char);
Expand Down

0 comments on commit ce83f5c

Please sign in to comment.