aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r--drivers/net/ethernet/sfc/efx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index 4f86d0cd516a..d858f310b2b2 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -106,8 +106,8 @@ static struct workqueue_struct *reset_workqueue;
106 * 106 *
107 * This is only used in MSI-X interrupt mode 107 * This is only used in MSI-X interrupt mode
108 */ 108 */
109static unsigned int separate_tx_channels; 109static bool separate_tx_channels;
110module_param(separate_tx_channels, uint, 0444); 110module_param(separate_tx_channels, bool, 0444);
111MODULE_PARM_DESC(separate_tx_channels, 111MODULE_PARM_DESC(separate_tx_channels,
112 "Use separate channels for TX and RX"); 112 "Use separate channels for TX and RX");
113 113
@@ -160,8 +160,8 @@ static unsigned int rss_cpus;
160module_param(rss_cpus, uint, 0444); 160module_param(rss_cpus, uint, 0444);
161MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling"); 161MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling");
162 162
163static int phy_flash_cfg; 163static bool phy_flash_cfg;
164module_param(phy_flash_cfg, int, 0644); 164module_param(phy_flash_cfg, bool, 0644);
165MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially"); 165MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially");
166 166
167static unsigned irq_adapt_low_thresh = 8000; 167static unsigned irq_adapt_low_thresh = 8000;
@@ -2279,7 +2279,7 @@ int efx_reset(struct efx_nic *efx, enum reset_type method)
2279 netif_info(efx, drv, efx->net_dev, "resetting (%s)\n", 2279 netif_info(efx, drv, efx->net_dev, "resetting (%s)\n",
2280 RESET_TYPE(method)); 2280 RESET_TYPE(method));
2281 2281
2282 netif_device_detach(efx->net_dev); 2282 efx_device_detach_sync(efx);
2283 efx_reset_down(efx, method); 2283 efx_reset_down(efx, method);
2284 2284
2285 rc = efx->type->reset(efx, method); 2285 rc = efx->type->reset(efx, method);
@@ -2758,7 +2758,7 @@ static int efx_pm_freeze(struct device *dev)
2758 if (efx->state != STATE_DISABLED) { 2758 if (efx->state != STATE_DISABLED) {
2759 efx->state = STATE_UNINIT; 2759 efx->state = STATE_UNINIT;
2760 2760
2761 netif_device_detach(efx->net_dev); 2761 efx_device_detach_sync(efx);
2762 2762
2763 efx_stop_all(efx); 2763 efx_stop_all(efx);
2764 efx_stop_interrupts(efx, false); 2764 efx_stop_interrupts(efx, false);