Skip to contentSkip to conversation

s390: qeth driver hardware specs adaptions

PATCH Applied Frank Pavlic 1 participant 1 message Jan 8, 2007

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 s390: qeth driver hardware specs adaptions

[PATCH 5/5] s390: qeth driver hardware specs adaptions

From: Peter Tiedemann <[email protected]>

- according to the latest OSA hardware specification incorporate actual IPA command and return codes into qeth.
- whitespaces removed from qeth_mpc.h

---
 drivers/s390/net/qeth_main.c |   10 ++
 drivers/s390/net/qeth_mpc.c  |  101 +++++++++++++++++++
 drivers/s390/net/qeth_mpc.h  |  220 ++++++++++++++++++++++++------------------
 3 files changed, 238 insertions(+), 93 deletions(-)
drivers/s390/net/qeth_main.c +9 -1
index 19ec4c8..be4f815 100644
@@ -1919,6 +1919,9 @@ qeth_send_ipa_cmd(struct qeth_card *card
 {
 	int rc;
 	char prot_type;
+	int cmd;
+	cmd = ((struct qeth_ipa_cmd *)
+		(iob->data+IPA_PDU_HEADER_SIZE))->hdr.command;
 
 	QETH_DBF_TEXT(trace,4,"sendipa");
 
@@ -1932,6 +1935,12 @@ qeth_send_ipa_cmd(struct qeth_card *card
 	qeth_prepare_ipa_cmd(card,iob,prot_type);
 	rc = qeth_send_control_data(card, IPA_CMD_LENGTH, iob,
 				    reply_cb, reply_param);
+	if (rc != 0) {
+		char * ipa_cmd_name;
+		ipa_cmd_name = qeth_get_ipa_cmd_name(cmd);
+		printk("%s %s(%x) returned %s(%x)\n",__FUNCTION__,
+			ipa_cmd_name, cmd, qeth_get_ipa_msg(rc), rc);
+	}
 	return rc;
 }
 
@@ -2486,7 +2495,6 @@ qeth_process_inbound_buffer(struct qeth_
 	int offset;
 	int rxrc;
 	__u16 vlan_tag = 0;
-	__u16 *vlan_addr;
 
 	/* get first element of current buffer */
 	element = (struct qdio_buffer_element *)&buf->buffer->element[0];
drivers/s390/net/qeth_mpc.c +101 -0

113 lines not on this page · raw message

drivers/s390/net/qeth_mpc.h +128 -92

287 lines not on this page · raw message

Signature · 1 line
1.4.2.3