public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Bader <stefan.bader@canonical.com>
To: lenb@kernel.org,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	Borislav Petkov <petkovbb@gmail.com>,
	Peter Feuerer <peter@piie.net>
Subject: Re: [Fwd: Re: [PATCH] acerhdf: Limit modalias matching to supported boards]
Date: Mon, 05 Oct 2009 14:05:54 +0200	[thread overview]
Message-ID: <4AC9E122.8050609@canonical.com> (raw)
In-Reply-To: <4AC9E0F3.5030605@canonical.com>

[-- Attachment #1: Type: text/plain, Size: 2613 bytes --]

Stefan Bader wrote:
> Len,
> 
> could you please pick this patch to prevent the acerhdf module to get 
> loaded on the wrong hardware (causing only annoying warnings.
> 
> Thanks,
> Stefan
> 
> -------- Original Message --------
> Subject: Re: [PATCH] acerhdf: Limit modalias matching to supported boards
> Date: Sat, 03 Oct 2009 18:47:33 +0200
> From: Peter Feuerer <peter@piie.net>
> To: Stefan Bader <stefan.bader@canonical.com>
> CC: Borislav Petkov <petkovbb@googlemail.com>, linux-kernel@vger.kernel.org
> References: <4AC34B83.6090402@canonical.com> 
> <20090930212233.GB17712@liondog.tnic> 
> <cone.1254466252.404216.3290.1000@onepiie> 
> <4AC5B0F1.4030303@canonical.com> 
> <9ea470500910020254j21fad1d3g1c825bcecdbb29fb@mail.gmail.com> 
> <cone.1254477850.9043.3499.1000@onepiie> <4AC5D098.1010504@canonical.com>
> 
> Stefan Bader writes:
> 
>> Peter Feuerer wrote:
>>> Borislav Petkov writes:
>>>
>>>> On Fri, Oct 2, 2009 at 9:51 AM, Stefan Bader 
>>>> <stefan.bader@canonical.com> wrote:
>>>>>>> I search my acerhdf-inbox for the people who sent me the BIOS 
>>>>>>> versions,
>>>>>> maybe they still have the netbook and can me send the modalias 
>>>>>> content. I'll
>>>>>> hopefully find some time upcoming weekend.
>>>>>>
>>>>>> But, can't we simply assume, following dmi lines?
>>>>>>
>>>>>> MODULE_ALIAS("dmi:*:*Acer*:*AOA*:");
>>>>>> MODULE_ALIAS("dmi:*:*Gateway*:*AOA*:");
>>>>>> MODULE_ALIAS("dmi:*:*Packard Bell*:*AOA*:");
>>>>>> MODULE_ALIAS("dmi:*:*Packard Bell*:*DOA*:");
>>>>>>
>>>>>> We have exactly those constellations within the BIOS settings 
>>>>>> table. If I
>>>>>> interpret the modalias line correctly, "pnAOA110" means "Product Name
>>>>>> AOA110" and that's what we have already in the BIOS settings 
>>>>>> table. So I
>>>>>> think we do already have all information we need to create a 
>>>>>> complete patch
>>>>>> for the problem, or am I wrong?
>>>>>
>>>>> Right pn means that. I would strongly believe the above changes 
>>>>> should be
>>>>> good. I sometimes tend to be over-cautious. Attaching a refreshed 
>>>>> patch
>>>>> which includes them all.
>>>>
>>>> Well, acerhdf.c and dmi-id.c both do
>>>> dmi_get_system_info(DMI_PRODUCT_NAME) when querying product name which
>>>> means that the product names in the acerhdf table and the dmi-id ones
>>>> are actually one and the same thing.
>>>>
>>>> IMO, we should just go ahead send it to Len. Stefan, you have my ACK.
> 
> Acked-by: Peter Feuerer <peter@piie.net>
> 
> Thank you Stefan!
> 
> regards,
> --peter
> 

Doh! This time _with_ the patch...



-- 

When all other means of communication fail, try words!



[-- Attachment #2: 0001-acerhdf-Limit-modalias-matching-to-supported-boards.patch --]
[-- Type: text/x-diff, Size: 1593 bytes --]

>From 60cdb7bea856fdd594262ee1e9608cd2210cf196 Mon Sep 17 00:00:00 2001
From: Stefan Bader <stefan.bader@canonical.com>
Date: Mon, 28 Sep 2009 17:11:29 +0000
Subject: [PATCH] acerhdf: Limit modalias matching to supported boards

BugLink: https://bugs.launchpad.net/ubuntu/+bug/435958

The module alias currently matches any Acer computer but when loaded the
BIOS checks will only succeed on Aspire One models. This causes a invalid
BIOS warning for all other models (seen on Aspire 4810T).
This is not fatal but worries users that see this message. Limiting the
moule alias to models starting with AOA or DOA for Packard Bell.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Acked-by: Peter Feuerer <peter@piie.net>
---
 drivers/platform/x86/acerhdf.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index 0a8f735..23eea4c 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -629,9 +629,10 @@ static void __exit acerhdf_exit(void)
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Peter Feuerer");
 MODULE_DESCRIPTION("Aspire One temperature and fan driver");
-MODULE_ALIAS("dmi:*:*Acer*:*:");
-MODULE_ALIAS("dmi:*:*Gateway*:*:");
-MODULE_ALIAS("dmi:*:*Packard Bell*:*:");
+MODULE_ALIAS("dmi:*:*Acer*:pnAOA*:");
+MODULE_ALIAS("dmi:*:*Gateway*:pnAOA*:");
+MODULE_ALIAS("dmi:*:*Packard Bell*:pnAOA*:");
+MODULE_ALIAS("dmi:*:*Packard Bell*:pnDOA*:");
 
 module_init(acerhdf_init);
 module_exit(acerhdf_exit);
-- 
1.5.4.3


  reply	other threads:[~2009-10-05 12:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05 12:05 [Fwd: Re: [PATCH] acerhdf: Limit modalias matching to supported boards] Stefan Bader
2009-10-05 12:05 ` Stefan Bader [this message]
2009-10-05 15:19   ` Bjorn Helgaas
2009-10-05 15:56     ` Stefan Bader
2009-10-05 16:02       ` Bjorn Helgaas
2009-10-05 16:41         ` [PATCH] acerhdf: Limit modalias matching to supported boards Peter Feuerer
2009-10-22 12:12   ` [PATCH][RESEND] " Stefan Bader
2009-10-22 12:23     ` Peter Feuerer
2009-10-22 14:26       ` [PATCH][RESEND] acerhdf: Limit modalias matching to supported Stefan Bader
2009-11-09  8:48         ` Stefan Bader

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=4AC9E122.8050609@canonical.com \
    --to=stefan.bader@canonical.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=peter@piie.net \
    --cc=petkovbb@gmail.com \
    /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