From: Bjorn Helgaas <bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
To: shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
ambx1-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] add "pnpacpi=off", print info during discovery
Date: Tue, 11 Jan 2005 17:25:41 -0700 [thread overview]
Message-ID: <1105489541.31942.81.camel@eeyore> (raw)
Make PNPACPI IDs uppercase, not lower (the specs, etc, are
typically uppercase, but if you prefer it lower for some
reason, feel free to ignore this hunk). Print info about
devices found via PNPACPI. Add "pnpacpi=off" option to
disable PNPACPI even when compiled in.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
--- pnp1/drivers/pnp/pnpacpi/core.c.1 2005-01-11 15:36:30.000000000 -0700
+++ pnp1/drivers/pnp/pnpacpi/core.c 2005-01-11 15:41:02.000000000 -0700
@@ -77,10 +77,10 @@
str[0] = id[0];
str[1] = id[1];
str[2] = id[2];
- str[3] = tolower(id[3]);
- str[4] = tolower(id[4]);
- str[5] = tolower(id[5]);
- str[6] = tolower(id[6]);
+ str[3] = id[3];
+ str[4] = id[4];
+ str[5] = id[5];
+ str[6] = id[6];
str[7] = '\0';
}
@@ -142,7 +142,6 @@
is_exclusive_device(device))
return 0;
- pnp_dbg("ACPI device : hid %s", acpi_device_hid(device));
dev = pnpacpi_kmalloc(sizeof(struct pnp_dev), GFP_KERNEL);
if (!dev) {
pnp_err("Out of memory");
@@ -220,6 +219,9 @@
pnp_add_device(dev);
num++;
+ pnp_info("%s ACPI device %s (%s)", dev->dev.bus_id, dev->name,
+ acpi_device_hid(device));
+
return AE_OK;
err1:
kfree(dev_id);
@@ -240,8 +242,24 @@
return AE_OK;
}
+static int __initdata pnpacpi_disabled;
+
+static int __init pnpacpi_setup(char *str)
+{
+ if (strncmp(str, "off", 3) == 0)
+ pnpacpi_disabled = 1;
+
+ return 1;
+}
+__setup("pnpacpi=", pnpacpi_setup);
+
int __init pnpacpi_init(void)
{
+ if (pnpacpi_disabled) {
+ pnp_info("PnP ACPI: Disabled");
+ return 0;
+ }
+
if (acpi_disabled) {
pnp_info("PnP ACPI: ACPI disabled");
return 0;
===== Documentation/kernel-parameters.txt 1.67 vs edited =====
--- 1.67/Documentation/kernel-parameters.txt 2005-01-07 22:44:15 -07:00
+++ edited/Documentation/kernel-parameters.txt 2005-01-11 15:58:28 -07:00
@@ -1010,6 +1010,9 @@
Format: { parport<nr> | timid | 0 }
See also Documentation/parport.txt.
+ pnpacpi= [PNPACPI]
+ off Don't use ACPI to find PNP devices
+
pnpbios= [ISAPNP]
{ on | off | curr | res | no-curr | no-res }
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next reply other threads:[~2005-01-12 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 0:25 Bjorn Helgaas [this message]
2005-01-12 1:02 ` [PATCH] add "pnpacpi=off", print info during discovery Li Shaohua
[not found] ` <1105491763.29370.5.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2005-01-13 16:07 ` Bjorn Helgaas
2005-01-13 18:13 ` Adam Belay
[not found] ` <20050113181333.GS6069-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2005-01-14 1:35 ` Li Shaohua
[not found] ` <1105666525.22995.9.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2005-01-14 18:28 ` Bjorn Helgaas
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=1105489541.31942.81.camel@eeyore \
--to=bjorn.helgaas-vxdhtt5mjny@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=ambx1-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org \
--cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/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