All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout()
@ 2004-07-23 17:40 Nishanth Aravamudan
  2004-07-23 17:42 ` Nishanth Aravamudan
  0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-07-23 17:40 UTC (permalink / raw)
  To: kernel-janitors

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

I would appreciate any comments from the janitors list.

Thanks,
Nish



Applys-to: 2.6.7

Description: Replace diva_os_sleep() with msleep() and diva_os_wait()
with mdelay() in all instances. 

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- linux-vanilla/drivers/isdn/hardware/eicon/os_4bri.c	2004-06-16 05:19:17.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/os_4bri.c	2004-07-02 18:06:40.000000000 +0000
@@ -543,7 +543,7 @@ static int _4bri_get_serial_number(diva_
 		for (j = 0; j < 5; ++j) {
 			PCIwrite(Bus, Slot, 0x4E, &addr, sizeof(addr),
 				 hdev);
-			diva_os_wait(1);
+			mdelay(1);
 			PCIread(Bus, Slot, 0x4E, &status, sizeof(status),
 				hdev);
 			if (status & 0x8000)
@@ -950,7 +950,7 @@ diva_4bri_start_adapter(PISDN_ADAPTER Io
 	signature = (volatile word *) (&p[0x1E]);
 
 	for (i = 0; i < 300; ++i) {
-		diva_os_wait(10);
+		mdelay(10);
 		if (READ_WORD(&signature[0]) == 0x4447) {
 			DBG_TRC(("Protocol startup time %d.%02d seconds",
 				 (i / 100), (i % 100)))
@@ -1027,7 +1027,7 @@ static int check_qBri_interrupt(PISDN_AD
 	a->ReadyInt = 1;
 	a->ram_out(a, &PR_RAM->ReadyInt, 1);
 
-	for (i = 100; !IoAdapter->IrqCount && (i-- > 0); diva_os_wait(10));
+	for (i = 100; !IoAdapter->IrqCount && (i-- > 0); mdelay(10));
 
 	return ((IoAdapter->IrqCount > 0) ? 0 : -1);
 #else
@@ -1050,7 +1050,7 @@ static int check_qBri_interrupt(PISDN_AD
 	p[PLX9054_INTCSR] = PLX9054_INT_ENABLE;
 	DIVA_OS_MEM_DETACH_RESET(IoAdapter, p);
 
-	diva_os_wait(100);
+	mdelay(100);
 
 	return (0);
 #endif				/* SUPPORT_INTERRUPT_TEST_ON_4BRI */
@@ -1111,7 +1111,7 @@ static int diva_4bri_stop_adapter(diva_o
 	IoAdapter->a.ReadyInt = 1;
 	IoAdapter->a.ram_inc(&IoAdapter->a, &PR_RAM->ReadyInt);
 	do {
-		diva_os_sleep(10);
+		msleep(10);
 	} while (i-- && a->clear_interrupts_proc);
 
 	if (a->clear_interrupts_proc) {

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout()
  2004-07-23 17:40 [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout() Nishanth Aravamudan
@ 2004-07-23 17:42 ` Nishanth Aravamudan
  0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-07-23 17:42 UTC (permalink / raw)
  To: kernel-janitors

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

I would appreciate any comments from the janitors list.

Thanks,
Nish



Applys-to: 2.6.7

Description: Replace diva_os_sleep() with msleep() and diva_os_wait()
with mdelay() in all instances. 

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- linux-vanilla/drivers/isdn/hardware/eicon/os_bri.c	2004-06-16 05:18:57.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/os_bri.c	2004-07-02 18:07:28.000000000 +0000
@@ -525,7 +525,7 @@ static int diva_bri_reset_adapter(PISDN_
 			 IoAdapter->ANum)) return (-1);
 	}
 	(*(IoAdapter->rstFnc)) (IoAdapter);
-	diva_os_wait(100);
+	mdelay(100);
 	Port = DIVA_OS_MEM_ATTACH_PORT(IoAdapter);
 	addrHi = Port +
 	    ((IoAdapter->Properties.Bus == BUS_PCI) ? M_PCI_ADDRH : ADDRH);
@@ -546,7 +546,7 @@ static int diva_bri_reset_adapter(PISDN_
 		       BRI_SHARED_RAM_SIZE) >> 16));
 	outppw(addrLo, 0);
 	for (i = 0; i < 0x8000; outppw(ioaddr, 0), ++i);
-	diva_os_wait(100);
+	mdelay(100);
 
 	/*
 	   clear signature
@@ -679,7 +679,7 @@ diva_bri_start_adapter(PISDN_ADAPTER IoA
 	   wait for signature (max. 3 seconds)
 	 */
 	for (i = 0; i < 300; ++i) {
-		diva_os_wait(10);
+		mdelay(10);
 		outpp(addrHi,
 		      (byte) (
 			      (IoAdapter->MemoryBase +
@@ -721,7 +721,7 @@ diva_bri_start_adapter(PISDN_ADAPTER IoA
 
 	a->ram_out(a, &PR_RAM->ReadyInt, 1);
 	for (i = 0; ((!IoAdapter->IrqCount) && (i < 100)); i++) {
-		diva_os_wait(10);
+		mdelay(10);
 	}
 	if (!IoAdapter->IrqCount) {
 		DBG_ERR(
@@ -793,7 +793,7 @@ static int diva_bri_stop_adapter(diva_os
 	IoAdapter->a.ReadyInt = 1;
 	IoAdapter->a.ram_inc(&IoAdapter->a, &PR_RAM->ReadyInt);
 	do {
-		diva_os_sleep(10);
+		msleep(10);
 	} while (i-- && a->clear_interrupts_proc);
 	if (a->clear_interrupts_proc) {
 		diva_bri_clear_interrupts(a);

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-23 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 17:40 [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout() Nishanth Aravamudan
2004-07-23 17:42 ` Nishanth Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.