]> git.baikalelectronics.ru Git - kernel.git/commit
qeth: don't query for info if hardware not ready.
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Tue, 2 Sep 2014 06:20:17 +0000 (08:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 20:54:06 +0000 (13:54 -0700)
commitf9ed3c9ec3d223f1ea3ae5eddbea81609f8da201
tree89d36bcc3fa41515c01c77b85a92700205b7d98e
parent801b9a5c2b5f427da2955118368a6f2f69f3a6b8
qeth: don't query for info if hardware not ready.

When qeth device is queried for ethtool data, hardware operation
is performed to extract the necessary information from the card.
If the card is not online at the moment (e.g. it is undergoing
recovery), this operation produces undesired effects like
temporarily freezing the system. This patch prevents execution
of the hardware query operation when the card is not online.
In such case, ioctl() operation returns error with errno ENODEV.

Reviewed-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_sys.c