Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14459
b: refs/heads/master
c: 92495c0
h: refs/heads/master
i:
  14457: 45d91db
  14455: 606c230
v: v3
  • Loading branch information
Ryan Bradetich authored and Kyle McMartin committed Nov 17, 2005
1 parent 1344834 commit 85c69b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 08dc2ca61e683e9119ff534dfcd0fd555401fcf7
refs/heads/master: 92495c0ebc99ee00651571cba6939783234f7696
12 changes: 4 additions & 8 deletions trunk/drivers/serial/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ static struct uart_driver mux_driver = {

static struct timer_list mux_timer;

#define UART_PUT_CHAR(p, c) __raw_writel((c), (unsigned long)(p)->membase + IO_DATA_REG_OFFSET)
#define UART_GET_FIFO_CNT(p) __raw_readl((unsigned long)(p)->membase + IO_DCOUNT_REG_OFFSET)
#define UART_PUT_CHAR(p, c) __raw_writel((c), (p)->membase + IO_DATA_REG_OFFSET)
#define UART_GET_FIFO_CNT(p) __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET)
#define GET_MUX_PORTS(iodc_data) ((((iodc_data)[4] & 0xf0) >> 4) * 8) + 8

/**
Expand All @@ -79,10 +79,7 @@ static struct timer_list mux_timer;
*/
static unsigned int mux_tx_empty(struct uart_port *port)
{
unsigned int cnt = __raw_readl((unsigned long)port->membase
+ IO_DCOUNT_REG_OFFSET);

return cnt ? 0 : TIOCSER_TEMT;
return UART_GET_FIFO_CNT(port) ? 0 : TIOCSER_TEMT;
}

/**
Expand Down Expand Up @@ -218,8 +215,7 @@ static void mux_read(struct uart_port *port)
__u32 start_count = port->icount.rx;

while(1) {
data = __raw_readl((unsigned long)port->membase
+ IO_DATA_REG_OFFSET);
data = __raw_readl(port->membase + IO_DATA_REG_OFFSET);

if (MUX_STATUS(data))
continue;
Expand Down

0 comments on commit 85c69b9

Please sign in to comment.