From: Ajay Neeli <ajay.neeli@amd.com>
To: <James.Bottomley@HansenPartnership.com>, <mkp@kernel.org>,
<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>
Cc: <sai.krishna.potthuri@amd.com>, <alim.akhtar@samsung.com>,
<can.guo@oss.qualcomm.com>, <geert+renesas@glider.be>,
<mani@kernel.org>, <bvanassche@acm.org>, <beanhuo@micron.com>,
<linux-scsi@vger.kernel.org>, <devicetree@vger.kernel.org>,
<git@amd.com>, <michal.simek@amd.com>, <srinivas.goud@amd.com>,
<radhey.shyam.pandey@amd.com>, Ajay Neeli <ajay.neeli@amd.com>
Subject: [PATCH v2 1/2] scsi: ufs: core: Support "ref" clock name
Date: Wed, 25 Nov 2026 14:53:50 +0530 [thread overview]
Message-ID: <20261125092351.2807658-2-ajay.neeli@amd.com> (raw)
In-Reply-To: <20261125092351.2807658-1-ajay.neeli@amd.com>
The UFS platform code identifies the reference clock by the "ref_clk"
clock name and marks it to keep the link active.
Allow "ref" to be used as the reference clock name, while retaining
support for "ref_clk" for compatibility with existing devicetree
bindings.
Signed-off-by: Ajay Neeli <ajay.neeli@amd.com>
---
drivers/ufs/host/ufshcd-pltfrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c
index 169dbc1a75fe..947edcd88668 100644
--- a/drivers/ufs/host/ufshcd-pltfrm.c
+++ b/drivers/ufs/host/ufshcd-pltfrm.c
@@ -96,7 +96,7 @@ static int ufshcd_parse_clock_info(struct ufs_hba *hba)
goto out;
}
- if (!strcmp(name, "ref_clk"))
+ if (!strcmp(name, "ref") || !strcmp(name, "ref_clk"))
clki->keep_link_active = true;
dev_dbg(dev, "%s: min %u max %u name %s\n", "freq-table-hz",
clki->min_freq, clki->max_freq, clki->name);
--
2.43.7
next prev parent reply other threads:[~2026-11-25 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 9:23 [PATCH v2 0/2] UFS: Add reference clock support for AMD Versal2 Ajay Neeli
2026-11-25 9:23 ` Ajay Neeli [this message]
2026-11-25 9:23 ` [PATCH v2 2/2] dt-bindings: ufs: amd,versal2-ufs: Add reference clock Ajay Neeli
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=20261125092351.2807658-2-ajay.neeli@amd.com \
--to=ajay.neeli@amd.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=can.guo@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=git@amd.com \
--cc=krzk+dt@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=michal.simek@amd.com \
--cc=mkp@kernel.org \
--cc=radhey.shyam.pandey@amd.com \
--cc=robh@kernel.org \
--cc=sai.krishna.potthuri@amd.com \
--cc=srinivas.goud@amd.com \
/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