OpenCloudOS-Kernel/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 <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
..
xgbe amd-xgbe: Use platform_irq_count() 2022-06-13 23:12:39 -07:00
7990.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
7990.h net: 7990: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:26:14 -07:00
Kconfig eth: amd: remove NI6510 support (ni65) 2022-05-11 13:09:59 +01:00
Makefile eth: amd: remove NI6510 support (ni65) 2022-05-11 13:09:59 +01:00
a2065.c amd: a2065/ariadne: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
a2065.h
amd8111e.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
amd8111e.h net: amd: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
ariadne.c amd: a2065/ariadne: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
ariadne.h
atarilance.c amd: atarilance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
au1000_eth.c au1000_eth: stop using virt_to_bus() 2022-06-08 11:32:02 -07:00
au1000_eth.h au1000_eth: stop using virt_to_bus() 2022-06-08 11:32:02 -07:00
declance.c amd: declance: use eth_hw_addr_set() 2022-01-25 09:00:53 -08:00
hplance.c amd: hplance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
hplance.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lance.c amd: lance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
mvme147.c amd: mvme147: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
nmclan_cs.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
pcnet32.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
sun3lance.c ethernet: replace netdev->dev_addr assignment loops 2021-10-14 09:22:25 -07:00
sunlance.c ethernet: replace netdev->dev_addr assignment loops 2021-10-14 09:22:25 -07:00