1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/amd/xgbe
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 <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>
2022-06-13 23:12:39 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xgbe-common.h net: amd-xgbe: Alter the port speed bit range 2021-12-20 18:42:39 -08:00
xgbe-dcb.c amd-xgbe: Do traffic class setup when called through dcbnl 2016-02-17 15:22:20 -05:00
xgbe-debugfs.c xgbe: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
xgbe-desc.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
xgbe-dev.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
xgbe-drv.c net: amd-xgbe: fix clang -Wformat warning 2022-06-08 21:12:03 -07:00
xgbe-ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
xgbe-i2c.c net: amd-xgbe: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
xgbe-main.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
xgbe-mdio.c net: amd-xgbe: Reset link when the link never comes back 2021-02-16 14:09:45 -08:00
xgbe-pci.c net: amd-xgbe: disable interrupts during pci removal 2022-02-09 12:52:59 +00:00
xgbe-phy-v1.c amd-xgbe: Convert to using the new link mode settings 2017-08-18 16:30:17 -07:00
xgbe-phy-v2.c net: amd-xgbe: Alter the port speed bit range 2021-12-20 18:42:39 -08:00
xgbe-platform.c amd-xgbe: Use platform_irq_count() 2022-06-13 23:12:39 -07:00
xgbe-ptp.c amd-xgbe: Use the proper register during PTP initialization 2017-06-29 15:14:16 -04:00
xgbe.h net: allow gso_max_size to exceed 65536 2022-05-16 10:18:55 +01:00