]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/zcrypt: Introduce CEX6 toleration
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 12 Oct 2016 13:58:14 +0000 (15:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Dec 2016 15:33:37 +0000 (16:33 +0100)
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h

index f407b4f9d0ba5ce10389ab7fa790184090be607e..cac919d63b43e26cbbfed168ef97d88120f95bfe 100644 (file)
@@ -1708,6 +1708,9 @@ static void ap_scan_bus(struct work_struct *unused)
                ap_dev->queue_depth = queue_depth;
                ap_dev->raw_hwtype = device_type;
                ap_dev->device_type = device_type;
+               /* CEX6 toleration: map to CEX5 */
+               if (device_type == AP_DEVICE_TYPE_CEX6)
+                       ap_dev->device_type = AP_DEVICE_TYPE_CEX5;
                ap_dev->functions = device_functions;
                spin_lock_init(&ap_dev->lock);
                INIT_LIST_HEAD(&ap_dev->pendingq);
index d7fdf5c024d730c53838bac9576c42f40c6a9d8f..fd66d2c450d5506dd46bbc93471cf8bcefe6385a 100644 (file)
@@ -105,6 +105,7 @@ static inline int ap_test_bit(unsigned int *ptr, unsigned int nr)
 #define AP_DEVICE_TYPE_CEX3C   9
 #define AP_DEVICE_TYPE_CEX4    10
 #define AP_DEVICE_TYPE_CEX5    11
+#define AP_DEVICE_TYPE_CEX6    12
 
 /*
  * Known function facilities