Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18785
b: refs/heads/master
c: 0d3ea16
h: refs/heads/master
i:
  18783: 72a6b55
v: v3
  • Loading branch information
Arnd Bergmann authored and Jeff Garzik committed Jan 17, 2006
1 parent b751a0a commit 88e88e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: c2e5b352fcefb644959a0c8b1bb2e297f0d4ac3d
refs/heads/master: 0d3ea1666f1894a874681fe33e2cb7fee41a0c73
12 changes: 8 additions & 4 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ spider_net_setup_phy(struct spider_net_card *card)
* spider_net_download_firmware loads the firmware opened by
* spider_net_init_firmware into the adapter.
*/
static void
static int
spider_net_download_firmware(struct spider_net_card *card,
const struct firmware *firmware)
{
Expand All @@ -1857,8 +1857,13 @@ spider_net_download_firmware(struct spider_net_card *card,
}
}

if (spider_net_read_reg(card, SPIDER_NET_GSINIT))
return -EIO;

spider_net_write_reg(card, SPIDER_NET_GSINIT,
SPIDER_NET_RUN_SEQ_VALUE);

return 0;
}

/**
Expand Down Expand Up @@ -1909,9 +1914,8 @@ spider_net_init_firmware(struct spider_net_card *card)
goto out;
}

spider_net_download_firmware(card, firmware);

err = 0;
if (!spider_net_download_firmware(card, firmware))
err = 0;
out:
release_firmware(firmware);

Expand Down

0 comments on commit 88e88e7

Please sign in to comment.