public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Dino Klein" <dinoklein-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: patch & a question about the serial driver
Date: Sat, 19 Jun 2004 23:55:09 -0300	[thread overview]
Message-ID: <BAY16-F112kKIBXEHt30004aded@hotmail.com> (raw)

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

             reply	other threads:[~2004-06-20  2:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-20  2:55 Dino Klein [this message]
     [not found] ` <BAY16-F112kKIBXEHt30004aded-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
2004-06-20 15:47   ` patch & a question about the serial driver 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

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=BAY16-F112kKIBXEHt30004aded@hotmail.com \
    --to=dinoklein-pkbjnfxxiarbdgjk7y7tuq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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