lkml.org 
[lkml]   [2007]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectHow to get an IDE Hard Reset, not a Soft Reset?
Date
From

Hi,

As I understand it, an IDE hard drive can be reset in three ways. A
power-on reset, a hard reset caused by pin 1 (RESET-) on the IDE
connector, and a soft reset (bit SRST in the device control register).
RESET- is held low on a power on, but can also be used later to do a
hard reset.

I can see there's an ioctl to do a soft reset, calling ide_do_reset(),
but how, from user space, can I do a hard reset? If it isn't possible
from user space, is it possible in the kernel? Pointers welcome.

Hard resets refreshes parts other soft resets cannot reach. E.g. the
Expire flag (bit 4) of word 128 in the identify device info.

(Please keep me CC'd.)

Cheers,


Ralph.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-09 15:19    [W:0.042 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site