s390/qeth: clean up error handling for isolation mode cmds
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 14 Jul 2020 14:23:00 +0000 (16:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 21:53:45 +0000 (14:53 -0700)
commit65878fd95261d3a831e085e2c6f1e8a6d7979b14
tree2b62bf9f874aa7f6439f194dfe5cde35b544a46d
parent62f0379c6c9b169b99a89c4677a32e45d7778bc4
s390/qeth: clean up error handling for isolation mode cmds

As the cmd IO path has learned to propagate errnos back to its callers,
let them deal with errors instead of trying to restore their previous
configuration from within the IO error path.

Also translate the HW error to a meaningful errno, instead of returning
-EIO for all cases (and don't map this to -EOPNOTSUPP later on...).

While at it, add a READ_ONCE() / WRITE_ONCE() pair to ensure that the
data path always sees a valid isolation mode during reconfiguration.

Signed-off-by: Julian Wiedmann <jwi@linux.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_core_sys.c