]> 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)
commitccc810d0f631f159b1290cd054a6f5af0a245f1f
treecf29e525b6b7740ca89aabed8abbdbe2f052f3a0
parentaaf0d018cc4b638eac69544ffb233a77e04b2b20
s390/qeth: consistently re-enable device features

commit e87a07157aa8 ("qeth: restore device features after recovery") and
commit 5bac572169ca ("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