瀏覽代碼

[phantom] Initialise RCVPEG before reading MAC addresses

tags/v0.9.4
Michael Brown 16 年之前
父節點
當前提交
4f05d2fca7
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      src/drivers/net/phantom/phantom.c

+ 4
- 4
src/drivers/net/phantom/phantom.c 查看文件

@@ -1863,6 +1863,10 @@ static int phantom_probe ( struct pci_device *pci,
1863 1863
 	if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
1864 1864
 		goto err_init_cmdpeg;
1865 1865
 
1866
+	/* Initialise the receive firmware */
1867
+	if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
1868
+		goto err_init_rcvpeg;
1869
+
1866 1870
 	/* Read MAC addresses */
1867 1871
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1868 1872
 		phantom_port = netdev_priv ( phantom->netdev[i] );
@@ -1870,10 +1874,6 @@ static int phantom_probe ( struct pci_device *pci,
1870 1874
 				      phantom->netdev[i]->ll_addr );
1871 1875
 	}
1872 1876
 
1873
-	/* Initialise the receive firmware */
1874
-	if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
1875
-		goto err_init_rcvpeg;
1876
-
1877 1877
 	/* Register network devices */
1878 1878
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1879 1879
 		if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {

Loading…
取消
儲存