]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc57be498025e045400e65e2f01ac406b390e1023
tree6c680f03c20b758016ff69ba6ff1e7dec7cdae6a
parent21c89f8dfdd3a4288c96414690ada31825244563
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