Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4ca21c12 authored by Ajay Agarwal's avatar Ajay Agarwal Committed by Chandana Kishori Chiluveru
Browse files

usb: dwc3-msm: Add sysfs node to enable SS host compliance



xHCI specs revision 1.1 mentions that if Compliance Transition
Capability (CTC) flag is set, then xHC supports software control
of the transition to Compliance mode. For this, we need to write
a value of 10 to Port Link State(PLS) field of PORTSC register
during dwc3_otg_start_host time after the xhci platform device
has been added. Then the link transitions to compliance state
on detection of first LFPS timeout.

Steps to enable compliance transition:
  1. Do not connect host cable
  2. echo y > /sys/devices/platform/a600000.ssusb/xhci_link_compliance
  3. Connect host cable with breakout fixture and start testing

Steps to disable compliance transition:
  1. Disconnect the host cable
  2. echo n > /sys/devices/platform/a600000.ssusb/xhci_link_compliance
  3. Connect host cable

Change-Id: I73225ccad105414d3ebd60f95138b9ecf65005d4
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent ca49e647
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment