Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46589
b: refs/heads/master
c: 45d3ac4
h: refs/heads/master
i:
  46587: 4060630
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Feb 7, 2007
1 parent ba553e7 commit d44dd3c
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 257b346d20cd309a4c5a13b8de5ad2b7c63b590a
refs/heads/master: 45d3ac4ec31ccf9a39065e8576260c6ac2652c83
14 changes: 1 addition & 13 deletions trunk/drivers/net/wan/z85230.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ static void z8530_rtsdtr(struct z8530_channel *c, int set)
static void z8530_rx(struct z8530_channel *c)
{
u8 ch,stat;
spin_lock(c->lock);


while(1)
{
/* FIFO empty ? */
Expand Down Expand Up @@ -390,7 +389,6 @@ static void z8530_rx(struct z8530_channel *c)
*/
write_zsctrl(c, ERR_RES);
write_zsctrl(c, RES_H_IUS);
spin_unlock(c->lock);
}


Expand All @@ -406,7 +404,6 @@ static void z8530_rx(struct z8530_channel *c)

static void z8530_tx(struct z8530_channel *c)
{
spin_lock(c->lock);
while(c->txcount) {
/* FIFO full ? */
if(!(read_zsreg(c, R0)&4))
Expand Down Expand Up @@ -434,7 +431,6 @@ static void z8530_tx(struct z8530_channel *c)

z8530_tx_done(c);
write_zsctrl(c, RES_H_IUS);
spin_unlock(c->lock);
}

/**
Expand All @@ -452,7 +448,6 @@ static void z8530_status(struct z8530_channel *chan)
{
u8 status, altered;

spin_lock(chan->lock);
status=read_zsreg(chan, R0);
altered=chan->status^status;

Expand Down Expand Up @@ -487,7 +482,6 @@ static void z8530_status(struct z8530_channel *chan)
}
write_zsctrl(chan, RES_EXT_INT);
write_zsctrl(chan, RES_H_IUS);
spin_unlock(chan->lock);
}

struct z8530_irqhandler z8530_sync=
Expand All @@ -511,7 +505,6 @@ EXPORT_SYMBOL(z8530_sync);

static void z8530_dma_rx(struct z8530_channel *chan)
{
spin_lock(chan->lock);
if(chan->rxdma_on)
{
/* Special condition check only */
Expand All @@ -534,7 +527,6 @@ static void z8530_dma_rx(struct z8530_channel *chan)
/* DMA is off right now, drain the slow way */
z8530_rx(chan);
}
spin_unlock(chan->lock);
}

/**
Expand All @@ -547,7 +539,6 @@ static void z8530_dma_rx(struct z8530_channel *chan)

static void z8530_dma_tx(struct z8530_channel *chan)
{
spin_lock(chan->lock);
if(!chan->dma_tx)
{
printk(KERN_WARNING "Hey who turned the DMA off?\n");
Expand All @@ -557,7 +548,6 @@ static void z8530_dma_tx(struct z8530_channel *chan)
/* This shouldnt occur in DMA mode */
printk(KERN_ERR "DMA tx - bogus event!\n");
z8530_tx(chan);
spin_unlock(chan->lock);
}

/**
Expand Down Expand Up @@ -596,7 +586,6 @@ static void z8530_dma_status(struct z8530_channel *chan)
}
}

spin_lock(chan->lock);
if(altered&chan->dcdcheck)
{
if(status&chan->dcdcheck)
Expand All @@ -618,7 +607,6 @@ static void z8530_dma_status(struct z8530_channel *chan)

write_zsctrl(chan, RES_EXT_INT);
write_zsctrl(chan, RES_H_IUS);
spin_unlock(chan->lock);
}

struct z8530_irqhandler z8530_dma_sync=
Expand Down

0 comments on commit d44dd3c

Please sign in to comment.