From: "Dino Klein" <dinoklein-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
To: willy-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Where can I find some documentation/examples?
Date: Thu, 08 Jan 2004 15:15:46 +0000 [thread overview]
Message-ID: <Law11-F57d45M4kyMd500008bd9@hotmail.com> (raw)
One comment about removing - I didn't mean calling the serial device's
remove method in the ACPI namespace, but rather having the serial driver
call serial_unregister() to release the resources.
I would think that if the driver unregisters from the acpi bus, then it
should also release the resources, after all, wouldn't it be possible that
after the driver unregisters with the acpi bus, yet still holds the
resources, couldn't a second serial driver come along and register for the
same type of devices, and get the same serial device that is already handled
by the first serial driver?
>On Wed, Jan 07, 2004 at 11:26:08PM -0500, Dino Klein wrote:
> > I've taken a look at the serial driver's use of acpi in order to
>discover ports, and their resources (in kernel 2.6.0). One thing
> > puzzled me there, since it seems that it is possible to unload their
>acpi related, and therefore having it call
> > acpi_bus_unregister_driver(); however, as far as I can tell, the serial
>port itself is still being used by the serial driver. This
> > is why I'm not quite sure about the relationship between a regular linux
>driver, and the acpi subsystem.
> > So, any pointers would be appreciated.
>
>You don't necessarily want to take that driver as a good example of
>what's needed to write an ACPI driver. Actually somebody else just
>pointed out the same thing to me earlier today. On the systems I work
>on, I use serial console, so it's pretty much mandatory to have 8250
>built in and hence the remove method never gets called ;-)
>
>Take a look at something like the button driver instead.
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
next reply other threads:[~2004-01-08 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-08 15:15 Dino Klein [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-12 7:20 Where can I find some documentation/examples? Yu, Luming
2004-01-08 4:26 Dino Klein
[not found] ` <LAW11-OE2428gdq0f690001fb1d-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
2004-01-08 4:52 ` Matthew Wilcox
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=Law11-F57d45M4kyMd500008bd9@hotmail.com \
--to=dinoklein-pkbjnfxxiarbdgjk7y7tuq@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=willy-8fiUuRrzOP0dnm+yROfE0A@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