linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: s ticket <smticket@gmail.com>
Cc: linux-ide@vger.kernel.org, Mark Lord <liml@rtr.ca>
Subject: Re: How to assess PMP register
Date: Sat, 09 May 2009 17:09:04 +0900	[thread overview]
Message-ID: <4A053A20.60003@kernel.org> (raw)
In-Reply-To: <fa69d4570905082323q3cf36a06xa28d035e2dafbafa@mail.gmail.com>

s ticket wrote:
>> The PMP access functions can only be called from EH context and that's
>> one of the reasons they aren't exported?  What are you trying to
>> achieve?
> 
> To driver some gpios on the PMP ;-).
> I tried to directly access the PMP and send ATA command from user space,
> but all failed.
> It seems there are no suitable way so far?

Hmm... the best way would be implementing an EH action for PMP r/w and
export it via ioctl or sysfs.  When invoked, it should schedule the EH
action and an EH handler should do actual IO and then get the result
back to the userland.  That would automatically solve synchronization
problem too.

-- 
tejun

      reply	other threads:[~2009-05-09  8:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30  1:49 How to assess PMP register s ticket
2009-04-30 16:08 ` Grant Grundler
2009-04-30 22:34 ` Mark Lord
2009-05-04  5:04   ` s ticket
2009-05-04 23:37     ` Mark Lord
2009-05-06  7:03       ` Gwendal Grignou
2009-05-09  5:12         ` s ticket
2009-05-09  5:18           ` Tejun Heo
2009-05-09  6:23             ` s ticket
2009-05-09  8:09               ` 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=4A053A20.60003@kernel.org \
    --to=tj@kernel.org \
    --cc=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=smticket@gmail.com \
    /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).