diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2022-06-09 19:14:59 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-14 09:12:39 +0300 |
commit | 884c65e4daf3eab8730b2bbd5abc5a2c0403b3f3 (patch) | |
tree | 1d64c3e8f1988489d17393c9ff244892589b0e22 /Documentation/networking | |
parent | 619c010a65391d06bc96e79fa0e7725790e5d1a9 (diff) | |
download | linux-884c65e4daf3eab8730b2bbd5abc5a2c0403b3f3.tar.xz |
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
a1a2b7125e10 ("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: a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource from DT core")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20220609161457.69614-1-jean-philippe@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions