From: Sarah Sharp <sarah.a.sharp@linux.intel.com>
To: shashank chaturvedi <chaturvedi9950@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: xhci Portsc register issue
Date: Thu, 25 Oct 2012 08:36:38 -0700 [thread overview]
Message-ID: <20121025153552.GA5205@xanatos> (raw)
In-Reply-To: <CALuomMuUD4xSaCUT6MZn3ZV2gjXnuBUhkz78PgXZ6XgV4e-NvA@mail.gmail.com>
On Thu, Oct 25, 2012 at 12:31:09PM +0530, shashank chaturvedi wrote:
> Hi sarah,
> I am using Ubuntu 11.04 OS and NEC USB3.0 Host controller.
> I want to write the PLS [8:5] field in the PORTSC register through C
> program ,as per xhci spec first we have to write the LWS field
> I am doing that also, But its unable to write above fields.
> Can you help me for how to write these field of PORTSC register?
> I am sending you the code below. Please provide me the solution for
> writing the PLS field of PORTSC register
Why would you want to do that? For link power management? What is the
xHCI kernel driver not providing you such that you have to write a
userspace program?
If you're trying to write the PLS register from userspace while the xHCI
driver is loaded, I don't think that will work. The PCI registers have
already been mapped by the xHCI driver, and I don't think another
program would be able to map them again.
But I'm not sure, since I've never attempted to memory map PCI registers
from userspace. I was under the impression that you just can't do that.
Sarah Sharp
next parent reply other threads:[~2012-10-25 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALuomMuUD4xSaCUT6MZn3ZV2gjXnuBUhkz78PgXZ6XgV4e-NvA@mail.gmail.com>
2012-10-25 15:36 ` Sarah Sharp [this message]
2012-10-25 16:45 ` xhci Portsc register issue Bjorn Helgaas
2012-10-25 22:37 ` Peter Stuge
[not found] ` <CALuomMs-Z_PH3KpEPDgjBr5oy86Go2G2PAxu_k2yxgzWwRhJYQ@mail.gmail.com>
2012-10-26 17:17 ` Sarah Sharp
2012-10-26 7:12 ` Gerd Hoffmann
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=20121025153552.GA5205@xanatos \
--to=sarah.a.sharp@linux.intel.com \
--cc=chaturvedi9950@gmail.com \
--cc=linux-pci@vger.kernel.org \
--cc=linux-usb@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).