Browse Source

[phantom] Initialise RCVPEG before reading MAC addresses

tags/v0.9.4
Michael Brown 16 years ago
parent
commit
4f05d2fca7
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/drivers/net/phantom/phantom.c

+ 4
- 4
src/drivers/net/phantom/phantom.c View File

1863
 	if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
1863
 	if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
1864
 		goto err_init_cmdpeg;
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
 	/* Read MAC addresses */
1870
 	/* Read MAC addresses */
1867
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1871
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1868
 		phantom_port = netdev_priv ( phantom->netdev[i] );
1872
 		phantom_port = netdev_priv ( phantom->netdev[i] );
1870
 				      phantom->netdev[i]->ll_addr );
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
 	/* Register network devices */
1877
 	/* Register network devices */
1878
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1878
 	for ( i = 0 ; i < phantom->num_ports ; i++ ) {
1879
 		if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {
1879
 		if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {

Loading…
Cancel
Save