From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Patrick Mochel <mochel@osdl.org>, Andrew Morton <akpm@osdl.org>,
linux-kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH] IDE: fix Power Management
Date: Wed, 03 Sep 2003 18:11:23 +0200 [thread overview]
Message-ID: <1062605483.1780.30.camel@gaston> (raw)
This is the "final" one hopefully, Bart, check out it's correct,
Andrew that I did no typo this time ;)
Spacing is a bit fucked up in setup_driver_defaults due to the
field name beeing too long (gah !) but that isn't too bad...
Ben.
diff -urN for-linus-ppc/drivers/ide/ide.c linuxppc-2.5-benh/drivers/ide/ide.c
--- for-linus-ppc/drivers/ide/ide.c 2003-09-03 18:07:14.000000000 +0200
+++ linuxppc-2.5-benh/drivers/ide/ide.c 2003-09-03 18:09:01.000000000 +0200
@@ -2406,6 +2406,12 @@
return ide_abort(drive, msg);
}
+static int 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)
{
if (d->cleanup == NULL) d->cleanup = default_cleanup;
@@ -2420,6 +2426,7 @@
if (d->capacity == NULL) d->capacity = default_capacity;
if (d->special == NULL) d->special = default_special;
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)
next reply other threads:[~2003-09-03 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-03 16:11 Benjamin Herrenschmidt [this message]
2003-09-04 12:56 ` [PATCH] IDE: fix Power Management Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1062605483.1780.30.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox