linux/drivers/net/ethernet/amd
Guenter Roeck 66c3f05ddc pcnet32: Use pci_resource_len to validate PCI resource
pci_resource_start() is not a good indicator to determine if a PCI
resource exists or not, since the resource may start at address 0.
This is seen when trying to instantiate the driver in qemu for riscv32
or riscv64.

pci 0000:00:01.0: reg 0x10: [io  0x0000-0x001f]
pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000001f]
...
pcnet32: card has no PCI IO resources, aborting

Use pci_resouce_len() instead.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-06 16:30:17 -07:00
..
xgbe amd-xgbe: Update DMA coherency values 2021-03-25 16:57:18 -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
a2065.c net: amd: a2065: Use print_hex_dump_debug() helper 2020-01-12 16:20:26 -08:00
a2065.h
amd8111e.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
amd8111e.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
ariadne.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ariadne.h
atarilance.c net: atarilance: Replace zero-length array with flexible-array 2020-05-11 13:18:54 -07:00
au1000_eth.c net/au1000-eth: stop using DMA_ATTR_NON_CONSISTENT 2020-09-25 06:20:42 +02:00
au1000_eth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 400 2019-06-05 17:37:13 +02:00
declance.c drivers: net: declance: fix comparing pointer to 0 2020-01-21 12:04:57 +01:00
hplance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07: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
Kconfig net: remove am79c961a driver 2020-10-30 21:57:03 +01:00
lance.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
Makefile net: remove am79c961a driver 2020-10-30 21:57:03 +01:00
mvme147.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
ni65.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ni65.h
nmclan_cs.c net/amd: Remove useless driver version 2020-02-24 11:24:47 -08:00
pcnet32.c pcnet32: Use pci_resource_len to validate PCI resource 2021-04-06 16:30:17 -07:00
sun3lance.c net: sun3lance: Remove redundant checks in interrupt handler 2020-09-29 14:02:54 -07:00
sunlance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00