[S390] tape: Fix medium state handling
authorMichael Holzheu <holzheu@de.ibm.com>
Fri, 12 Oct 2007 14:11:47 +0000 (16:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Oct 2007 14:13:10 +0000 (16:13 +0200)
commit1b9fd76e30368489b561db5794b3831bcc28c8bc
tree5c686dd52482727d80bc713bd7290b1756dca504
parenta004fb0c33539ae90f25573505be6a116a76e639
[S390] tape: Fix medium state handling

Currently there are situations, where the tape medium state (loaded, unloaded,
unknown) is not set correctly. The reason is that the medium association
field is used to determine the medium state. This not always leads to
correct results. To fix that we use another field of the medium sense
data instead.

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tape_3590.c