]> 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)
commit380db83ef524ef688646da86ae6653c3e170f766
tree15fa1a63b20e53287402b129bbfd3de32cc12032
parent060d8445d01921e829dc9a35cb563045a15ec658
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