From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>, Pavel Machek <pavel@ucw.cz>,
Lee Trager <lt73@cs.drexel.edu>
Subject: Re: 2.6.22-rc4-mm2: Resume from RAM on HPC nx6325 broken
Date: Tue, 12 Jun 2007 00:20:51 +0200 [thread overview]
Message-ID: <200706120020.51227.bzolnier@gmail.com> (raw)
In-Reply-To: <200706112359.20028.rjw@sisk.pl>
On Monday 11 June 2007, Rafael J. Wysocki wrote:
> On Monday, 11 June 2007 22:03, Bartlomiej Zolnierkiewicz wrote:
> >
> > Hi,
> >
> > On Monday 11 June 2007, Rafael J. Wysocki wrote:
> > > Hi,
> > >
> > > Here's the result of the search for the second patch that breaks resuming
> > > from RAM on HPC nx6325 (x86_64):
> > >
> > > ide-ide-hpa-detect-from-resume.patch
> > >
> > > The symptom is that after the resume there's no backlight and the screen
> > > apparently doesn't work, 100% of the time, although apart from this the system
> > > seems to be functional.
> >
> > I find it hard to accept that IDE patch is to blame for that. ;)
>
> But still (actually, I only don't know why it appeared to be functional :-)).
Yeah...
> > > The box doesn't even have an IDE HDD, but the DVD is handled by the atiixp
> > > driver.
> >
> > If there are no IDE disks in the system there should be absolutely no
> > change in the functionality.
>
> Sorry, but the patch is buggy. Fix appended, details in the changelog.
Yep, I know already, our emails crossed each other :)
> Greetings,
> Rafael
>
>
> ---
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> generic_ide_resume() should check if dev->driver is not NULL before applying
> to_ide_driver() to it. Fix that.
>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thanks for fixing this.
> ---
> drivers/ide/ide.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> Index: linux-2.6.22-rc4/drivers/ide/ide.c
> ===================================================================
> --- linux-2.6.22-rc4.orig/drivers/ide/ide.c
> +++ linux-2.6.22-rc4/drivers/ide/ide.c
> @@ -1010,7 +1010,6 @@ static int generic_ide_resume(struct dev
> {
> ide_drive_t *drive = dev->driver_data;
> ide_hwif_t *hwif = HWIF(drive);
> - ide_driver_t *drv = to_ide_driver(dev->driver);
> struct request rq;
> struct request_pm_state rqpm;
> ide_task_t args;
> @@ -1033,8 +1032,12 @@ static int generic_ide_resume(struct dev
>
> err = ide_do_drive_cmd(drive, &rq, ide_head_wait);
>
> - if (err == 0 && drv && drv->resume)
> - drv->resume(drive);
> + if (err == 0 && dev->driver) {
> + ide_driver_t *drv = to_ide_driver(dev->driver);
> +
> + if (drv->resume)
> + drv->resume(drive);
> + }
>
> return err;
> }
next prev parent reply other threads:[~2007-06-11 22:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 14:48 2.6.22-rc4-mm2: Resume from RAM on HPC nx6325 broken Rafael J. Wysocki
2007-06-11 20:03 ` Bartlomiej Zolnierkiewicz
2007-06-11 21:59 ` Rafael J. Wysocki
2007-06-11 22:20 ` Bartlomiej Zolnierkiewicz [this message]
2007-06-11 22:01 ` Bartlomiej Zolnierkiewicz
2007-06-11 22:01 ` Rafael J. Wysocki
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=200706120020.51227.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lt73@cs.drexel.edu \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
/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