Re: [PATCH v5 2/8] ACPI: property: Parse _CRS CSI-2 descriptor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 07, 2023 at 09:00:30PM +0200, Sakari Ailus wrote:
> Another option could be to opportunistically initialise a device, and once
> encountering a "mipi-img-port-*" node in _DSD property parsing, bail out
> and postpone initialisation of the device on first namespace traversal.
> This would mean adding some extra error handling in e.g.
> acpi_init_device_object() callers.

What I think could be also done is to collect the handles with these nodes
to a list (requires struct list_head in struct acpi_device) in order to
create the devices after tree traversal.

This approach might be usable for even getting rid of the second pass
altogether, with the tradeoff of requiring a little bit of extra memory.

-- 
Sakari Ailus



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux