Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122899
b: refs/heads/master
c: e4c3c13
h: refs/heads/master
i:
  122897: 83e5cf4
  122895: 4996070
v: v3
  • Loading branch information
Hannes Eder authored and David S. Miller committed Dec 26, 2008
1 parent 50f5103 commit defba0d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 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: 2705d4f87c068552f45e5d6feaa5c468a312f761
refs/heads/master: e4c3c13cb4c4985cb62cf28677fc0ace69a8d69f
19 changes: 10 additions & 9 deletions trunk/drivers/net/atp.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,21 +802,22 @@ static void net_rx(struct net_device *dev)

static void read_block(long ioaddr, int length, unsigned char *p, int data_mode)
{

if (data_mode <= 3) { /* Mode 0 or 1 */
outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL);
outb(length == 8 ? RdAddr | HNib | MAR : RdAddr | MAR,
ioaddr + PAR_DATA);
if (data_mode <= 1) { /* Mode 0 or 1 */
do *p++ = read_byte_mode0(ioaddr); while (--length > 0);
} else /* Mode 2 or 3 */
do *p++ = read_byte_mode2(ioaddr); while (--length > 0);
} else if (data_mode <= 5)
do *p++ = read_byte_mode4(ioaddr); while (--length > 0);
else
do *p++ = read_byte_mode6(ioaddr); while (--length > 0);
do { *p++ = read_byte_mode0(ioaddr); } while (--length > 0);
} else { /* Mode 2 or 3 */
do { *p++ = read_byte_mode2(ioaddr); } while (--length > 0);
}
} else if (data_mode <= 5) {
do { *p++ = read_byte_mode4(ioaddr); } while (--length > 0);
} else {
do { *p++ = read_byte_mode6(ioaddr); } while (--length > 0);
}

outb(EOC+HNib+MAR, ioaddr + PAR_DATA);
outb(EOC+HNib+MAR, ioaddr + PAR_DATA);
outb(Ctrl_SelData, ioaddr + PAR_CONTROL);
}

Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/net/plip.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,14 +638,14 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl,

case PLIP_PK_DATA:
lbuf = rcv->skb->data;
do
do {
if (plip_receive(nibble_timeout, dev,
&rcv->nibble, &lbuf[rcv->byte]))
return TIMEOUT;
while (++rcv->byte < rcv->length.h);
do
} while (++rcv->byte < rcv->length.h);
do {
rcv->checksum += lbuf[--rcv->byte];
while (rcv->byte);
} while (rcv->byte);
rcv->state = PLIP_PK_CHECKSUM;

case PLIP_PK_CHECKSUM:
Expand Down Expand Up @@ -816,14 +816,14 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
snd->checksum = 0;

case PLIP_PK_DATA:
do
do {
if (plip_send(nibble_timeout, dev,
&snd->nibble, lbuf[snd->byte]))
return TIMEOUT;
while (++snd->byte < snd->length.h);
do
} while (++snd->byte < snd->length.h);
do {
snd->checksum += lbuf[--snd->byte];
while (snd->byte);
} while (snd->byte);
snd->state = PLIP_PK_CHECKSUM;

case PLIP_PK_CHECKSUM:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/starfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,9 +880,9 @@ static int mdio_read(struct net_device *dev, int phy_id, int location)
void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2);
int result, boguscnt=1000;
/* ??? Should we add a busy-wait here? */
do
do {
result = readl(mdio_addr);
while ((result & 0xC0000000) != 0x80000000 && --boguscnt > 0);
} while ((result & 0xC0000000) != 0x80000000 && --boguscnt > 0);
if (boguscnt == 0)
return 0;
if ((result & 0xffff) == 0xffff)
Expand Down

0 comments on commit defba0d

Please sign in to comment.