mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ralph Corderoy <ralph@inputplus.co.uk>
To: linux-kernel@vger.kernel.org
Cc: Ralph Corderoy <ralph@inputplus.co.uk>
Subject: How to get an IDE Hard Reset, not a Soft Reset?
Date: Sat, 09 Jun 2007 14:10:31 +0100	[thread overview]
Message-ID: <20070609131031.CBB5014A521@blake.inputplus.co.uk> (raw)


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.


             reply	other threads:[~2007-06-09 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-09 13:10 Ralph Corderoy [this message]
2007-06-09 13:40 ` Ondrej Zary
2007-06-11 10:54   ` Ralph Corderoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070609131031.CBB5014A521@blake.inputplus.co.uk \
    --to=ralph@inputplus.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®