linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] acerhdf: convert to dev_pm_ops
@ 2009-08-13 10:17 Peter Feuerer
  2009-08-13 10:19 ` [PATCH 2/2] acerhdf: additional BIOS versions Peter Feuerer
  2009-08-13 20:56 ` [PATCH 1/2] acerhdf: convert to dev_pm_ops Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Feuerer @ 2009-08-13 10:17 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel, Borislav Petkov, lenb, Andreas Mohr, Peter Feuerer

acerhdf: convert to dev_pm_ops

v 1.1:
Add .freeze func ptr to support suspend-to-disk,
as suggested by Dmitry Torokhov.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Peter Feuerer <peter@piie.net>
Cc: Andreas Mohr <andi@lisas.de>
Cc: Len Brown <lenb@kernel.org>
---
 drivers/platform/x86/acerhdf.c |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index aa298d6..8ff5639 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -52,7 +52,7 @@
  */
 #undef START_IN_KERNEL_MODE
 
-#define DRV_VER "0.5.16"
+#define DRV_VER "0.5.17"
 
 /*
  * According to the Atom N270 datasheet,
@@ -435,7 +435,7 @@ struct thermal_cooling_device_ops acerhdf_cooling_ops = {
 };
 
 /* suspend / resume functionality */
-static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
+static int acerhdf_suspend(struct device *dev)
 {
 	if (kernelmode)
 		acerhdf_change_fanstate(ACERHDF_FAN_AUTO);
@@ -446,14 +446,6 @@ static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
 	return 0;
 }
 
-static int acerhdf_resume(struct platform_device *device)
-{
-	if (verbose)
-		pr_notice("resuming\n");
-
-	return 0;
-}
-
 static int __devinit acerhdf_probe(struct platform_device *device)
 {
 	return 0;
@@ -464,15 +456,19 @@ static int acerhdf_remove(struct platform_device *device)
 	return 0;
 }
 
+static struct dev_pm_ops acerhdf_pm_ops = {
+	.suspend = acerhdf_suspend,
+	.freeze  = acerhdf_suspend,
+};
+
 static struct platform_driver acerhdf_driver = {
 	.driver = {
-		.name = "acerhdf",
+		.name  = "acerhdf",
 		.owner = THIS_MODULE,
+		.pm    = &acerhdf_pm_ops,
 	},
 	.probe = acerhdf_probe,
 	.remove = acerhdf_remove,
-	.suspend = acerhdf_suspend,
-	.resume = acerhdf_resume,
 };
 
 
-- 
1.6.4



-- 
Peter Feuerer <peter@piie.net>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] acerhdf: additional BIOS versions
  2009-08-13 10:17 [PATCH 1/2] acerhdf: convert to dev_pm_ops Peter Feuerer
@ 2009-08-13 10:19 ` Peter Feuerer
  2009-08-13 20:56 ` [PATCH 1/2] acerhdf: convert to dev_pm_ops Andrew Morton
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Feuerer @ 2009-08-13 10:19 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel, Borislav Petkov, lenb, Andreas Mohr, Peter Feuerer

Added BIOS versions:
Acer: AOA110-v0.3307, AOA150-v0.3301, AOA150-v0.3307
Pckard Bell: AOA150-v0.3105

