Skip to content

Commit 01d098d

Browse files
committed
Merge branch 'tape-devices'
Jan Höppner says: ==================== Quite a lot of the tape device driver code is outdated as devices and storage systems supported by that code aren't supported by IBM anymore for a long time. Especially physical tape devices are not supported or used directly anymore. The only tape storage system supported by IBM is the Virtual Tape Server (VTS) family with TS7700 systems [1]. Host systems will only talk to VTS and are presented with the virtualized 3490E tape device type only. VTS can and still uses tape libraries with physical 3592 cartridges as storage backends (e.g. TS4500). However, these are never seen by any host. The general goal/idea for the tape device driver is to only support VTS from now on. This series gets rid of old outdated code that is not relevant to VTS. There is probably quite a bit more that could be cleaned up or could be improved. However, this is a first run to cleanup the code base and somewhat reduce maintenance burden. [1] https://www.ibm.com/products/ts7700 [2] https://www.ibm.com/products/ts4500 ==================== Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2 parents f8a9c11 + 9872dae commit 01d098d

12 files changed

Lines changed: 845 additions & 3195 deletions

File tree

arch/s390/include/uapi/asm/tape390.h

Lines changed: 0 additions & 103 deletions
This file was deleted.

drivers/s390/char/Kconfig

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,12 @@ config S390_TAPE
121121
comment "S/390 tape hardware support"
122122
depends on S390_TAPE
123123

124-
config S390_TAPE_34XX
124+
config S390_TAPE_3490
125125
def_tristate m
126-
prompt "Support for 3480/3490 tape hardware"
126+
prompt "Support for 3490 tape hardware"
127127
depends on S390_TAPE
128128
help
129-
Select this option if you want to access IBM 3480/3490 magnetic
130-
tape subsystems and 100% compatibles.
131-
It is safe to say "Y" here.
132-
133-
config S390_TAPE_3590
134-
def_tristate m
135-
prompt "Support for 3590 tape hardware"
136-
depends on S390_TAPE
137-
help
138-
Select this option if you want to access IBM 3590 magnetic
129+
Select this option if you want to access IBM 3490 magnetic
139130
tape subsystems and 100% compatibles.
140131
It is safe to say "Y" here.
141132

drivers/s390/char/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ obj-$(CONFIG_VMCP) += vmcp.o
4141
tape-$(CONFIG_PROC_FS) += tape_proc.o
4242
tape-objs := tape_core.o tape_std.o tape_char.o $(tape-y)
4343
obj-$(CONFIG_S390_TAPE) += tape.o tape_class.o
44-
obj-$(CONFIG_S390_TAPE_34XX) += tape_34xx.o
45-
obj-$(CONFIG_S390_TAPE_3590) += tape_3590.o
44+
obj-$(CONFIG_S390_TAPE_3490) += tape_3490.o
4645
obj-$(CONFIG_MONREADER) += monreader.o
4746
obj-$(CONFIG_MONWRITER) += monwriter.o
4847
obj-$(CONFIG_S390_VMUR) += vmur.o

drivers/s390/char/tape.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22
/*
3-
* tape device driver for 3480/3490E/3590 tapes.
3+
* tape device driver for 3490E tapes.
44
*
55
* S390 and zSeries version
66
* Copyright IBM Corp. 2001, 2009
@@ -98,10 +98,6 @@ enum tape_op {
9898
TO_DIS, /* Tape display */
9999
TO_ASSIGN, /* Assign tape to channel path */
100100
TO_UNASSIGN, /* Unassign tape from channel path */
101-
TO_CRYPT_ON, /* Enable encrpytion */
102-
TO_CRYPT_OFF, /* Disable encrpytion */
103-
TO_KEKL_SET, /* Set KEK label */
104-
TO_KEKL_QUERY, /* Query KEK label */
105101
TO_RDC, /* Read device characteristics */
106102
TO_SIZE, /* #entries in tape_op_t */
107103
};
@@ -155,8 +151,6 @@ struct tape_discipline {
155151
struct tape_request *(*read_block)(struct tape_device *);
156152
struct tape_request *(*write_block)(struct tape_device *);
157153
void (*process_eov)(struct tape_device*);
158-
/* ioctl function for additional ioctls. */
159-
int (*ioctl_fn)(struct tape_device *, unsigned int, unsigned long);
160154
/* Array of tape commands with TAPE_NR_MTOPS entries */
161155
tape_mtop_fn *mtop_array;
162156
};
@@ -192,7 +186,6 @@ struct tape_device {
192186

193187
/* Device discipline information. */
194188
struct tape_discipline * discipline;
195-
void * discdata;
196189

197190
/* Generic status flags */
198191
long tape_generic_status;

0 commit comments

Comments
 (0)