FdtNode::interrupts()
can not handle ARM interrupt properties
#12
Milestone
FdtNode::interrupts()
can not handle ARM interrupt properties
#12
On ARM,
#interrupt-cells
property value is usually 3:https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/arm%2Cgic.txt.
This common case is not handled by the current method implementation:
fdt/src/node.rs
Lines 256 to 260 in 0c2fb5b
Also, interpreting the
#interrupt-cells = <2>
case as a singleu64
interrupt number does not seem correct either,because the Linux kernel docs say that those two cells encode entirely different things:
Source: https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
To handle all variants of interrupts correctly, this method should probably return an iterator over a custom
Interrupt
type,just like
FdtNode::reg()
returns an iterator overMemoryRegion
items.The text was updated successfully, but these errors were encountered: