Patchwork [1/6] HiperSockets mcl string conversion (pre z9 mach)

login
register
mail settings
Submitter frank.blaschka@de.ibm.com
Date Jan. 2, 2009, 3:01 p.m.
Message ID <20090102150253.149662000@de.ibm.com>
Download mbox | patch
Permalink /patch/16318/
State Accepted
Delegated to: David Miller
Headers show

Comments

frank.blaschka@de.ibm.com - Jan. 2, 2009, 3:01 p.m.
From: Klaus-Dieter Wacker <kdwacker@de.ibm.com>

The pre z9 machines provide an mcl string in EBCDIC format,
z9 or later provide string in ASCII format.

Signed-off-by: Klaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---

 drivers/s390/net/qeth_core_main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
David Miller - Jan. 5, 2009, 1:36 a.m.
From: frank.blaschka@de.ibm.com
Date: Fri, 02 Jan 2009 16:01:40 +0100

> The pre z9 machines provide an mcl string in EBCDIC format,
> z9 or later provide string in ASCII format.
> 
> Signed-off-by: Klaus-Dieter Wacker <kdwacker@de.ibm.com>
> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff -urpN linux-2.6/drivers/s390/net/qeth_core_main.c linux-2.6-patched/drivers/s390/net/qeth_core_main.c
--- linux-2.6/drivers/s390/net/qeth_core_main.c	2009-01-02 10:21:51.000000000 +0100
+++ linux-2.6-patched/drivers/s390/net/qeth_core_main.c	2009-01-02 10:22:05.000000000 +0100
@@ -2250,7 +2250,8 @@  void qeth_print_status_message(struct qe
 		}
 		/* fallthrough */
 	case QETH_CARD_TYPE_IQD:
-		if (card->info.guestlan) {
+		if ((card->info.guestlan) ||
+		    (card->info.mcl_level[0] & 0x80)) {
 			card->info.mcl_level[0] = (char) _ebcasc[(__u8)
 				card->info.mcl_level[0]];
 			card->info.mcl_level[1] = (char) _ebcasc[(__u8)