diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-02-15 19:22:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-15 20:35:29 -0800 |
commit | 0aa35a368933873dbab2d2ab54e5d05d3b089245 (patch) | |
tree | 2a5b592f39aeef3c18284ffaf3a6f890b6567ab4 /drivers/s390/net | |
parent | ff326d3cdff92a8fce1189f435f0fcaad765b1d4 (diff) |
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/net')
-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); |