Re: xhci Portsc register issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux