mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Larisa Ileana Grigore <larisa.grigore@oss.nxp.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: NXP S32 Linux Team <s32@nxp.com>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	Bart Van Assche <bvanassche@acm.org>,
	Bean Huo <beanhuo@micron.com>,
	Stanley Jhu <stanleyjhu@google.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
	"Martin K. Petersen" <mkp@kernel.org>,
	Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>,
	Ajay Neeli <ajay.neeli@amd.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Pedro Sousa <pedrom.sousa@synopsys.com>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Can Guo <quic_cang@quicinc.com>,
	Asutosh Das <quic_asutoshd@quicinc.com>,
	imx@lists.linux.dev, linux-scsi@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, clizzi@redhat.com,
	aruizrui@redhat.com, eballetb@redhat.com, echanude@redhat.com,
	Frank Li <Frank.Li@nxp.com>
Subject: Re: [PATCH v10 08/11] dt-bindings: ufs: Add NXP S32N79 UFS host controller
Date: Wed, 11 Nov 2026 09:55:18 +0200	[thread overview]
Message-ID: <44d59691-3936-4035-9b63-d49bbaad75cf@oss.nxp.com> (raw)
In-Reply-To: <52f8c2d3-de0a-492e-89c0-f33487a97dc8@kernel.org>

On 11/9/2026 11:42 PM, Krzysztof Kozlowski wrote:
> On 09/11/2026 21:47, Larisa Ileana Grigore wrote:
>> On 11/5/2026 8:28 PM, Krzysztof Kozlowski wrote:
>>> On 04/11/2026 10:41, Larisa Ileana Grigore wrote:
>>>> On 11/4/2026 10:40 AM, Krzysztof Kozlowski wrote:
>>>> v8:
>>>> https://lore.kernel.org/all/20261013103003.373156-1-larisa.grigore@oss.nxp.com/
>>>> v9:
>>>> https://lore.kernel.org/all/20261024122533.3609180-1-larisa.grigore@oss.nxp.com/
>>>> v10:
>>>> https://lore.kernel.org/all/20261103133215.1385823-1-larisa.grigore@oss.nxp.com
>>>>
>>>> Regarding your comments on v9:
>>>>
>>>> Frank's Reviewed-by was given publicly on v8 [1]. The series only looked
>>>> like a v1 because of the wrong version number.
>>>> The tag ordering was changed in v10 since the patch was changed.
>>>> The single 0 Hz OPP entry: as discussed on v8 [2][3], the clock rate is
>>>> set outside Linux and is not scaled. The OPP table lets the UFS core
>>>
>>> That is not the purpose of OPP table. OPP defines performance point.
>>> Performance point of 0 makes no sense. You cannot use Linux limitations
>>> as reason to add some DTS, because answer is simple: fix your Linux
>>> limitations.
>>>
>>
>> Hi Krzysztof,
>>
>> Thanks for the clarification. I understand that an OPP table is not
>> appropriate here.
>>
>> Existing platform DTs, such as Hi3660 and MT8195, define freq-table-hz
>> containing only <0 0> pairs. This allows the UFS core to manage clock
>> enable/disable without setting their rates. With freq-table-hz
>> deprecated, there seems to be a gap for this use case, beyond S32N.
>>
> 
> Instead of passing 0, properties should be rather missing and that would
> be hint for Linux. Is there a difference between missing properties and
> some non-valid state (like freq=0)?
> 
Hi Krzysztof,

You are right, this Linux-specific distinction should not be reflected 
in DT, even though missing both properties currently leaves clock 
management to the glue driver.

For v11, I will drop the OPP table and introduce 
ufshcd_pltfrm_init_flags(), with a flag indicating that the DT clocks 
have a fixed rate and should still be registered and managed by the UFS 
core. The existing ufshcd_pltfrm_init() will remain as a wrapper passing 
no flags, so existing drivers will retain their current behavior. The 
S32N79 driver will call the new function with this flag set.

Would this approach be acceptable?

Best regards,
Larisa
> 
> Best regards,
> Krzysztof


  reply	other threads:[~2026-11-11  7:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 13:32 [PATCH v10 00/11] Add S32N79RDB UFS support Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 01/11] ufs: core: Return a negative errno from WLUN suspend/resume Larisa Grigore
2026-11-03 17:53   ` Bart Van Assche
2026-11-03 13:32 ` [PATCH v10 02/11] ufs: dwc: Return a negative error if the link is down Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 03/11] ufs: unipro: Move Tx/Rx FSM state definitions to unipro.h Larisa Grigore
2026-11-03 17:54   ` Bart Van Assche
2026-11-03 13:32 ` [PATCH v10 04/11] ufs: unipro: Add TX/RX FSM state attributes Larisa Grigore
2026-11-03 17:54   ` Bart Van Assche
2026-11-03 13:32 ` [PATCH v10 05/11] ufs: core: Add common Hibern8 TX FSM polling helper Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 06/11] ufs: dwc: Move Versal2 M-PHY CREG access helpers into ufshcd-dwc Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 07/11] ufs: dwc: Export common clock divider and link status helpers Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 08/11] dt-bindings: ufs: Add NXP S32N79 UFS host controller Larisa Grigore
2026-11-04  8:38   ` Krzysztof Kozlowski
2026-11-04  8:40     ` Krzysztof Kozlowski
2026-11-04  9:41       ` Larisa Ileana Grigore
2026-11-05 18:28         ` Krzysztof Kozlowski
2026-11-09 20:47           ` Larisa Ileana Grigore
2026-11-09 21:42             ` Krzysztof Kozlowski
2026-11-11  7:55               ` Larisa Ileana Grigore [this message]
2026-11-03 13:32 ` [PATCH v10 09/11] ufs: dwc: Sort CBCRCTRL and CBREFCLKCTRL2 by offset Larisa Grigore
2026-11-03 13:32 ` [PATCH v10 10/11] ufs: s32n7: Add NXP S32N79 UFS host controller driver Larisa Grigore
2026-11-03 17:57   ` Bart Van Assche
2026-11-03 13:32 ` [PATCH v10 11/11] MAINTAINERS: Add NXP S32N7 UFS host controller entry Larisa Grigore

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=44d59691-3936-4035-9b63-d49bbaad75cf@oss.nxp.com \
    --to=larisa.grigore@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=adrian.hunter@intel.com \
    --cc=ajay.neeli@amd.com \
    --cc=alim.akhtar@samsung.com \
    --cc=aruizrui@redhat.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=clizzi@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eballetb@redhat.com \
    --cc=echanude@redhat.com \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=mkp@kernel.org \
    --cc=pedrom.sousa@synopsys.com \
    --cc=quic_asutoshd@quicinc.com \
    --cc=quic_cang@quicinc.com \
    --cc=robh@kernel.org \
    --cc=s32@nxp.com \
    --cc=sai.krishna.potthuri@amd.com \
    --cc=stanleyjhu@google.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

all inboxes | Powered by JetHome®