diff options
author | Julian Wiedmann | 2017-01-12 15:48:42 +0100 |
---|---|---|
committer | David S. Miller | 2017-01-12 16:02:43 +0100 |
commit | 1034051045d125579ab1e8fcd5a724eeb0e70149 (patch) | |
tree | 813f2f47000bcbbc1f373032f64bd1e83d8268b9 /drivers/s390/net/qeth_l3_main.c | |
parent | s390/qeth: shuffle MAC management functions around (diff) | |
download | kernel-qcow2-linux-1034051045d125579ab1e8fcd5a724eeb0e70149.tar.gz kernel-qcow2-linux-1034051045d125579ab1e8fcd5a724eeb0e70149.tar.xz kernel-qcow2-linux-1034051045d125579ab1e8fcd5a724eeb0e70149.zip |
s390/qeth: issue STARTLAN as first IPA command
STARTLAN needs to be the first IPA command after MPC initialization
completes.
So move the qeth_send_startlan() call from the layer disciplines
into the core path, right after the MPC handshake.
While at it, replace the magic LAN OFFLINE return code
with the existing enum.
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index ac37d050e765..06d0addcc058 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -3227,21 +3227,6 @@ static int __qeth_l3_set_online(struct ccwgroup_device *gdev, int recovery_mode) /* softsetup */ QETH_DBF_TEXT(SETUP, 2, "softsetp"); - rc = qeth_send_startlan(card); - if (rc) { - QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc); - if (rc == 0xe080) { - dev_warn(&card->gdev->dev, - "The LAN is offline\n"); - card->lan_online = 0; - goto contin; - } - rc = -ENODEV; - goto out_remove; - } else - card->lan_online = 1; - -contin: rc = qeth_l3_setadapter_parms(card); if (rc) QETH_DBF_TEXT_(SETUP, 2, "2err%04x", rc); |