diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2016-10-12 09:58:14 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-12-14 10:33:37 -0500 |
commit | b3e8652bcbfa04807e44708d4d0c8cdad39c9215 (patch) | |
tree | 232636b4f2da19f1c6d02cb1ecec4ef9699c4c9e | |
parent | cdb98c2698b4af287925abcba4d77d92af82a0c3 (diff) |
s390/zcrypt: Introduce CEX6 toleration
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 3 | ||||
-rw-r--r-- | drivers/s390/crypto/ap_bus.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index f407b4f9d0ba..cac919d63b43 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c | |||
@@ -1708,6 +1708,9 @@ static void ap_scan_bus(struct work_struct *unused) | |||
1708 | ap_dev->queue_depth = queue_depth; | 1708 | ap_dev->queue_depth = queue_depth; |
1709 | ap_dev->raw_hwtype = device_type; | 1709 | ap_dev->raw_hwtype = device_type; |
1710 | ap_dev->device_type = device_type; | 1710 | ap_dev->device_type = device_type; |
1711 | /* CEX6 toleration: map to CEX5 */ | ||
1712 | if (device_type == AP_DEVICE_TYPE_CEX6) | ||
1713 | ap_dev->device_type = AP_DEVICE_TYPE_CEX5; | ||
1711 | ap_dev->functions = device_functions; | 1714 | ap_dev->functions = device_functions; |
1712 | spin_lock_init(&ap_dev->lock); | 1715 | spin_lock_init(&ap_dev->lock); |
1713 | INIT_LIST_HEAD(&ap_dev->pendingq); | 1716 | INIT_LIST_HEAD(&ap_dev->pendingq); |
diff --git a/drivers/s390/crypto/ap_bus.h b/drivers/s390/crypto/ap_bus.h index d7fdf5c024d7..fd66d2c450d5 100644 --- a/drivers/s390/crypto/ap_bus.h +++ b/drivers/s390/crypto/ap_bus.h | |||
@@ -105,6 +105,7 @@ static inline int ap_test_bit(unsigned int *ptr, unsigned int nr) | |||
105 | #define AP_DEVICE_TYPE_CEX3C 9 | 105 | #define AP_DEVICE_TYPE_CEX3C 9 |
106 | #define AP_DEVICE_TYPE_CEX4 10 | 106 | #define AP_DEVICE_TYPE_CEX4 10 |
107 | #define AP_DEVICE_TYPE_CEX5 11 | 107 | #define AP_DEVICE_TYPE_CEX5 11 |
108 | #define AP_DEVICE_TYPE_CEX6 12 | ||
108 | 109 | ||
109 | /* | 110 | /* |
110 | * Known function facilities | 111 | * Known function facilities |