diff options
author | Holger Dengler <hd@linux.vnet.ibm.com> | 2012-08-28 10:43:48 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 09:44:55 -0400 |
commit | b26bd9413c8359bd9f5c9bd1b789a10ebd2bb484 (patch) | |
tree | 89f0809ea27a39f7ef43061173b760e941408f02 /drivers/s390/crypto/zcrypt_cex2a.c | |
parent | 75014550516b147e5f530b84c71496341e036d6f (diff) |
s390/ap: Add functiton facility information as AP device attribute.
Add the function facility information as new ap_device and sysfs
attribute. Also make the number of requests in device
queue and in device driver queue accessible in sysfs.
Reviewed-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Holger Dengler <hd@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/zcrypt_cex2a.c')
-rw-r--r-- | drivers/s390/crypto/zcrypt_cex2a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/crypto/zcrypt_cex2a.c b/drivers/s390/crypto/zcrypt_cex2a.c index 744c668f586c..8f5f70b43b29 100644 --- a/drivers/s390/crypto/zcrypt_cex2a.c +++ b/drivers/s390/crypto/zcrypt_cex2a.c | |||
@@ -449,7 +449,8 @@ static int zcrypt_cex2a_probe(struct ap_device *ap_dev) | |||
449 | zdev->min_mod_size = CEX2A_MIN_MOD_SIZE; | 449 | zdev->min_mod_size = CEX2A_MIN_MOD_SIZE; |
450 | zdev->max_mod_size = CEX2A_MAX_MOD_SIZE; | 450 | zdev->max_mod_size = CEX2A_MAX_MOD_SIZE; |
451 | zdev->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; | 451 | zdev->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; |
452 | if (ap_4096_commands_available(ap_dev->qid)) { | 452 | if (ap_test_bit(&ap_dev->functions, AP_FUNC_MEX4K) && |
453 | ap_test_bit(&ap_dev->functions, AP_FUNC_CRT4K)) { | ||
453 | zdev->max_mod_size = CEX3A_MAX_MOD_SIZE; | 454 | zdev->max_mod_size = CEX3A_MAX_MOD_SIZE; |
454 | zdev->max_exp_bit_length = CEX3A_MAX_MOD_SIZE; | 455 | zdev->max_exp_bit_length = CEX3A_MAX_MOD_SIZE; |
455 | } | 456 | } |