]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit347804c54119c4625e6054ea569d8f8115e14699
tree2b62bf9f874aa7f6439f194dfe5cde35b544a46d
parent4fc8afc79f32ccae4aac843c3674cd26c9598810
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