devices/r8169-3.2-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2405 214be3e0640e
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  4194 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  4194 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  4195 
  4195 
  4196 	if (pci_dev_run_wake(pdev))
  4196 	if (pci_dev_run_wake(pdev))
  4197 		pm_runtime_put_noidle(&pdev->dev);
  4197 		pm_runtime_put_noidle(&pdev->dev);
  4198 
  4198 
  4199 	netif_carrier_off(dev);
  4199 	if (tp->ecdev) {
  4200 
  4200 		rc = ecdev_open(tp->ecdev);
  4201 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  4201 		if (rc) {
  4202 		ecdev_withdraw(tp->ecdev);
  4202 			ecdev_withdraw(tp->ecdev);
  4203 		goto err_out_msi_4;
  4203 			goto err_out_msi_4;
       
  4204 		}
       
  4205 	}
       
  4206 	else {
       
  4207 		netif_carrier_off(dev);
  4204 	}
  4208 	}
  4205 
  4209 
  4206 out:
  4210 out:
  4207 	return rc;
  4211 	return rc;
  4208 
  4212