devices/r8169-3.4-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2534 a0e787e196cd
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  6402 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  6402 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  6403 
  6403 
  6404 	if (pci_dev_run_wake(pdev))
  6404 	if (pci_dev_run_wake(pdev))
  6405 		pm_runtime_put_noidle(&pdev->dev);
  6405 		pm_runtime_put_noidle(&pdev->dev);
  6406 
  6406 
  6407 	netif_carrier_off(dev);
  6407 	if (tp->ecdev) {
  6408 
  6408 		rc = ecdev_open(tp->ecdev);
  6409 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  6409 		if (rc) {
  6410 		ecdev_withdraw(tp->ecdev);
  6410 			ecdev_withdraw(tp->ecdev);
  6411 		goto err_out_msi_4;
  6411 			goto err_out_msi_4;
       
  6412 		}
       
  6413 	}
       
  6414 	else {
       
  6415 		netif_carrier_off(dev);
  6412 	}
  6416 	}
  6413 
  6417 
  6414 out:
  6418 out:
  6415 	return rc;
  6419 	return rc;
  6416 
  6420