s390/chsc: use notifier for AP configuration changes
authorHolger Dengler <dengler@linux.ibm.com>
Mon, 19 Feb 2024 16:32:54 +0000 (17:32 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 9 Apr 2024 15:29:55 +0000 (17:29 +0200)
commit2a483d333fd84acc009c7199fdd962af3ffc6b3b
tree44cd6dea80511873ef4d5481b9ea5938b115c828
parent05272aa499c48f230d862577d423de3e2b268e47
s390/chsc: use notifier for AP configuration changes

The direct dependency of chsc and the AP bus prevents the
modularization of ap bus. Introduce a notifier interface for AP
changes, which decouples the producer of the change events (chsc) from
the consumer (ap_bus).

Remove the ap_cfg_chg() interface and replace it with the notifier
invocation. The ap bus module registers a notification handler, which
triggers the AP bus scan.

Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/ap.h
arch/s390/include/asm/chsc.h
drivers/s390/cio/chsc.c
drivers/s390/crypto/ap_bus.c