]> git.baikalelectronics.ru Git - kernel.git/commit
qeth: enable interface setup if LAN is offline
authorUrsula Braun <ursula.braun@de.ibm.com>
Fri, 26 Nov 2010 02:41:19 +0000 (02:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2010 02:13:17 +0000 (18:13 -0800)
commita94e1486e372c77d05a4ab7652141ffd9e4458a5
treeb6f8bfcb5e70535085c3f18a2eda8f05ec6ba2dd
parent2e7072025dbb5ab4601f436480cad9ef7be44a25
qeth: enable interface setup if LAN is offline

Device initialization of a qeth device contains a STARTLAN step.
This step may fail, if cable is not yet plugged in. The qeth device
stays in state HARDSETUP until cable is plugged in. This prevents
further preparational initialization steps of the qeth device and
its network interface. This patch makes sure initialization of qeth
device continues, even though cable is not yet plugged in.
Once carrier is available, qeth is notified, triggers a recovery
which results in a working network interface.

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