|
@@ -747,7 +747,14 @@ static int efx_ef10_probe(struct efx_nic *efx)
|
|
|
if (rc && rc != -EPERM)
|
|
|
goto fail5;
|
|
|
|
|
|
- efx_ptp_probe(efx, NULL);
|
|
|
+ rc = efx_ptp_probe(efx, NULL);
|
|
|
+ /* Failure to probe PTP is not fatal.
|
|
|
+ * In the case of EPERM, efx_ptp_probe will print its own message (in
|
|
|
+ * efx_ptp_get_attributes()), so we don't need to.
|
|
|
+ */
|
|
|
+ if (rc && rc != -EPERM)
|
|
|
+ netif_warn(efx, drv, efx->net_dev,
|
|
|
+ "Failed to probe PTP, rc=%d\n", rc);
|
|
|
|
|
|
#ifdef CONFIG_SFC_SRIOV
|
|
|
if ((efx->pci_dev->physfn) && (!efx->pci_dev->is_physfn)) {
|