s390: qeth driver fixes
Subsystems (3)
PATCH 4/4 s390: qeth driver fixes
[patch 4/4] s390: qeth driver fixes .
From: Frank Pavlic <[email protected]>
- Clear read channel first prior to using ccw_device_set_offline.
- use QETH_DBF_TEXT instead of QETH_DBF_SPRINTF
- invoke qeth_halt_channel and qeth_clear_channel for all channels, even if halt/clear for one of the channel fails.
- enable qeth_arp_query function for GuestLAN devices
Signed-off-by Frank Pavlic <[email protected]>
diffstat:
qeth.h | 2 - qeth_main.c | 106 +++++++++++++++++++++++++----------------------------------- qeth_sys.c | 11 +++--- 3 files changed, 53 insertions(+), 66 deletions(-)
drivers/s390/net/qeth.h +1 -1
@@ -24,7 +24,7 @@#include "qeth_mpc.h" -#define VERSION_QETH_H "$Revision: 1.141 $" +#define VERSION_QETH_H "$Revision: 1.142 $"#ifdef CONFIG_QETH_IPV6 #define QETH_VERSION_IPV6 ":IPv6"
drivers/s390/net/qeth_main.c +45 -61
223 lines not on this page · raw message
drivers/s390/net/qeth_sys.c +7 -4
@@ -1,6 +1,6 @@/* * -* linux/drivers/s390/net/qeth_sys.c ($Revision: 1.53 $) +* linux/drivers/s390/net/qeth_sys.c ($Revision: 1.54 $) * * Linux on zSeries OSA Express and HiperSockets support * This file contains code related to sysfs.
@@ -20,7 +20,7 @@#include "qeth_mpc.h" #include "qeth_fs.h" -const char *VERSION_QETH_SYS_C ="$Revision: 1.53 $" ; +const char *VERSION_QETH_SYS_C ="$Revision: 1.54 $" ;/*****************************************************************************/ /* */
@@ -722,10 +722,13 @@ qeth_dev_layer2_store(struct device *devif (!card)return -EINVAL ; +if (card->info.type ==QETH_CARD_TYPE_IQD ) { +PRINT_WARN ("Layer2 on Hipersockets is not supported! \n" ); +return -EPERM ; + }if (((card->state !=CARD_STATE_DOWN ) && - (card->state !=CARD_STATE_RECOVER )) || - (card->info.type !=QETH_CARD_TYPE_OSAE )) + (card->state !=CARD_STATE_RECOVER )))return -EPERM ; i =simple_strtoul (buf, &tmp,16 );