mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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>
This commit is contained in:
parent
ff326d3cdf
commit
0aa35a3689
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user