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
a2065.c
a2065.h
amd8111e.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
amd8111e.h
ariadne.c
ariadne.h
atarilance.c
au1000_eth.c net/au1000-eth: stop using DMA_ATTR_NON_CONSISTENT 2020-09-25 06:20:42 +02:00
au1000_eth.h
declance.c
hplance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hplance.h
Kconfig net: remove am79c961a driver 2020-10-30 21:57:03 +01:00
lance.c
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
ni65.h
nmclan_cs.c
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