From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Stefan Bader <stefan.bader@canonical.com>
Cc: 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, 5 Oct 2009 10:02:25 -0600 [thread overview]
Message-ID: <200910051002.26385.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <4ACA1743.5030500@canonical.com>
On Monday 05 October 2009 09:56:51 am Stefan Bader wrote:
> Bjorn Helgaas wrote:
> > On Monday 05 October 2009 06:05:54 am Stefan Bader wrote:
> >>>>>> <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.
> >
> > This smells like a maintenance problem. The driver only works on the
> > specific machines and BIOS versions compiled into it. That means you
> > have to update the driver every time a new machine comes out. A major
> > goal of ACPI is to avoid stuff like that.
> >
> > Are you sure there's no way to make this driver work in a generic way,
> > e.g., by claiming an ACPI device?
>
> The driver is currently only targeted at a small set of netbooks and even there
> some registers have changed between sub models or bios versions.
> The functions are implemented by poking and reading bits from the EC. No acpi
> interface to which one relate as far as I know. Maybe wmi, but from the
> experiences with acer-wmi, I doubt anything works. At least acer-wmi now
> explicitly blacklist these models for uselessness.
> So the driver performs very strict bios version checks and every unknown
> version get a big warning printed. Which you do not want to be issued on every
> hardware of one of these vendors. Which happens with the driver as it is now.
I understand the motivation for the current patch, and I'm not asking
about it in particular. My concern is about the underlying structure
of the driver.
I'm just asking why we would want a driver that requires an update
for every new machine. That sort of ongoing maintenance is a good
sign that we're doing something wrong.
Bjorn
next prev parent reply other threads:[~2009-10-05 16:03 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
2009-10-05 15:19 ` Bjorn Helgaas
2009-10-05 15:56 ` Stefan Bader
2009-10-05 16:02 ` Bjorn Helgaas [this message]
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=200910051002.26385.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=peter@piie.net \
--cc=petkovbb@gmail.com \
--cc=stefan.bader@canonical.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