Commit d02c0353 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide: fix PM with ide-default driver

From Benjamin Herrenschmidt <benh@kernel.crashing.org>
parent 9028b7b8
...@@ -2406,6 +2406,13 @@ static ide_startstop_t default_abort (ide_drive_t *drive, const char *msg) ...@@ -2406,6 +2406,13 @@ static ide_startstop_t default_abort (ide_drive_t *drive, const char *msg)
return ide_abort(drive, msg); return ide_abort(drive, msg);
} }
static ide_startstop_t default_start_power_step(ide_drive_t *drive,
struct request *rq)
{
rq->pm->pm_step = ide_pm_state_completed;
return ide_stopped;
}
static void setup_driver_defaults (ide_driver_t *d) static void setup_driver_defaults (ide_driver_t *d)
{ {
if (d->cleanup == NULL) d->cleanup = default_cleanup; if (d->cleanup == NULL) d->cleanup = default_cleanup;
...@@ -2420,6 +2427,8 @@ static void setup_driver_defaults (ide_driver_t *d) ...@@ -2420,6 +2427,8 @@ static void setup_driver_defaults (ide_driver_t *d)
if (d->capacity == NULL) d->capacity = default_capacity; if (d->capacity == NULL) d->capacity = default_capacity;
if (d->special == NULL) d->special = default_special; if (d->special == NULL) d->special = default_special;
if (d->attach == NULL) d->attach = default_attach; if (d->attach == NULL) d->attach = default_attach;
if (d->start_power_step == NULL)
d->start_power_step = default_start_power_step;
} }
int ide_register_subdriver (ide_drive_t *drive, ide_driver_t *driver, int version) int ide_register_subdriver (ide_drive_t *drive, ide_driver_t *driver, int version)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment