From: Pavel Machek <pavel@ucw.cz>
To: Jaco Kroon <jaco@kroon.co.za>
Cc: davej@codemonkey.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ati-agp suspend/resume support
Date: Sun, 25 Dec 2005 22:14:14 +0100 [thread overview]
Message-ID: <20051225211414.GA1943@elf.ucw.cz> (raw)
In-Reply-To: <43AF0122.9030904@kroon.co.za>
Hi!
> Based on the patch at
> http://unixhead.org/docs/thinkpad/ati-agp/ati-agp.diff, add support for
> suspend/resume in the ati-agp module.
>
> Signed-of-by: Jaco Kroon <jaco@kroon.co.za>
>
> --- linux-2.6.15-rc6/drivers/char/agp/ati-agp.c.orig 2005-12-25
> 22:21:32.000000000 +0200
> +++ linux-2.6.15-rc6/drivers/char/agp/ati-agp.c 2005-12-25
> 22:23:33.000000000 +0200
> @@ -243,6 +243,15 @@
> return 0;
> }
>
> +static int ati_resume(struct pci_dev *dev)
> +{
> + return ati_configure();
> +}
> +
> +static int ati_suspend(struct pci_dev *dev, pm_message_t state)
> +{
> + return 0;
> +}
I think you can just leave out empty function; that should work,
too. Otherwise it looks good, thanks... ...
> /*
> *Since we don't need contigious memory we just try
> @@ -525,6 +534,8 @@
> .id_table = agp_ati_pci_table,
> .probe = agp_ati_probe,
> .remove = agp_ati_remove,
> + .resume = ati_resume,
> + .suspend = ati_suspend,
> };
...aha, plus you may want to keep naming convention. It should
probably be agp_ati_resume.
Pavel
--
Thanks, Sharp!
next prev parent reply other threads:[~2005-12-25 21:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-25 20:29 [PATCH] ati-agp suspend/resume support Jaco Kroon
2005-12-25 21:14 ` Pavel Machek [this message]
2005-12-26 4:52 ` Jaco Kroon
-- strict thread matches above, loose matches on Subject: below --
2005-12-27 19:39 Jaco Kroon
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=20051225211414.GA1943@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=davej@codemonkey.org.uk \
--cc=jaco@kroon.co.za \
--cc=linux-kernel@vger.kernel.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