]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commita134884ac0e9fa48786560d49ed49c5f5f686410
tree15fa1a63b20e53287402b129bbfd3de32cc12032
parent80928805babfd97b6f1721dd942a55dd2e7813ea
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