Commit ea96f788 authored by Ingo Tuchscherer's avatar Ingo Tuchscherer Committed by Martin Schwidefsky

s390/zcrypt: fixed domain scanning problem (again)

Older machines with more then 16 domains need a special check before
PQAP instructions can be processed. With commit 5bc334bf this
check was reverted by accident. This patch re-establishes the additional
code needed for checking the extended domains for older machines.
Signed-off-by: default avatarIngo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 5c75a0da
...@@ -1060,9 +1060,13 @@ static inline int ap_test_config_card_id(unsigned int id) ...@@ -1060,9 +1060,13 @@ static inline int ap_test_config_card_id(unsigned int id)
*/ */
static inline int ap_test_config_domain(unsigned int domain) static inline int ap_test_config_domain(unsigned int domain)
{ {
if (!ap_configuration) if (!ap_configuration) /* QCI not supported */
return 1; if (domain < 16)
return ap_test_config(ap_configuration->aqm, domain); return 1; /* then domains 0...15 are configured */
else
return 0;
else
return ap_test_config(ap_configuration->aqm, domain);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment