summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/phantom
diff options
context:
space:
mode:
authorMichael Brown2008-07-08 21:59:33 +0200
committerMichael Brown2008-07-08 21:59:33 +0200
commit4f05d2fca7c46d1132fe6d0ddd3edb1137ba1137 (patch)
treef8c0bb627098761fe660e680d487d2bc5e5b5d2e /src/drivers/net/phantom
parent[image] Fail "imgexec"/"boot" if the image to execute is ambiguous (diff)
downloadipxe-4f05d2fca7c46d1132fe6d0ddd3edb1137ba1137.tar.gz
ipxe-4f05d2fca7c46d1132fe6d0ddd3edb1137ba1137.tar.xz
ipxe-4f05d2fca7c46d1132fe6d0ddd3edb1137ba1137.zip
[phantom] Initialise RCVPEG before reading MAC addresses
Diffstat (limited to 'src/drivers/net/phantom')
-rw-r--r--src/drivers/net/phantom/phantom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/net/phantom/phantom.c b/src/drivers/net/phantom/phantom.c
index dc3b9cc4..a9ccd4b6 100644
--- a/src/drivers/net/phantom/phantom.c
+++ b/src/drivers/net/phantom/phantom.c
@@ -1863,6 +1863,10 @@ static int phantom_probe ( struct pci_device *pci,
if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
goto err_init_cmdpeg;
+ /* Initialise the receive firmware */
+ if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
+ goto err_init_rcvpeg;
+
/* Read MAC addresses */
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
phantom_port = netdev_priv ( phantom->netdev[i] );
@@ -1870,10 +1874,6 @@ static int phantom_probe ( struct pci_device *pci,
phantom->netdev[i]->ll_addr );
}
- /* Initialise the receive firmware */
- if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
- goto err_init_rcvpeg;
-
/* Register network devices */
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {