Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142372
b: refs/heads/master
c: ad3620a
h: refs/heads/master
v: v3
  • Loading branch information
Ken Kawasaki authored and David S. Miller committed Apr 7, 2009
1 parent e564b1c commit 12cf291
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 57579f7629a3d46c307405fbd2ea6bdb650d692f
refs/heads/master: ad3620a072bc1ba93b0146f6f5467ae928b449a6
9 changes: 8 additions & 1 deletion trunk/drivers/net/pcmcia/axnet_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static int axnet_config(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
axnet_dev_t *info = PRIV(dev);
int i, j, last_ret, last_fn;
int i, j, j2, last_ret, last_fn;

DEBUG(0, "axnet_config(0x%p)\n", link);

Expand Down Expand Up @@ -388,6 +388,8 @@ static int axnet_config(struct pcmcia_device *link)

for (i = 0; i < 32; i++) {
j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1);
j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2);
if (j == j2) continue;
if ((j != 0) && (j != 0xffff)) break;
}

Expand All @@ -398,6 +400,8 @@ static int axnet_config(struct pcmcia_device *link)
pcmcia_access_configuration_register(link, &reg);
for (i = 0; i < 32; i++) {
j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1);
j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2);
if (j == j2) continue;
if ((j != 0) && (j != 0xffff)) break;
}
}
Expand Down Expand Up @@ -1767,6 +1771,9 @@ static void AX88190_init(struct net_device *dev, int startp)
ei_local->tx1 = ei_local->tx2 = 0;
ei_local->txing = 0;

if (info->flags & IS_AX88790) /* select Internal PHY */
outb(0x10, e8390_base + AXNET_GPIO);

if (startp)
{
outb_p(0xff, e8390_base + EN0_ISR);
Expand Down

0 comments on commit 12cf291

Please sign in to comment.