On Mon, 2014-04-28 at 00:26 +0200, Rafael J. Wysocki wrote:
On Tuesday, April 08, 2014 12:06:59 AM Zhang Rui wrote:that's what I mean by saying "indirectly". :)
For some devices with scan handler attached, their children devicesThis isn't the case really. They are enumerated by bus controller drivers
are enumerated by the scan handler, indirectly.
for the buses they are on.
hmmm, how about this,In this case, we do not want to enumerate the children devices inI'm not sure if that is the right approach. I would prefer that to be
acpi scan code explicitly.
Thus a new flag .handle_children is introduced in this patch.
For scan handlers with this flag set, we will do default enumeration neither
for the attached devices nor for the children of the attached devices.
handled in a more fine-graind manner, like a flag per device ID or something
similar?
first, keep the device->flags.no_child_enumeration flag introduced in
this patch
second, set the flag explicitly, for specified devices, in the scan
handler .attach() function.