]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/s390/crypto/ap_bus.c
s390/zcrypt: fix suspend/resume of AP bus devices
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 Jul 2015 11:43:18 +0000 (13:43 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:20 +0000 (14:32 +0200)
commit83e9d5d2d45e518deb8cb843bd2e41548c6bb9b2
treeb15c94450a4253b4514db6c2cdada6860c3a2437
parent98733791e8ea9f700ce2c6feedcbeb7c4703359e
s390/zcrypt: fix suspend/resume of AP bus devices

If there are no devices on the AP bus there will not be a single
call to the per-device ap_bus_suspend function. Even worse,
there will not be a call to the per-device ap_bus_resume either
and the AP will fail so resume correctly.

Introduce a bus specific dev_pm_ops to suspend / resume the AP
bus related things. While we are at it, simplify the power management
code of the AP bus.

Reviewd-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c