]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
device property: Add fwnode_irq_get_byname
authorAkhil R <akhilrajeev@nvidia.com>
Fri, 28 Jan 2022 11:44:25 +0000 (17:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:43 +0000 (15:11 +0200)
commitc15e2ab4fed9a9dc6c90b20d50352b72fa093345
tree333d2f3c40be46960910c83db7d3bb6068070a75
parentbf36521e559e28928c7f860d8d2db97afb5dbc93
device property: Add fwnode_irq_get_byname

[ Upstream commit ca0acb511c21738b32386ce0f85c284b351d919e ]

Add fwnode_irq_get_byname() to get an interrupt by name from either
ACPI table or Device Tree, whichever is used for enumeration.

In the ACPI case, this allow us to use 'interrupt-names' in
_DSD which can be mapped to Interrupt() resource by index.
The implementation is similar to 'interrupt-names' in the
Device Tree.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Stable-dep-of: 8d3cefaf6592 ("i2c: core: Lock address during client device instantiation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/property.c
include/linux/property.h