public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2]convert ACPI driver model to Linux driver model
@ 2005-09-12  5:22 Shaohua Li
       [not found] ` <1126502542.5153.17.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Shaohua Li @ 2005-09-12  5:22 UTC (permalink / raw)
  To: acpi-dev; +Cc: Len, Adam Belay

Hi,
I'm sending the patches out not for merging but for comments. The
patches try to convert ACPI driver model to Linux driver model. There
are still many things unsettled. If you have any
comment/suggestion/requirement, please let me know.

1. in my mind, acpi should export two sets of info in sysfs. One is
current namespace subsystem, it should just export the firmware info.
All acpi device/drivers related info don't export here. The other is
ACPI bus. It's similar with other buses like PCI bus.

2. I regard all devices which don't belong to physical buses in the DSDT
as ACPI bus devices. Ideally, PCI devices, PNP devices & other devices
should bind them to their physical buses. Since many devices listed in
DSDT aren't in ACPI bus, this makes it impossible to convert current
acpi driver model into Linux style. You might look at my patch, many
routines required by Linux driver model are empty. Though we can't
completely utilize the advantage of Linux driver model, the partial
convert still benefits us many such as sysfs support and suspend/resume
support.

3. The acpi namespace hotplug interface looks strange. After we
introduce ACPI bus (CPU is in the bus), we can send hotplug event
through it. So I'd like to remove the namespace hotplug interface later.

There are something to prevent us from completely converting ACPI driver
model to Linux style:
1. Current ACPI driver model can register drivers for all devices listed
in DSDT. ACPI bus can't handle this.
2. Current ACPI hotplug (CPU/IO) relays on separate .add/.start
callbacks, but Linux driver can only provide a .probe. We might split
ACPI hotplug support to separate drivers.
Since these, my patch just adds fake Linux driver model support, but it
still is very useful.

Thanks,
Shaohua



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

end of thread, other threads:[~2005-09-21  5:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-12  5:22 [RFC 0/2]convert ACPI driver model to Linux driver model Shaohua Li
     [not found] ` <1126502542.5153.17.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
2005-09-12 17:57   ` Dominik Brodowski
     [not found]     ` <20050912175741.GA15324-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
2005-09-13  6:50       ` Shaohua Li
2005-09-21  4:56       ` Adam Belay
2005-09-21  4:31   ` Adam Belay
     [not found]     ` <20050921043147.GA14734-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2005-09-21  5:37       ` Shaohua Li

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