aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2024-08-08 15:36:28 +0300
committerMark Brown <broonie@kernel.org>2024-08-13 12:45:01 +0100
commitdde286ee57704226b500cb9eb59547fec07aad3d (patch)
treebaf33bf14f320ce25c68d42740a473d3e96dcf9e /include/linux/regmap.h
parentirqdomain: Allow giving name suffix for domain (diff)
downloadwireguard-linux-dde286ee57704226b500cb9eb59547fec07aad3d.tar.xz
wireguard-linux-dde286ee57704226b500cb9eb59547fec07aad3d.zip
regmap: Allow setting IRQ domain name suffix
When multiple IRQ domains are created from the same device-tree node they will get the same name based on the device-tree path. This will cause a naming collision in debugFS when IRQ domain specific entries are created. The regmap-IRQ creates per instance IRQ domains. This will lead to a domain name conflict when a device which provides more than one interrupt line uses the regmap-IRQ. Add support for specifying an IRQ domain name suffix when creating a regmap-IRQ controller. Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://patch.msgid.link/776bc4996969e5081bcf61b9bdb5517e537147a3.1723120028.git.mazziesaccount@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 122e38161acb..f9ccad32fc5c 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -1521,6 +1521,9 @@ struct regmap_irq_chip_data;
* struct regmap_irq_chip - Description of a generic regmap irq_chip.
*
* @name: Descriptive name for IRQ controller.
+ * @domain_suffix: Name suffix to be appended to end of IRQ domain name. Needed
+ * when multiple regmap-IRQ controllers are created from same
+ * device.
*
* @main_status: Base main status register address. For chips which have
* interrupts arranged in separate sub-irq blocks with own IRQ
@@ -1606,6 +1609,7 @@ struct regmap_irq_chip_data;
*/
struct regmap_irq_chip {
const char *name;
+ const char *domain_suffix;
unsigned int main_status;
unsigned int num_main_status_bits;