Open jan-kiszka opened 1 month ago
Hi @jan-kiszka! We appreciate you submitting your first issue for our open-source project. π
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. π€π
@glneo
Introduction
Let's consolidate over a single name to describe the IRQ type in interrupt controller bindings.
Problem description
There are currently 7 interrupt controller bindings using "sense" as cell name to describe the IRQ type and 6 using "flags". Drivers that shall be used with different controllers may be forced to look after both cell names - or fail to do that, see e.g.
https://github.com/zephyrproject-rtos/zephyr/blob/c710f8892beef3e486dded2f0ad4394e4a4d9aa0/drivers/serial/uart_ns16550.c#L1791
This is a source of subtle problems.
Proposed change
I have no strong preference about a unified name. We can either pick one of the two or maybe even rename them all to
type
so that usingIRQ_TYPE_*
constants for it feels more natural. I'm happy to write a PR for any of such renamings.Future bindings should then be forced to use the new name for the flags/sense/type cell.
Dependencies
None.
Concerns and Unresolved Questions
See above: decision about the name is needed.
Alternatives
Applying lots of changes like this:
One could also provide some common macro for that, of course, but all that would look strange.