public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* patch & a question about the serial driver
@ 2004-06-20  2:55 Dino Klein
       [not found] ` <BAY16-F112kKIBXEHt30004aded-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Dino Klein @ 2004-06-20  2:55 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I am interested to know whether the patch below looks like a good idea as a 
way to allow the user to specify additional HIDs that the driver should 
handle; I had to add an HID to the list when I tried to get the Wacom device 
in my tablet to work, since it was using a different HID than the standard 
one for serial ports. This patch would allow the user to specify an 
alternative string of HIDs without having to recompile the kernel.
The extra question I have is about the HIDs listed in the 8250_pnp.c file; 
shouldn't those values (some, or all) be shared with between the two 
drivers? or are they unlikely to show up through ACPI?


--- linux-2.6.7-orig/drivers/serial/8250_acpi.c	2004-06-19 
22:07:23.668416224 -0400
+++ linux-2.6.7/drivers/serial/8250_acpi.c	2004-06-19 21:45:20.000000000 
-0400
@@ -21,6 +21,13 @@
#include <asm/io.h>
#include <asm/serial.h>

+
+static char *hids = "PNP0501";
+
+MODULE_PARM(hids, "s");
+
+
+
struct serial_private {
	int	line;
	void	*iomem_base;
@@ -173,7 +180,6 @@
static struct acpi_driver acpi_serial_driver = {
	.name =		"serial",
	.class =	"",
-	.ids =		"PNP0501",
	.ops =	{
		.add =		acpi_serial_add,
		.remove =	acpi_serial_remove,
@@ -182,6 +188,7 @@

static int __init acpi_serial_init(void)
{
+	acpi_serial_driver.ids = hids;
	return acpi_bus_register_driver(&acpi_serial_driver);
}

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-06-25 11:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-20  2:55 patch & a question about the serial driver Dino Klein
     [not found] ` <BAY16-F112kKIBXEHt30004aded-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
2004-06-20 15:47   ` Matthew Wilcox
     [not found]     ` <20040620154726.GT20511-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2004-06-20 22:20       ` PBLK length again Herman Sheremetyev
     [not found]         ` <1087770015.23371.27.camel-l85cmlzfk8I@public.gmane.org>
2004-06-21 20:05           ` Luca Capello
     [not found]             ` <40D73F9E.4030805-wlebWZzHoyE@public.gmane.org>
2004-06-21 20:40               ` Herman Sheremetyev
     [not found]                 ` <1087850404.2501.43.camel-O4LVqDAXoJg@public.gmane.org>
2004-06-23 13:32                   ` Stefan Seyfried
     [not found]                     ` <20040623133208.GA3152-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-06-24 16:21                       ` Karol Kozimor
     [not found]                         ` <20040624162117.GA697-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-06-24 18:08                           ` Herman Sheremetyev
2004-06-24 21:44                           ` Stefan Seyfried
2004-06-25 11:51                   ` Luca Capello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox