[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMP44s0ShT6+msCm0T+cpwzktzQZ9OtD2MOXg3AQACkyjB92GQ@mail.gmail.com>
Date: Tue, 8 Oct 2013 07:57:38 -0500
From: Felipe Contreras <felipe.contreras@...il.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: "open list:ASUS NOTEBOOKS AN..."
<platform-driver-x86@...r.kernel.org>,
"open list:ASUS NOTEBOOKS AN..."
<acpi4asus-user@...ts.sourceforge.net>,
Linux PM <linux-pm@...r.kernel.org>,
Matthew Garrett <matthew.garrett@...ula.com>,
Corentin Chary <corentin.chary@...il.com>,
Felipe Contreras <felipe.contreras@...il.com>
Subject: Re: [PATCH v2] platform: x86: asus-wmi: add fan control
On Tue, Oct 8, 2013 at 7:48 AM, Felipe Contreras
<felipe.contreras@...il.com> wrote:
> Simple driver to enable control of the fan in ASUS laptops. So far this
> has only been tested in ASUS Zenbook Prime UX31A, but according to some
> online reference [1], it should work in other models as well.
>
> The implementation is very straight-forward, the only caveat is that the
> fan speed needs to be saved after it has been manually changed because
> it won't be reported properly until it goes back to 'auto' mode.
>
> [1] http://forum.notebookreview.com/asus/705656-fan-control-asus-prime-ux31-ux31a-ux32a-ux32vd.html
>
> Signed-off-by: Felipe Contreras <felipe.contreras@...il.com>
> + r = asus_wmi_evaluate_method(ASUS_WMI_METHODID_AGFN, virt_to_phys(&args), 0, &value);
I don't like using virt_to_phys() here, but it seems that's what the
ACPI code expects.
Method (AGFN, 1, Serialized)
{
If (LEqual (Arg0, Zero))
{
Return (GNBF)
}
Store (Zero, Local0)
OperationRegion (\PARM, SystemMemory, Arg0, 0x08)
Field (PARM, DWordAcc, NoLock, Preserve)
{
MFUN, 16,
SFUN, 16,
LEN, 16,
STAS, 8,
EROR, 8
}
Any suggestions?
--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists