aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd_eckd.c
diff options
context:
space:
mode:
authorStefan Haberland <stefan.haberland@de.ibm.com>2009-06-22 12:08:17 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-06-22 12:08:22 +0200
commite6125fba81e362d9b314d10893af1d9dc5658f33 (patch)
tree74039b088fc81e72e7976c5fca6ea0174eed9160 /drivers/s390/block/dasd_eckd.c
parent[S390] ap/zcrypt: Suspend/Resume ap bus and zcrypt (diff)
downloadlinux-dev-e6125fba81e362d9b314d10893af1d9dc5658f33.tar.xz
linux-dev-e6125fba81e362d9b314d10893af1d9dc5658f33.zip
[S390] dasd_pm: fix stop flag handling
The stop flags are handled in the generic restore function so the stop flag is removed also for FBA and DIAG devices. Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to '')
-rw-r--r--drivers/s390/block/dasd_eckd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c
index 1c28ec3e4ccb..f8b1f04f26b8 100644
--- a/drivers/s390/block/dasd_eckd.c
+++ b/drivers/s390/block/dasd_eckd.c
@@ -3243,9 +3243,6 @@ int dasd_eckd_restore_device(struct dasd_device *device)
int is_known, rc;
struct dasd_uid temp_uid;
- /* allow new IO again */
- device->stopped &= ~DASD_STOPPED_PM;
-
private = (struct dasd_eckd_private *) device->private;
/* Read Configuration Data */
@@ -3295,12 +3292,7 @@ int dasd_eckd_restore_device(struct dasd_device *device)
return 0;
out_err:
- /*
- * if the resume failed for the DASD we put it in
- * an UNRESUMED stop state
- */
- device->stopped |= DASD_UNRESUMED_PM;
- return 0;
+ return -1;
}
static struct ccw_driver dasd_eckd_driver = {