* [PATH] No Thinkpad Module Autoloading On T30
@ 2009-02-14 22:34 Mathieu Chouquet-Stringer
2009-02-15 12:59 ` Henrique de Moraes Holschuh
0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Chouquet-Stringer @ 2009-02-14 22:34 UTC (permalink / raw)
To: ibm-acpi; +Cc: ibm-acpi-devel, linux-kernel
Hello,
I'm running 2.6.29-rc5 on my aging T30 laptop (2366-21U) and just
realized thinkpad_acpi wasn't loaded.
Looking at the source, there seems to be a missing * to match my DMI
string. I mean for newer IBM and Lenovo's laptops you match either one
of the following:
MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*");
MODULE_ALIAS("dmi:bvnLENOVO:*:svnLENOVO:*:pvrThinkPad*:rvnLENOVO:*");
While for older Thinkpads, you do this (for instance):
IBM_BIOS_MODULE_ALIAS("1[0,3,6,8,A-G,I,K,M-P,S,T]");
with IBM_BIOS_MODULE_ALIAS being MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW")
Note there's no * terminating the string. As result, udev doesn't load
anything because modprobe cannot find anything matching this (my
machine actually):
udevtest: run: '/sbin/modprobe dmi:bvnIBM:bvr1IET71WW(2.10):bd06/16/2006:svnIBM:pn236621U:pvrNotAvailable:rvnIBM:rn236621U:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:'
So here's my contribution...
Best,
Signed-off-by: Mathieu Chouquet-Stringer <mchouque@free.fr>
---
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index bcbc051..70e702a 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -7532,7 +7532,7 @@ MODULE_ALIAS(TPACPI_DRVR_SHORTNAME);
* if it is not there yet.
*/
#define IBM_BIOS_MODULE_ALIAS(__type) \
- MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW")
+ MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW*")
/* Non-ancient thinkpads */
MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*");
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATH] No Thinkpad Module Autoloading On T30
2009-02-14 22:34 [PATH] No Thinkpad Module Autoloading On T30 Mathieu Chouquet-Stringer
@ 2009-02-15 12:59 ` Henrique de Moraes Holschuh
2009-02-15 13:01 ` Mathieu Chouquet-Stringer
0 siblings, 1 reply; 3+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-02-15 12:59 UTC (permalink / raw)
To: Mathieu Chouquet-Stringer, ibm-acpi, ibm-acpi-devel, linux-kernel
On Sat, 14 Feb 2009, Mathieu Chouquet-Stringer wrote:
> Looking at the source, there seems to be a missing * to match my DMI
> string. I mean for newer IBM and Lenovo's laptops you match either one
> of the following:
> MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*");
> MODULE_ALIAS("dmi:bvnLENOVO:*:svnLENOVO:*:pvrThinkPad*:rvnLENOVO:*");
>
> While for older Thinkpads, you do this (for instance):
> IBM_BIOS_MODULE_ALIAS("1[0,3,6,8,A-G,I,K,M-P,S,T]");
>
> with IBM_BIOS_MODULE_ALIAS being MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW")
>
> Note there's no * terminating the string. As result, udev doesn't load
> anything because modprobe cannot find anything matching this (my
> machine actually):
>
> udevtest: run: '/sbin/modprobe dmi:bvnIBM:bvr1IET71WW(2.10):bd06/16/2006:svnIBM:pn236621U:pvrNotAvailable:rvnIBM:rn236621U:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:'
>
> So here's my contribution...
>
> Best,
>
> Signed-off-by: Mathieu Chouquet-Stringer <mchouque@free.fr>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
I will:
1. retitle the patch to "thinkpad-acpi: fix module autoloading on older models"
2. add the cc for stable@kernel.org
2. queue it to make sure it won't get lost
3. check if Len would take it for 2.6.29 since it is a simple, obvious fix.
If not, it will go in during the 2.6.30 merge window. After it gets into
mainline, it will go to the stable trees.
Thank you.
> ---
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index bcbc051..70e702a 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -7532,7 +7532,7 @@ MODULE_ALIAS(TPACPI_DRVR_SHORTNAME);
> * if it is not there yet.
> */
> #define IBM_BIOS_MODULE_ALIAS(__type) \
> - MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW")
> + MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW*")
>
> /* Non-ancient thinkpads */
> MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*");
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATH] No Thinkpad Module Autoloading On T30
2009-02-15 12:59 ` Henrique de Moraes Holschuh
@ 2009-02-15 13:01 ` Mathieu Chouquet-Stringer
0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Chouquet-Stringer @ 2009-02-15 13:01 UTC (permalink / raw)
To: Henrique de Moraes Holschuh; +Cc: ibm-acpi, ibm-acpi-devel, linux-kernel
On Sun, Feb 15, 2009 at 09:59:15AM -0300, Henrique de Moraes Holschuh wrote:
> I will:
> 1. retitle the patch to "thinkpad-acpi: fix module autoloading on older models"
> 2. add the cc for stable@kernel.org
> 2. queue it to make sure it won't get lost
> 3. check if Len would take it for 2.6.29 since it is a simple, obvious fix.
> If not, it will go in during the 2.6.30 merge window. After it gets into
> mainline, it will go to the stable trees.
>
> Thank you.
Works for me! Thanks much.
--
Mathieu Chouquet-Stringer mchouque@free.fr
The sun itself sees not till heaven clears.
-- William Shakespeare --
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-15 13:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-14 22:34 [PATH] No Thinkpad Module Autoloading On T30 Mathieu Chouquet-Stringer
2009-02-15 12:59 ` Henrique de Moraes Holschuh
2009-02-15 13:01 ` Mathieu Chouquet-Stringer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox