qeth: postpone open till recovery is finished
authorUrsula Braun <ursula.braun@de.ibm.com>
Wed, 12 Jan 2011 20:42:24 +0000 (20:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jan 2011 04:45:56 +0000 (20:45 -0800)
commit394234406c7a8a6b947d230b115c918c0a1def68
tree6c680f03c20b758016ff69ba6ff1e7dec7cdae6a
parent0f73f2c5a3ebb957ee66718c903c17ed71a4fc2e
qeth: postpone open till recovery is finished

The open function of qeth is not executed if the qeth device is in
state DOWN or HARDSETUP. A recovery switches from state SOFTSETUP to
HARDSETUP to DOWN to HARDSETUP and back to SOFTSETUP. If open and
recover are running concurrently, open fails if it hits the states
HARDSETUP or DOWN. This patch inserts waiting for recovery finish
in the qeth open functions to enable successful qeth device opening
in spite of a running recovery.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c