Skip to content

Commit a29689e

Browse files
niklas88davem330
authored andcommitted
net: handle HAS_IOPORT dependencies
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers requiring them. For the DEFXX driver the use of I/O ports is optional and we only need to fence specific code paths. It also turns out that with HAS_IOPORT handled explicitly HAMRADIO does not need the !S390 dependency and successfully builds the bpqether driver. Acked-by: Marc Kleine-Budde <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Acked-by: Maciej W. Rozycki <[email protected]> Co-developed-by: Arnd Bergmann <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Niklas Schnelle <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6e51d91 commit a29689e

File tree

18 files changed

+25
-22
lines changed

18 files changed

+25
-22
lines changed

drivers/net/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ source "drivers/net/ipa/Kconfig"
520520

521521
config NET_SB1000
522522
tristate "General Instruments Surfboard 1000"
523-
depends on PNP
523+
depends on ISA && PNP
524524
help
525525
This is a driver for the General Instrument (also known as
526526
NextLevel) SURFboard 1000 internal

drivers/net/arcnet/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
menuconfig ARCNET
7-
depends on NETDEVICES && (ISA || PCI || PCMCIA)
7+
depends on NETDEVICES && (ISA || PCI || PCMCIA) && HAS_IOPORT
88
tristate "ARCnet support"
99
help
1010
If you have a network card of this type, say Y and check out the

drivers/net/can/cc770/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if CAN_CC770
77

88
config CAN_CC770_ISA
99
tristate "ISA Bus based legacy CC770 driver"
10+
depends on ISA
1011
help
1112
This driver adds legacy support for CC770 and AN82527 chips
1213
connected to the ISA bus using I/O port, memory mapped or

drivers/net/can/sja1000/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ config CAN_PLX_PCI
8787

8888
config CAN_SJA1000_ISA
8989
tristate "ISA Bus based legacy SJA1000 driver"
90+
depends on ISA
9091
help
9192
This driver adds legacy support for SJA1000 chips connected to
9293
the ISA bus using I/O port, memory mapped or indirect access.

drivers/net/ethernet/3com/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ config 3C515
4444

4545
config PCMCIA_3C574
4646
tristate "3Com 3c574 PCMCIA support"
47-
depends on PCMCIA
47+
depends on PCMCIA && HAS_IOPORT
4848
help
4949
Say Y here if you intend to attach a 3Com 3c574 or compatible PCMCIA
5050
(PC-card) Fast Ethernet card to your computer.
@@ -54,7 +54,7 @@ config PCMCIA_3C574
5454

5555
config PCMCIA_3C589
5656
tristate "3Com 3c589 PCMCIA support"
57-
depends on PCMCIA
57+
depends on PCMCIA && HAS_IOPORT
5858
help
5959
Say Y here if you intend to attach a 3Com 3c589 or compatible PCMCIA
6060
(PC-card) Ethernet card to your computer.

drivers/net/ethernet/8390/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if NET_VENDOR_8390
1919

2020
config PCMCIA_AXNET
2121
tristate "Asix AX88190 PCMCIA support"
22-
depends on PCMCIA
22+
depends on PCMCIA && HAS_IOPORT
2323
help
2424
Say Y here if you intend to attach an Asix AX88190-based PCMCIA
2525
(PC-card) Fast Ethernet card to your computer. These cards are
@@ -117,7 +117,7 @@ config NE2000
117117

118118
config NE2K_PCI
119119
tristate "PCI NE2000 and clones support (see help)"
120-
depends on PCI
120+
depends on PCI && HAS_IOPORT
121121
select CRC32
122122
help
123123
This driver is for NE2000 compatible PCI cards. It will not work
@@ -146,7 +146,7 @@ config APNE
146146

147147
config PCMCIA_PCNET
148148
tristate "NE2000 compatible PCMCIA support"
149-
depends on PCMCIA
149+
depends on PCMCIA && HAS_IOPORT
150150
select CRC32
151151
help
152152
Say Y here if you intend to attach an NE2000 compatible PCMCIA

drivers/net/ethernet/amd/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ config LANCE
5656

5757
config PCNET32
5858
tristate "AMD PCnet32 PCI support"
59-
depends on PCI
59+
depends on PCI && HAS_IOPORT
6060
select CRC32
6161
select MII
6262
help
@@ -122,7 +122,7 @@ config MVME147_NET
122122

123123
config PCMCIA_NMCLAN
124124
tristate "New Media PCMCIA support"
125-
depends on PCMCIA
125+
depends on PCMCIA && HAS_IOPORT
126126
help
127127
Say Y here if you intend to attach a New Media Ethernet or LiveWire
128128
PCMCIA (PC-card) Ethernet card to your computer.

drivers/net/ethernet/fujitsu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if NET_VENDOR_FUJITSU
1818

1919
config PCMCIA_FMVJ18X
2020
tristate "Fujitsu FMV-J18x PCMCIA support"
21-
depends on PCMCIA
21+
depends on PCMCIA && HAS_IOPORT
2222
select CRC32
2323
help
2424
Say Y here if you intend to attach a Fujitsu FMV-J18x or compatible

drivers/net/ethernet/intel/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ config E100
4141

4242
config E1000
4343
tristate "Intel(R) PRO/1000 Gigabit Ethernet support"
44-
depends on PCI
44+
depends on PCI && HAS_IOPORT
4545
help
4646
This driver supports Intel(R) PRO/1000 gigabit ethernet family of
4747
adapters. For more information on how to identify your adapter, go

drivers/net/ethernet/sis/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if NET_VENDOR_SIS
1919

2020
config SIS900
2121
tristate "SiS 900/7016 PCI Fast Ethernet Adapter support"
22-
depends on PCI
22+
depends on PCI && HAS_IOPORT
2323
select CRC32
2424
select MII
2525
help
@@ -35,7 +35,7 @@ config SIS900
3535

3636
config SIS190
3737
tristate "SiS190/SiS191 gigabit ethernet support"
38-
depends on PCI
38+
depends on PCI && HAS_IOPORT
3939
select CRC32
4040
select MII
4141
help

0 commit comments

Comments
 (0)