public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] ibmveth bug fixes 3/4
@ 2004-08-10 18:06 Santiago Leon
  0 siblings, 0 replies; only message in thread
From: Santiago Leon @ 2004-08-10 18:06 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel list

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

Andrew,

This patch checks for the LongBusy return code from the hypervisor, and 
retries the operation (which is what the hypervisor expects the driver 
to do). Please apply.

Signed-off-by: Santiago Leon <santil@us.ibm.com>

-- 
Santiago A. Leon
Power Linux Development
IBM Linux Technology Center

[-- Attachment #2: ibmveth_longbusy.patch --]
[-- Type: text/plain, Size: 668 bytes --]

===== drivers/net/ibmveth.c 1.15 vs edited =====
--- 1.15/drivers/net/ibmveth.c	Tue Aug 10 11:59:07 2004
+++ edited/drivers/net/ibmveth.c	Tue Aug 10 11:59:49 2004
@@ -530,7 +530,7 @@
 		ibmveth_error_printk("unable to request irq 0x%x, rc %d\n", netdev->irq, rc);
 		do {
 			rc = h_free_logical_lan(adapter->vdev->unit_address);
-		} while H_isLongBusy(rc);
+		} while (H_isLongBusy(rc) || (rc == H_Busy));
 
 		ibmveth_cleanup(adapter);
 		return rc;
@@ -562,7 +562,7 @@
 
 	do {
 		lpar_rc = h_free_logical_lan(adapter->vdev->unit_address);
-	} while H_isLongBusy(lpar_rc);
+	} while (H_isLongBusy(lpar_rc) || (lpar_rc == H_Busy));
 
 	if(lpar_rc != H_Success)
 	{

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-10 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-10 18:06 [PATCH 2.6] ibmveth bug fixes 3/4 Santiago Leon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox