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

Skip to content
Commit 04bbaab0 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Make sure PCIe link is in L0 state before updating time sync



Current driver will check PCIe link status by reading PCIe config space
before updating time sync registers. However, there is a drawback to use
PCIe API pci_read_config_word() to access config space since it will
disable interrupt and then perform read. If PCIe link is in L1 or L1ss
state, there may be more than 4ms needed to change the link state to L0
in order to access so it will cause jank for other time critical tasks.
Hence make sure PCIe link is in L0 state before updating time sync
registers instead of checking config space.

Change-Id: I59ca63c38b5af9e38e5a04d8e679f4dfde294746
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent a595e17a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment