Commit 0aa35a36 authored by Julian Wiedmann's avatar Julian Wiedmann Committed by David S. Miller
Browse files

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: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff326d3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);