diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 12 |
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 | */ |
109 | static unsigned int separate_tx_channels; | 109 | static bool separate_tx_channels; |
110 | module_param(separate_tx_channels, uint, 0444); | 110 | module_param(separate_tx_channels, bool, 0444); |
111 | MODULE_PARM_DESC(separate_tx_channels, | 111 | MODULE_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; | |||
160 | module_param(rss_cpus, uint, 0444); | 160 | module_param(rss_cpus, uint, 0444); |
161 | MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling"); | 161 | MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling"); |
162 | 162 | ||
163 | static int phy_flash_cfg; | 163 | static bool phy_flash_cfg; |
164 | module_param(phy_flash_cfg, int, 0644); | 164 | module_param(phy_flash_cfg, bool, 0644); |
165 | MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially"); | 165 | MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially"); |
166 | 166 | ||
167 | static unsigned irq_adapt_low_thresh = 8000; | 167 | static 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); |