All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: s ticket <smticket@gmail.com>
Cc: linux-ide@vger.kernel.org, jgarzik@pobox.com
Subject: Re: How to assess PMP register
Date: Mon, 04 May 2009 19:37:14 -0400	[thread overview]
Message-ID: <49FF7C2A.6030000@rtr.ca> (raw)
In-Reply-To: <fa69d4570905032204q726728a1qd4be4800b916439a@mail.gmail.com>

s ticket wrote:
>>> Is there any way to read PMP registers after hardreset/softreset?
>>> SATA Controller is marvell 88SX7042 and driver is sata_mv.
>>> I try to send 0xE4 and 0xE6 command to read/write PMP registers:
>> ..
>>>        if (ioctl(fd, SG_IO, &io_hdr) == -1) {
>> ..
>>
>> No, there is no existing way to access PMP registers from user space.
>>
> But what's the difference in dealing with '0xE4' and '0xE8' commands.
> I found that only the two commands will reset the link
..

There's no guaranteed way to do that (reset the link) from userspace either.

You're trying to do device driver things -- those should be done inside
the device driver in the kernel proper.

Cheers

  reply	other threads:[~2009-05-04 23:37 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 [this message]
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

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=49FF7C2A.6030000@rtr.ca \
    --to=liml@rtr.ca \
    --cc=jgarzik@pobox.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.