Cc: Vegard Nossum <vegard.nossum@...>, Ingo Molnar <mingo@...>, Len Brown <lenb@...>, <linux-kernel@...>, <linux-acpi@...>, Rafael J. Wysocki <rjw@...>, Alexey Starikovskiy <astarikovskiy@...>, Yinghai Lu <yhlu.kernel@...>
On Wednesday 25 June 2008 09:02:48 pm Zhao Yakui wrote:
There are exceptions, and obviously acpi_walk_namespace() will be
needed some places.
One example where I think acpi_walk_namespace() should not be used
is to register notification functions for device addition/removal.
I think the ACPI core should be handling those notify events and
turning them into add()/remove() calls to the driver.
If the bay/dock device doesn't exist, we shouldn't need a driver
for it. The normal scenario for non-ACPI drivers is that we load
a driver when a device appears. That doesn't work very well in
this case because the ACPI core is missing the "TBD: Handle device
insertion/removal" stuff I mentioned earlier.
I know it's not very useful for me to talk about this without
providing any patches, so I'll shut up now.
Bjorn
--