From: Jaco Kroon <jaco@kroon.co.za>
To: Pavel Machek <pavel@ucw.cz>
Cc: davej@codemonkey.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ati-agp suspend/resume support
Date: Mon, 26 Dec 2005 06:52:36 +0200 [thread overview]
Message-ID: <43AF7714.8070201@kroon.co.za> (raw)
In-Reply-To: <20051225211414.GA1943@elf.ucw.cz>
[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]
Pavel Machek wrote:
> 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... ...
That is indeed the case.
>> /*
>> *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.
Done. Resubmitting in a second.
--
There are only 10 kinds of people in this world,
those that understand binary and those that don't.
http://www.kroon.co.za/
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3166 bytes --]
next prev parent reply other threads:[~2005-12-26 4:53 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
2005-12-26 4:52 ` Jaco Kroon [this message]
-- 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=43AF7714.8070201@kroon.co.za \
--to=jaco@kroon.co.za \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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