summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorJulian Wiedmann2019-02-15 19:22:25 +0100
committerDavid S. Miller2019-02-16 05:35:29 +0100
commit0aa35a368933873dbab2d2ab54e5d05d3b089245 (patch)
tree2a5b592f39aeef3c18284ffaf3a6f890b6567ab4 /drivers/s390
parentselftests: forwarding: Add some missing configuration symbols (diff)
downloadkernel-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.c2
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);