diff options
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index f75d3144b8a5..cf79cf759e13 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -2688,9 +2688,6 @@ static int ehea_open(struct net_device *dev) | |||
2688 | netif_start_queue(dev); | 2688 | netif_start_queue(dev); |
2689 | } | 2689 | } |
2690 | 2690 | ||
2691 | init_waitqueue_head(&port->swqe_avail_wq); | ||
2692 | init_waitqueue_head(&port->restart_wq); | ||
2693 | |||
2694 | mutex_unlock(&port->port_lock); | 2691 | mutex_unlock(&port->port_lock); |
2695 | 2692 | ||
2696 | return ret; | 2693 | return ret; |
@@ -3040,11 +3037,14 @@ static void ehea_rereg_mrs(void) | |||
3040 | 3037 | ||
3041 | if (dev->flags & IFF_UP) { | 3038 | if (dev->flags & IFF_UP) { |
3042 | mutex_lock(&port->port_lock); | 3039 | mutex_lock(&port->port_lock); |
3043 | port_napi_enable(port); | ||
3044 | ret = ehea_restart_qps(dev); | 3040 | ret = ehea_restart_qps(dev); |
3045 | check_sqs(port); | 3041 | if (!ret) { |
3046 | if (!ret) | 3042 | check_sqs(port); |
3043 | port_napi_enable(port); | ||
3047 | netif_wake_queue(dev); | 3044 | netif_wake_queue(dev); |
3045 | } else { | ||
3046 | netdev_err(dev, "Unable to restart QPS\n"); | ||
3047 | } | ||
3048 | mutex_unlock(&port->port_lock); | 3048 | mutex_unlock(&port->port_lock); |
3049 | } | 3049 | } |
3050 | } | 3050 | } |
@@ -3273,6 +3273,9 @@ struct ehea_port *ehea_setup_single_port(struct ehea_adapter *adapter, | |||
3273 | 3273 | ||
3274 | INIT_WORK(&port->reset_task, ehea_reset_port); | 3274 | INIT_WORK(&port->reset_task, ehea_reset_port); |
3275 | 3275 | ||
3276 | init_waitqueue_head(&port->swqe_avail_wq); | ||
3277 | init_waitqueue_head(&port->restart_wq); | ||
3278 | |||
3276 | ret = register_netdev(dev); | 3279 | ret = register_netdev(dev); |
3277 | if (ret) { | 3280 | if (ret) { |
3278 | pr_err("register_netdev failed. ret=%d\n", ret); | 3281 | pr_err("register_netdev failed. ret=%d\n", ret); |