irqdomain: Add bus token DOMAIN_BUS_WAKEUP
authorLina Iyer <ilina@codeaurora.org>
Fri, 15 Nov 2019 22:11:44 +0000 (15:11 -0700)
committerMarc Zyngier <maz@kernel.org>
Sat, 16 Nov 2019 10:18:52 +0000 (10:18 +0000)
commitd46bca2b5d06cbb5f3e66945080f275bcfab7181
treedaa289a2090c473ebd69d13f774efcf62b680251
parent761becb29183c4e2ad9ff5f63933170c8fffd544
irqdomain: Add bus token DOMAIN_BUS_WAKEUP

A single controller can handle normal interrupts and wake-up interrupts
independently, with a different numbering space. It is thus crucial to
allow the driver for such a controller discriminate between the two.

A simple way to do so is to tag the wake-up irqdomain with a "bus token"
that indicates the wake-up domain. This slightly abuses the notion of
bus, but also radically simplifies the design of such a driver. Between
two evils, we choose the least damaging.

Suggested-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1573855915-9841-2-git-send-email-ilina@codeaurora.org
include/linux/irqdomain.h