Skip to content

Commit 4e2b5aa

Browse files
julianwiedmanndavem330
authored andcommitted
s390/qeth: make OSN / OSX support configurable
The last machine generation that supports OSN is z13, and OSX is only supported up to z14. Allow users and distros to decide whether they still need support for these device types. Signed-off-by: Julian Wiedmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5f4019a commit 4e2b5aa

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

drivers/s390/net/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ config QETH_L3
9191
To compile as a module choose M. The module name is qeth_l3.
9292
If unsure, choose Y.
9393

94+
config QETH_OSN
95+
def_bool !HAVE_MARCH_Z14_FEATURES
96+
prompt "qeth OSN device support"
97+
depends on QETH
98+
help
99+
This enables the qeth driver to support devices in OSN mode.
100+
If unsure, choose N.
101+
102+
config QETH_OSX
103+
def_bool !HAVE_MARCH_Z15_FEATURES
104+
prompt "qeth OSX device support"
105+
depends on QETH
106+
help
107+
This enables the qeth driver to support devices in OSX mode.
108+
If unsure, choose N.
109+
94110
config CCWGROUP
95111
tristate
96112
default (LCS || CTCM || QETH)

drivers/s390/net/qeth_core_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4951,12 +4951,16 @@ static struct ccw_device_id qeth_ids[] = {
49514951
.driver_info = QETH_CARD_TYPE_OSD},
49524952
{CCW_DEVICE_DEVTYPE(0x1731, 0x05, 0x1732, 0x05),
49534953
.driver_info = QETH_CARD_TYPE_IQD},
4954+
#ifdef CONFIG_QETH_OSN
49544955
{CCW_DEVICE_DEVTYPE(0x1731, 0x06, 0x1732, 0x06),
49554956
.driver_info = QETH_CARD_TYPE_OSN},
4957+
#endif
49564958
{CCW_DEVICE_DEVTYPE(0x1731, 0x02, 0x1732, 0x03),
49574959
.driver_info = QETH_CARD_TYPE_OSM},
4960+
#ifdef CONFIG_QETH_OSX
49584961
{CCW_DEVICE_DEVTYPE(0x1731, 0x02, 0x1732, 0x02),
49594962
.driver_info = QETH_CARD_TYPE_OSX},
4963+
#endif
49604964
{},
49614965
};
49624966
MODULE_DEVICE_TABLE(ccw, qeth_ids);

drivers/s390/net/qeth_core_mpc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,19 @@ enum qeth_card_types {
7474
#define IS_IQD(card) ((card)->info.type == QETH_CARD_TYPE_IQD)
7575
#define IS_OSD(card) ((card)->info.type == QETH_CARD_TYPE_OSD)
7676
#define IS_OSM(card) ((card)->info.type == QETH_CARD_TYPE_OSM)
77+
78+
#ifdef CONFIG_QETH_OSN
7779
#define IS_OSN(card) ((card)->info.type == QETH_CARD_TYPE_OSN)
80+
#else
81+
#define IS_OSN(card) false
82+
#endif
83+
84+
#ifdef CONFIG_QETH_OSX
7885
#define IS_OSX(card) ((card)->info.type == QETH_CARD_TYPE_OSX)
86+
#else
87+
#define IS_OSX(card) false
88+
#endif
89+
7990
#define IS_VM_NIC(card) ((card)->info.is_vm_nic)
8091

8192
#define QETH_MPC_DIFINFO_LEN_INDICATES_LINK_TYPE 0x18

drivers/s390/net/qeth_l2_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ struct qeth_discipline qeth_l2_discipline = {
869869
};
870870
EXPORT_SYMBOL_GPL(qeth_l2_discipline);
871871

872+
#ifdef CONFIG_QETH_OSN
872873
static void qeth_osn_assist_cb(struct qeth_card *card,
873874
struct qeth_cmd_buffer *iob,
874875
unsigned int data_length)
@@ -945,6 +946,7 @@ void qeth_osn_deregister(struct net_device *dev)
945946
return;
946947
}
947948
EXPORT_SYMBOL(qeth_osn_deregister);
949+
#endif
948950

949951
/* SETBRIDGEPORT support, async notifications */
950952

0 commit comments

Comments
 (0)