diff options
author | Daniel Almeida <daniel.almeida@collabora.com> | 2025-08-11 13:03:43 -0300 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-08-12 20:32:24 +0200 |
commit | 17e70f0c549f4a19da7d681d60b552901833f8f3 (patch) | |
tree | 6faebd3b83ce0ec4eeb39ae5ebbcfec44cccd8c4 /rust/kernel/pci.rs | |
parent | 135d40523244dcad3c64eb2ce131cf018db5cff4 (diff) |
rust: platform: add irq accessors
These accessors can be used to retrieve a irq::Registration and
irq::ThreadedRegistration from a platform device by
index or name. Alternatively, drivers can retrieve an IrqRequest from a
bound platform device for later use.
These accessors ensure that only valid IRQ lines can ever be registered.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Joel Fernandes <joelagnelf@nvidia.com>
Tested-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250811-topics-tyr-request_irq2-v9-5-0485dcd9bcbf@collabora.com
[ Remove expect(dead_code) from IrqRequest::new(), re-format macros and
macro invocations to not exceed 100 characters line length. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/pci.rs')
0 files changed, 0 insertions, 0 deletions