diff options
author | Julian Wiedmann | 2019-02-15 19:22:25 +0100 |
---|---|---|
committer | David S. Miller | 2019-02-16 05:35:29 +0100 |
commit | 0aa35a368933873dbab2d2ab54e5d05d3b089245 (patch) | |
tree | 2a5b592f39aeef3c18284ffaf3a6f890b6567ab4 /drivers/s390 | |
parent | selftests: forwarding: Add some missing configuration symbols (diff) | |
download | kernel-qcow2-linux-0aa35a368933873dbab2d2ab54e5d05d3b089245.tar.gz kernel-qcow2-linux-0aa35a368933873dbab2d2ab54e5d05d3b089245.tar.xz kernel-qcow2-linux-0aa35a368933873dbab2d2ab54e5d05d3b089245.zip |
s390/qeth: allow manual recovery when device is SOFTSETUP
Once a qeth ccwgroup device is set online, it's also armed for internal
recovery. So allow for testing that code path via sysfs, regardless of
whether the interface is up or down.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_sys.c b/drivers/s390/net/qeth_core_sys.c index 30f61608fa22..485a335669ba 100644 --- a/drivers/s390/net/qeth_core_sys.c +++ b/drivers/s390/net/qeth_core_sys.c @@ -316,7 +316,7 @@ static ssize_t qeth_dev_recover_store(struct device *dev, if (!card) return -EINVAL; - if (card->state != CARD_STATE_UP) + if (!qeth_card_hw_is_reachable(card)) return -EPERM; i = simple_strtoul(buf, &tmp, 16); |