]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: consistently re-enable device features
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 29 Jun 2018 17:45:54 +0000 (19:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 12:19:48 +0000 (21:19 +0900)
commite73d5189b84db515fa719898f9d6d91b115b783b
treecf29e525b6b7740ca89aabed8abbdbe2f052f3a0
parente614b807505ff987cb8b681aada4ea176288b172
s390/qeth: consistently re-enable device features

commit beb59db78102 ("qeth: restore device features after recovery") and
commit 5a872364857b ("s390/qeth: rely on kernel for feature recovery")
made sure that the HW functions for device features get re-programmed
after recovery.

But we missed that the same handling is also required when a card is
first set offline (destroying all HW context), and then online again.
Fix this by moving the re-enable action out of the recovery-only path.

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_l2_main.c
drivers/s390/net/qeth_l3_main.c