linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Fajun Chen <fajunchen@gmail.com>
Cc: linux-ide@vger.kernel.org, jgarzik@pobox.com
Subject: Re: Some questions about new EH in libata
Date: Wed, 30 Aug 2006 01:00:26 +0900	[thread overview]
Message-ID: <44F4649A.80405@gmail.com> (raw)
In-Reply-To: <8202f4270608290851u20ec2eb5j2fd7e509f617cf35@mail.gmail.com>

Fajun Chen wrote:
> I assume that alt status register will be updated when pata/sata is
> back online. So as an alternative and less invasive way, could I check
> alt status register and start user scan only if device is ready on alt
> status register? libata has ata_altstatus() function, is it available
> to user space? If not, may I expose it? I'm looking for a way to check
> device registers without side effects.

You can't use alt status that way.  Not all controllers have them and 
even those which do show different behaviors over hotplug/unplugs.

Hmmm... maybe making userscan synchronous is the correct way to do it. 
I'll give it some thoughts.

-- 
tejun

      reply	other threads:[~2006-08-29 16:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  4:54 Some questions about new EH in libata Fajun Chen
2006-08-22  5:10 ` Tejun Heo
2006-08-22 15:40   ` Fajun Chen
2006-08-22 15:51     ` Tejun Heo
2006-08-29  0:51   ` Fajun Chen
2006-08-29  2:16     ` Tejun Heo
2006-08-29 15:51       ` Fajun Chen
2006-08-29 16:00         ` Tejun Heo [this message]

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=44F4649A.80405@gmail.com \
    --to=htejun@gmail.com \
    --cc=fajunchen@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).