public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to get an IDE Hard Reset, not a Soft Reset?
@ 2007-06-09 13:10 Ralph Corderoy
  2007-06-09 13:40 ` Ondrej Zary
  0 siblings, 1 reply; 3+ messages in thread
From: Ralph Corderoy @ 2007-06-09 13:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ralph Corderoy


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.


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

end of thread, other threads:[~2007-06-11 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-09 13:10 How to get an IDE Hard Reset, not a Soft Reset? Ralph Corderoy
2007-06-09 13:40 ` Ondrej Zary
2007-06-11 10:54   ` Ralph Corderoy

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