* [Kernel-janitors] [PATCH] eicon/s_bri: replace schedule_timeout()
@ 2004-07-23 17:47 Nishanth Aravamudan
2004-07-23 20:27 ` Nishanth Aravamudan
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-07-23 17:47 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Replace diva_os_sleep() with msleep().
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
--- linux-vanilla/drivers/isdn/hardware/eicon/s_bri.c 2004-06-16 05:19:53.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/s_bri.c 2004-07-02 18:11:16.000000000 +0000
@@ -367,7 +367,7 @@ static int load_bri_hardware (PISDN_ADAP
addrHi = Port + ((IoAdapter->Properties.Bus==BUS_PCI) ? M_PCI_ADDRH : ADDRH);
addrLo = Port + ADDR ;
ioaddr = Port + DATA ;
- diva_os_wait (100);
+ msleep (100);
/*
* recover
*/
@@ -382,7 +382,7 @@ static int load_bri_hardware (PISDN_ADAP
outppw (addrLo, 0) ;
for ( i = 0 ; i < 0x8000 ; outppw (ioaddr, 0), ++i ) ;
DIVA_OS_MEM_DETACH_PORT(IoAdapter, Port);
- diva_os_wait (100) ;
+ msleep (100) ;
/*
* download protocol and dsp files
*/
@@ -445,7 +445,7 @@ static int load_bri_hardware (PISDN_ADAP
ioaddr = Port + DATA ;
for ( i = 0 ; i < 300 ; ++i )
{
- diva_os_wait (10) ;
+ msleep (10) ;
outpp (addrHi, (byte)((BRI_UNCACHED_ADDR (IoAdapter->MemoryBase + \
IoAdapter->MemorySize - BRI_SHARED_RAM_SIZE)) >> 16)) ;
outppw (addrLo, 0x1e) ;
[-- 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/s_bri: replace schedule_timeout()
2004-07-23 17:47 [Kernel-janitors] [PATCH] eicon/s_bri: replace schedule_timeout() Nishanth Aravamudan
@ 2004-07-23 20:27 ` Nishanth Aravamudan
0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-07-23 20:27 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]
Please find the corrected patch below. I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Replace diva_os_wait() with msleep().
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
--- linux-vanilla/drivers/isdn/hardware/eicon/s_bri.c 2004-06-16 05:19:53.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/s_bri.c 2004-07-02 18:11:16.000000000 +0000
@@ -367,7 +367,7 @@ static int load_bri_hardware (PISDN_ADAP
addrHi = Port + ((IoAdapter->Properties.Bus==BUS_PCI) ? M_PCI_ADDRH : ADDRH);
addrLo = Port + ADDR ;
ioaddr = Port + DATA ;
- diva_os_wait (100);
+ mdelay (100);
/*
* recover
*/
@@ -382,7 +382,7 @@ static int load_bri_hardware (PISDN_ADAP
outppw (addrLo, 0) ;
for ( i = 0 ; i < 0x8000 ; outppw (ioaddr, 0), ++i ) ;
DIVA_OS_MEM_DETACH_PORT(IoAdapter, Port);
- diva_os_wait (100) ;
+ mdelay (100) ;
/*
* download protocol and dsp files
*/
@@ -445,7 +445,7 @@ static int load_bri_hardware (PISDN_ADAP
ioaddr = Port + DATA ;
for ( i = 0 ; i < 300 ; ++i )
{
- diva_os_wait (10) ;
+ mdelay (10) ;
outpp (addrHi, (byte)((BRI_UNCACHED_ADDR (IoAdapter->MemoryBase + \
IoAdapter->MemorySize - BRI_SHARED_RAM_SIZE)) >> 16)) ;
outppw (addrLo, 0x1e) ;
[-- 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 20:27 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:47 [Kernel-janitors] [PATCH] eicon/s_bri: replace schedule_timeout() Nishanth Aravamudan
2004-07-23 20:27 ` 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.