aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker <[email protected]>2022-06-09 16:14:59 +0000
committerJakub Kicinski <[email protected]>2022-06-14 06:12:39 +0000
commit884c65e4daf3eab8730b2bbd5abc5a2c0403b3f3 (patch)
tree1d64c3e8f1988489d17393c9ff244892589b0e22 /net/switchdev/switchdev.c
parentocteontx2-vf: Add support for adaptive interrupt coalescing (diff)
downloadkernel-884c65e4daf3eab8730b2bbd5abc5a2c0403b3f3.tar.gz
kernel-884c65e4daf3eab8730b2bbd5abc5a2c0403b3f3.zip
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 <[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]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions