linux/drivers/s390/crypto
Halil Pasic 1c472d4628 s390/zcrypt: enable AP bus scan without a valid default domain
The AP bus scan is aborted before doing anything worth mentioning if
ap_select_domain() fails, e.g. if the ap_rights.aqm mask is all zeros.
As the result of this the ap bus fails to manage (e.g. create and
register) devices like it is supposed to.

Let us make ap_scan_bus() work even if ap_select_domain() can't select a
default domain. Let's also make ap_select_domain() return void, as there
are no more callers interested in its return value.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reported-by: Michael Mueller <mimu@linux.ibm.com>
Fixes: 7e0bdbe5c2 "s390/zcrypt: AP bus support for alternate driver(s)"
[freude@linux.ibm.com: title and patch header slightly modified]
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-09-20 13:20:28 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ap_bus.c s390/zcrypt: enable AP bus scan without a valid default domain 2018-09-20 13:20:28 +02:00
ap_bus.h s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
ap_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
pkey_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_api.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cca_key.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex2a.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex2a.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex4.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex4.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_error.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.c s390/zcrypt: Use kmemdup to replace kmalloc + memcpy 2018-09-20 13:20:27 +02:00
zcrypt_msgtype6.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_pcixcc.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_pcixcc.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00