]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: enable AP bus scan without a valid default domain
authorHalil Pasic <pasic@linux.ibm.com>
Mon, 17 Sep 2018 13:23:03 +0000 (15:23 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Sep 2018 11:20:28 +0000 (13:20 +0200)
commit55c05ed2f9462e620f325769b4f7c05edec4b502
treef9a821bbabcdfb7dcd575da84d16097615ac3ceb
parent7c242d7a08e887c2cc1db6ee4441244960a1cf98
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: 6f26290f5911 "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>
drivers/s390/crypto/ap_bus.c