aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorIngo Tuchscherer <ingo.tuchscherer@de.ibm.com>2015-02-02 11:50:17 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-02-04 03:03:19 -0500
commitea96f78813823ab186e7e52122c06fb9c3cf6e20 (patch)
treeacddd2a22fb665f1242736d66ed4b3150a749700 /drivers/s390
parent5c75a0dac3099f33a500b8b31f00541374752049 (diff)
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 5bc334bff9a6e189 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: Ingo Tuchscherer <ingo.tuchscherer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/crypto/ap_bus.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index a60fc2f9f4b2..3d7f19fb9a4e 100644
--- a/drivers/s390/crypto/ap_bus.c
+++ b/drivers/s390/crypto/ap_bus.c
@@ -1060,9 +1060,13 @@ static inline int ap_test_config_card_id(unsigned int id)
1060 */ 1060 */
1061static inline int ap_test_config_domain(unsigned int domain) 1061static inline int ap_test_config_domain(unsigned int domain)
1062{ 1062{
1063 if (!ap_configuration) 1063 if (!ap_configuration) /* QCI not supported */
1064 return 1; 1064 if (domain < 16)
1065 return ap_test_config(ap_configuration->aqm, domain); 1065 return 1; /* then domains 0...15 are configured */
1066 else
1067 return 0;
1068 else
1069 return ap_test_config(ap_configuration->aqm, domain);
1066} 1070}
1067 1071
1068/* 1072/*