]> git.baikalelectronics.ru Git - kernel.git/commit
qeth: Fix IPA_CMD_QIPASSIST return code handling
authorStefan Raspl <raspl@linux.vnet.ibm.com>
Mon, 12 Nov 2012 23:05:16 +0000 (23:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2012 19:31:21 +0000 (14:31 -0500)
commit9a7647b0623da644759ea01d3fadfeeb2982a8a9
tree15fa1a63b20e53287402b129bbfd3de32cc12032
parent546593f8746c1ca4127347ca22c34d081f5e479b
qeth: Fix IPA_CMD_QIPASSIST return code handling

Return codes of IPA_CMD_QIPASSIST are not checked, especially the ones which
indicate that the command is not supported. As a result, the device driver
would not enable all available features on older card generations.
This patch adds proper checking and sets the bare minimum in the supported
functions flags to avoid follow-on errors.

Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Reviewed-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c