lkml.org 
[lkml]   [2003]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[rfc][patch]: fix handler race in HDIO_DRIVE_RESET path for 2.5.67-ac1
Hi,
I found there's another 50 msec wait needed after the
first reset poll handler return to avoid the handler race.
but I can't find out reason why.

regards
rain.w
--- /usr/src/linux-2.5.67-ac1/drivers/ide/ide.c Wed Apr 9 11:31:40 2003
+++ ide.c Wed Apr 9 13:31:18 2003
@@ -1608,6 +1608,10 @@
HWGROUP(drive)->busy = 1;
spin_unlock_irqrestore(&ide_lock, flags);
(void) ide_do_reset(drive);
+
+ /* wait for another 50ms */
+ mdelay(50);
+
if (drive->suspend_reset) {
/*
* APM WAKE UP todo !!
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.056 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site