Skip to content

Kodiak PCIe phy refclk always on changes#29

Closed
krishnachaitanya-linux wants to merge 3 commits intoqualcomm-linux:tech/bus/pci/phyfrom
krishnachaitanya-linux:main
Closed

Kodiak PCIe phy refclk always on changes#29
krishnachaitanya-linux wants to merge 3 commits intoqualcomm-linux:tech/bus/pci/phyfrom
krishnachaitanya-linux:main

Conversation

@krishnachaitanya-linux
Copy link
Contributor

These are changes required to keep PCIe link always on.

Krishna chaitanya chundru and others added 3 commits May 29, 2025 19:12
…property

Document qcom,refclk-always-on property which is needed in some platforms
to supply refclk even in PCIe low power states.

Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Link: https://lore.kernel.org/lkml/20231127-refclk_always_on-v3-1-26d969fa8f1d@quicinc.com/
…fset

Some platforms needs to keep endpoint refclk always on, for this
purpose add this offset for all the applicable phy versions.

And also add reg layout for few controllers as we are adding
endpoint refclk control register which changes based upon phy version.

Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/lkml/20231127-refclk_always_on-v3-2-26d969fa8f1d@quicinc.com/
In PCIe low power states like L1.1 or L1.2 the phy will stop
supplying refclk to endpoint. If endpoint asserts clkreq to bring
back link L0, then RC needs to provide refclk to endpoint.

Some platforms with pcie switch fail to drive the clkreq signal to
the host from the endpoints because of the switch board design.
Due to that refclk needs to supplied to the endpoint always.

Add a flag to keep refclk always supplied to endpoint.

Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/lkml/20231201060928.GK4009@thinkpad/
Copy link
Collaborator

@shashim-quic shashim-quic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SoB is missing in commit 1. Also place SoB as last line in your commit log.

Copy link
Collaborator

@shashim-quic shashim-quic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add SoB line as last line. Link: can be simply moved as first tag.

Copy link

@trsoni trsoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the DCO checks give the following warning or error (I am not clear what it is)? quic_ID author is still allowed.

Commit sha: 66f5855, Author: Krishna Chaitanya Chundru, Committer: krishnachaitanya-linux; Expected "Krishna Chaitanya Chundru krishna.chundru@oss.qualcomm.com", but got "Krishna chaitanya chundru quic_krichai@quicinc.com".

Copy link

@trsoni trsoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why checkpatch has not run here eventhough DCO has failed? Are we not running checkpatch if DCO fails first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants