Files
linux/drivers/net/ethernet/amd
Jean-Philippe Brucker 884c65e4da amd-xgbe: Use platform_irq_count()
The AMD XGbE driver currently counts the number of interrupts assigned
to the device by inspecting the pdev->resource array. Since commit
a1a2b7125e ("of/platform: Drop static setup of IRQ resource from DT
core") removed IRQs from this array, the driver now attempts to get all
interrupts from 1 to -1U and gives up probing once it reaches an invalid
interrupt index.

Obtain the number of IRQs with platform_irq_count() instead.

Fixes: a1a2b7125e ("of/platform: Drop static setup of IRQ resource from DT core")
Signed-off-by: Jean-Philippe Brucker <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2022-06-13 23:12:39 -07:00
..
2022-06-13 23:12:39 -07:00
…
…
2021-11-19 11:05:20 +00:00
…
2022-05-11 13:09:59 +01:00
2021-11-19 11:05:20 +00:00
2021-11-19 11:05:20 +00:00