Signed-off-by: Peter Feuerer <peter@piie.net>
Cc: Andreas Mohr <andi@lisas.de>
Cc: Borislav Petkov <petkovbb@googlemail.com>
Cc: Len Brown <lenb@kernel.org>
---
 drivers/platform/x86/acerhdf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index 8ff5639..e0d4f0b 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -139,13 +139,16 @@ static const struct bios_settings_t bios_tbl[] = {
 	{"Acer", "AOA110", "v0.3301", 0x55, 0x58, {0xaf, 0x00} },
 	{"Acer", "AOA110", "v0.3304", 0x55, 0x58, {0xaf, 0x00} },
 	{"Acer", "AOA110", "v0.3305", 0x55, 0x58, {0xaf, 0x00} },
+	{"Acer", "AOA110", "v0.3307", 0x55, 0x58, {0xaf, 0x00} },
 	{"Acer", "AOA110", "v0.3308", 0x55, 0x58, {0x21, 0x00} },
 	{"Acer", "AOA110", "v0.3309", 0x55, 0x58, {0x21, 0x00} },
 	{"Acer", "AOA110", "v0.3310", 0x55, 0x58, {0x21, 0x00} },
 	/* AOA150 */
 	{"Acer", "AOA150", "v0.3114", 0x55, 0x58, {0x20, 0x00} },
+	{"Acer", "AOA150", "v0.3301", 0x55, 0x58, {0x20, 0x00} },
 	{"Acer", "AOA150", "v0.3304", 0x55, 0x58, {0x20, 0x00} },
 	{"Acer", "AOA150", "v0.3305", 0x55, 0x58, {0x20, 0x00} },
+	{"Acer", "AOA150", "v0.3307", 0x55, 0x58, {0x20, 0x00} },
 	{"Acer", "AOA150", "v0.3308", 0x55, 0x58, {0x20, 0x00} },
 	{"Acer", "AOA150", "v0.3309", 0x55, 0x58, {0x20, 0x00} },
 	{"Acer", "AOA150", "v0.3310", 0x55, 0x58, {0x20, 0x00} },
@@ -154,6 +157,7 @@ static const struct bios_settings_t bios_tbl[] = {
 	{"Gateway", "AOA150", "v0.3103", 0x55, 0x58, {0x20, 0x00} },
 	{"Packard Bell", "DOA150", "v0.3104", 0x55, 0x58, {0x21, 0x00} },
 	{"Packard Bell", "AOA110", "v0.3105", 0x55, 0x58, {0x21, 0x00} },
+	{"Packard Bell", "AOA150", "v0.3105", 0x55, 0x58, {0x20, 0x00} },
 	/* pewpew-terminator */
 	{"", "", "", 0, 0, {0, 0} }
 };
-- 
1.6.4


-- 
Peter Feuerer <peter@piie.net>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] acerhdf: convert to dev_pm_ops
  2009-08-13 10:17 [PATCH 1/2] acerhdf: convert to dev_pm_ops Peter Feuerer
  2009-08-13 10:19 ` [PATCH 2/2] acerhdf: additional BIOS versions Peter Feuerer
@ 2009-08-13 20:56 ` Andrew Morton
  2009-08-13 21:25   ` Peter Feuerer
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2009-08-13 20:56 UTC (permalink / raw)
  To: Peter Feuerer; +Cc: linux-kernel, petkovbb, lenb, andi, peter

On Thu, 13 Aug 2009 12:17:22 +0200
Peter Feuerer <peter@piie.net> wrote:

> acerhdf: convert to dev_pm_ops
> 
> v 1.1:
> Add .freeze func ptr to support suspend-to-disk,
> as suggested by Dmitry Torokhov.
> 
> Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
> Signed-off-by: Peter Feuerer <peter@piie.net>
> Cc: Andreas Mohr <andi@lisas.de>
> Cc: Len Brown <lenb@kernel.org>

I believe that Boris wrote this, yes?

The way this patch/email was presented implies that you were the
primary author.

Please use an explicit From: line right at the top of the changelog
(after all the mail headers) to explicitly identify the primary author.

I added a

	From: Borislav Petkov <petkovbb@gmail.com>

to my copy of this patch.  Please let me kow if that was incorrect.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] acerhdf: convert to dev_pm_ops
  2009-08-13 20:56 ` [PATCH 1/2] acerhdf: convert to dev_pm_ops Andrew Morton
@ 2009-08-13 21:25   ` Peter Feuerer
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Feuerer @ 2009-08-13 21:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, petkovbb, lenb, andi

Andrew Morton writes:

> On Thu, 13 Aug 2009 12:17:22 +0200
> Peter Feuerer <peter@piie.net> wrote:
> 
>> acerhdf: convert to dev_pm_ops
>> 
>> v 1.1:
>> Add .freeze func ptr to support suspend-to-disk,
>> as suggested by Dmitry Torokhov.
>> 
>> Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
>> Signed-off-by: Peter Feuerer <peter@piie.net>
>> Cc: Andreas Mohr <andi@lisas.de>
>> Cc: Len Brown <lenb@kernel.org>
> 
> I believe that Boris wrote this, yes?

Yes, Boris wrote the patch.

> 
> The way this patch/email was presented implies that you were the
> primary author.
> 
> Please use an explicit From: line right at the top of the changelog
> (after all the mail headers) to explicitly identify the primary author.
> 
> I added a
> 
> 	From: Borislav Petkov <petkovbb@gmail.com>
> 
> to my copy of this patch.  Please let me kow if that was incorrect.

Thank you very much for adding this line. And thanks for teaching,.. yet 
another thing I've learned from you :)

--peter


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-13 21:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-13 10:17 [PATCH 1/2] acerhdf: convert to dev_pm_ops Peter Feuerer
2009-08-13 10:19 ` [PATCH 2/2] acerhdf: additional BIOS versions Peter Feuerer
2009-08-13 20:56 ` [PATCH 1/2] acerhdf: convert to dev_pm_ops Andrew Morton
2009-08-13 21:25   ` Peter Feuerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).