[S390] pm: dasd power management callbacks.
authorStefan Haberland <stefan.haberland@de.ibm.com>
Tue, 16 Jun 2009 08:30:25 +0000 (10:30 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 16 Jun 2009 08:31:10 +0000 (10:31 +0200)
commitd41dd122acf960db78c9ddc87684b43751dd36d9
tree6005ea4914d1d2556b182ae86d82185d792b2f30
parentad285ae9fc6b9c0058f2a558b43fe8817685ebfa
[S390] pm: dasd power management callbacks.

Introduce the power management callbacks to the dasd driver. On suspend
the dasd devices are stopped and removed from the focus of alias
management.
On resume they are reinitialized by rereading the device characteristics
and adding the device to the alias management.
In case the device has gone away during suspend it will caught in the
suspend state with stopped flag set to UNRESUMED. After it appears again
the restore function is called again.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_devmap.c
drivers/s390/block/dasd_eckd.c
drivers/s390/block/dasd_fba.c
drivers/s390/block/dasd_int.h