DynamicTables: Fix DT PCI interrupt flags parsing
Device Tree PCI interrupt flags use the convention described at linux/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml The 3rd cell is the flags, encoded as follows: bits[3:0] trigger type and level flags. 1 = low-to-high edge triggered 2 = high-to-low edge triggered (invalid for SPIs) 4 = active high level-sensitive 8 = active low level-sensitive (invalid for SPIs). Fix the incorrect code. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
039bdb4d3e
commit
fc4a132c0e
@@ -449,7 +449,7 @@ GeneratePrt (
|
||||
if ((Index > 0) &&
|
||||
(IrqMapInfo->IntcInterrupt.Interrupt >= 32) &&
|
||||
(IrqMapInfo->IntcInterrupt.Interrupt < 1020) &&
|
||||
((IrqMapInfo->IntcInterrupt.Flags & 0x3) != BIT0))
|
||||
((IrqMapInfo->IntcInterrupt.Flags & 0xB) != 0))
|
||||
{
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
Reference in New Issue
Block a user