s390/ap: swap IRQ and bus/device registration
authorHolger Dengler <dengler@linux.ibm.com>
Fri, 8 Mar 2024 16:23:25 +0000 (17:23 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 9 Apr 2024 15:29:55 +0000 (17:29 +0200)
commit3c7a377324cf9f248041c0e7295728eebd6c9b14
tree411a7c9d3c15400d99a62cabf58bf8a91571ed37
parent170660ccf8806742052028093fb45872d2be4775
s390/ap: swap IRQ and bus/device registration

The IRQ handler may rely on the bus or the root device. Register the
adapter IRQ after setting up the bus and the root device to avoid any
race conditions.

Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/ap_bus.c