From: Manivannan Sadhasivam <mani@kernel.org>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kathiravan T <quic_kathirav@quicinc.com>,
Baruch Siach <baruch@tkos.co.il>,
Dmitry Baryshkov <lumag@kernel.org>,
Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
Manu Gautam <mgautam@codeaurora.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/3] phy: qcom-qusb2: describe autoresume bit
Date: Wed, 28 Oct 2026 16:21:09 +0530 [thread overview]
Message-ID: <179318466919.5872.3084399469823329926.b4-reply@b4> (raw)
In-Reply-To: <67366b4e-21d8-4094-abff-b0539bae47c3@oss.qualcomm.com>
On 2026-10-16 12:50 +0200, Konrad Dybcio wrote:
> On 9/20/26 3:59 PM, Dmitry Baryshkov wrote:
> > There is a confusion regarding the autoresume bit. Some verions of the
> > QUSB2 PHY have it in the TEST1 register, while on the others it is a
> > part of the TEST_CTRL register. When adding support for autoresume bit,
> > the code attempted to simplify the handling of those registers, putting
> > both registers to the TEST1 layout entry. In the end,
> > ipq6018_regs_layout ended up correctly definig TEST1 register at 0x98
> > (because platforms using that layout didn't use autoresume), while
> > msm8996_regs_layout used TEST_CTRL offset (0xb8) for the TEST1
> > layout entry.
> >
> > Update the platform data to specify the register to be used for
> > autoresume handling, define both TEST1 and TEST_CTRL registers and merge
> > ipq6018_regs_layout and msm8996_regs_layout which become identical
> > afterwards.
> >
> > Fixes: 891a96f65ac3 ("phy: qcom-qusb2: Add support for runtime PM")
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
>
> GPT has a concern:
>
> [P2] Preserve Shikra's autoresume behavior
>
> shikra_phy_cfg uses msm8996_regs_layout but doesn't set
> autoresume_disable. This adds TEST_CTRL[3] to the shared layout, so
> runtime suspend will now toggle it for Shikra whenever the PHY mode
> is valid. Previously, its unset autoresume_en was zero, making these
> writes no-ops. Unless enabling autoresume on Shikra is intentional
> and verified, preserve the old behavior by disabling it for this
> configuration.
>
Sashiko raised the same concern...
> but I think that's fine since we *want* autoresume?
>
That should be fine, but this side effect should be mentioned in the commit
message.
- Mani
next prev parent reply other threads:[~2026-10-28 10:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 13:59 [PATCH v3 0/3] phy: qcom-qusb2: sort out register layouts Dmitry Baryshkov
2026-09-20 13:59 ` [PATCH v3 1/3] phy: qcom-qusb2: enable autoresume on Talos platforms Dmitry Baryshkov
2026-09-20 13:59 ` [PATCH v3 2/3] phy: qcom-qusb2: correst PHY description for IPQ6018 Dmitry Baryshkov
2026-09-20 13:59 ` [PATCH v3 3/3] phy: qcom-qusb2: describe autoresume bit Dmitry Baryshkov
2026-10-16 10:50 ` Konrad Dybcio
2026-10-28 10:51 ` Manivannan Sadhasivam [this message]
2026-10-28 10:56 ` Manivannan Sadhasivam
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=179318466919.5872.3084399469823329926.b4-reply@b4 \
--to=mani@kernel.org \
--cc=baruch@tkos.co.il \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=kishon@kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=lumag@kernel.org \
--cc=mgautam@codeaurora.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_kathirav@quicinc.com \
--cc=vkoul@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
all inboxes | Powered by JetHome®