Thread (9 messages) 9 messages, 4 authors, 2025-12-11

Re: [PATCH V4 1/3] iommu/arm-smmu-v3: Add device-tree support for CMDQV driver

From: Robin Murphy <robin.murphy@arm.com>
Date: 2025-12-10 12:39:56
Also in: linux-devicetree, linux-iommu, linux-tegra, lkml, oe-kbuild-all

On 2025-12-10 5:19 am, Ashish Mhetre wrote:
[...]
Hi Robin, Nic,
We removed ACPI dependency in Kconfig but driver still depends
on ACPI for these functions. I will be protecting ACPIspecific
tegra241-cmdqv code under CONFIG_ACPI similar to what is done
in arm-smmu-v3 driver. Is this the correct thing to do or do you
have any other suggestions?
Yes, when I commented that "depends on ACPI || OF" was functionally the 
same as just removing "depends on ACPI", I didn't mean to suggest that 
wasn't necessarily a genuine dependency still.

I guess if you can wrap the ACPI-specific functions in a single #ifdef 
block that's reasonable, however I do now wonder whether things couldn't 
be factored out a bit more - if it's a standard DSDT/SSDT namespace 
device, shouldn't there also be a corresponding platform device created 
for it, which we could look up instead of delving directly into the _CRS 
of the ACPI node itself? (not sure off-hand if there's a straightforward 
inverse of ACPI_COMPANION()...)

Thanks,
Robin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help