Skip to content

Commit ce54941

Browse files
sumitsemwalgregkh
authored andcommitted
s390/zcrypt: Introduce CEX6 toleration
From: Harald Freudenberger <freude@linux.vnet.ibm.com> [ Upstream commit b3e8652bcbfa04807e44708d4d0c8cdad39c9215 ] Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7023f50 commit ce54941

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/s390/crypto/ap_bus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,9 @@ static void ap_scan_bus(struct work_struct *unused)
16511651
ap_dev->queue_depth = queue_depth;
16521652
ap_dev->raw_hwtype = device_type;
16531653
ap_dev->device_type = device_type;
1654+
/* CEX6 toleration: map to CEX5 */
1655+
if (device_type == AP_DEVICE_TYPE_CEX6)
1656+
ap_dev->device_type = AP_DEVICE_TYPE_CEX5;
16541657
ap_dev->functions = device_functions;
16551658
spin_lock_init(&ap_dev->lock);
16561659
INIT_LIST_HEAD(&ap_dev->pendingq);

drivers/s390/crypto/ap_bus.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static inline int ap_test_bit(unsigned int *ptr, unsigned int nr)
105105
#define AP_DEVICE_TYPE_CEX3C 9
106106
#define AP_DEVICE_TYPE_CEX4 10
107107
#define AP_DEVICE_TYPE_CEX5 11
108+
#define AP_DEVICE_TYPE_CEX6 12
108109

109110
/*
110111
* Known function facilities

0 commit comments

Comments
 (0)