Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3e8652b authored by Harald Freudenberger's avatar Harald Freudenberger Committed by Martin Schwidefsky
Browse files

s390/zcrypt: Introduce CEX6 toleration

parent cdb98c26
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1708,6 +1708,9 @@ static void ap_scan_bus(struct work_struct *unused)
		ap_dev->queue_depth = queue_depth;
		ap_dev->queue_depth = queue_depth;
		ap_dev->raw_hwtype = device_type;
		ap_dev->raw_hwtype = device_type;
		ap_dev->device_type = 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;
		ap_dev->functions = device_functions;
		spin_lock_init(&ap_dev->lock);
		spin_lock_init(&ap_dev->lock);
		INIT_LIST_HEAD(&ap_dev->pendingq);
		INIT_LIST_HEAD(&ap_dev->pendingq);
+1 −0
Original line number Original line Diff line number Diff line
@@ -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_CEX3C	9
#define AP_DEVICE_TYPE_CEX4	10
#define AP_DEVICE_TYPE_CEX4	10
#define AP_DEVICE_TYPE_CEX5	11
#define AP_DEVICE_TYPE_CEX5	11
#define AP_DEVICE_TYPE_CEX6	12


/*
/*
 * Known function facilities
 * Known function facilities