mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebin Francis <sebin.francis@ti.com>
To: Peng Fan <peng.fan@nxp.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"Sudeep Holla" <sudeep.holla@arm.com>,
	Cristian Marussi <cristian.marussi@arm.com>,
	Brian Masney <bmasney@redhat.com>, Vignesh R <vigneshr@ti.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"arm-scmi@vger.kernel.org" <arm-scmi@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v5 6/6] clk: scmi: Add i.MX95 OEM extension support for SCMI clock driver
Date: Tue, 11 Nov 2025 17:07:46 +0530	[thread overview]
Message-ID: <f82f263c-fac2-492b-8981-d62fcb0f700d@ti.com> (raw)
In-Reply-To: <PAXPR04MB8459AE5010282F9A6DB4456988C5A@PAXPR04MB8459.eurprd04.prod.outlook.com>

Hi Peng,

On 05/11/25 21:18, Peng Fan wrote:
> Hi Sebin,
> 
>> Subject: Re: [PATCH v5 6/6] clk: scmi: Add i.MX95 OEM extension
>> support for SCMI clock driver
>>
>> Hi Peng,
>>
>> On 09/10/25 09:18, Peng Fan wrote:
>>>    - Introduce 'clk-scmi-oem.c' to support vendor-specific OEM
>> extensions
>>>      for the SCMI clock driver, allows clean integration of vendor-
>> specific
>>>      features without impacting the core SCMI clock driver logic.
>>>    - Extend 'clk-scmi.h' with 'scmi_clk_oem' structure and related
>> declarations.
>>>    - Initialize OEM extensions via 'scmi_clk_oem_init()'.
>>>    - Support querying OEM-specific features and setting spread
>> spectrum.
>>>    - Pass 'scmi_device' to 'scmi_clk_ops_select()' for OEM data access.
>>>
>>> Signed-off-by: Peng Fan <peng.fan@nxp.com>
>>
>> Thanks for the patch. I only have a minor comment, otherwise the
>> patch looks good.
>>
>> [...]
>>
>>> +
>>> +int scmi_clk_oem_init(struct scmi_device *sdev) {
>>> +	const struct scmi_handle *handle = sdev->handle;
>>> +	int i, size = ARRAY_SIZE(info);
>>> +
>>> +	for (i = 0; i < size; i++) {
>>> +		if (strcmp(handle->version->vendor_id,
>> SCMI_IMX_VENDOR) ||
>>> +		    strcmp(handle->version->sub_vendor_id,
>> SCMI_IMX_SUBVENDOR))
>>> +			continue;
>>> +		if (info[i].compatible &&
>>> +		    !of_machine_is_compatible(info[i].compatible))
>>> +			continue;
>>> +
>>> +		break;
>>> +	}
>>> +
>>> +	if (i < size)
>>> +		dev_set_drvdata(&sdev->dev, (void *)info[i].data);
>>> +
>>> +	return 0;
>>> +}
>>
>> This above logic is tailor made for IMX is it possible to make it generic?
> 
> Yeah. I will update it. It should compare with each entry in
> const struct scmi_clk_oem_info info[] = {
> 	{ SCMI_IMX_VENDOR, SCMI_IMX_SUBVENDOR, NULL, &scmi_clk_oem_imx },
> };
> 
> To TI, I think it could be extended to
> +const struct scmi_clk_oem_info info[] = {
> +	{ SCMI_IMX_VENDOR, SCMI_IMX_SUBVENDOR, NULL, &scmi_clk_oem_imx },
> +	{ SCMI_TI_VENDOR, SCMI_TI_SUBVENDOR, NULL, &scmi_clk_oem_ti },
> +};
> 

Thanks for updating it. Yes, for TI as you mentioned we will add one entry.

Thanks
Sebin.

> Regards
> Peng.
> 
>>
>>> diff --git a/drivers/clk/clk-scmi.c b/drivers/clk/clk-scmi.c index
>>>
>> bf85924d61985eb9e596419349eb883e3817de73..1ed2091e3d4a951
>> c8662db4c94de
>>> e4b9c98b8326 100644
>>> --- a/drivers/clk/clk-scmi.c
>>> +++ b/drivers/clk/clk-scmi.c
>>> @@ -14,6 +14,8 @@
>>>    #include <linux/scmi_protocol.h>
>>>    #include <asm/div64.h>
>>>
>>> +#include "clk-scmi.h"
>>
>> [...]
>>
>>
>> Thanks
>> Sebin

      reply	other threads:[~2025-11-11 11:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09  3:48 [PATCH v5 0/6] clk: Support spread spectrum and use it in clk-scmi Peng Fan
2025-10-09  3:48 ` [PATCH v5 1/6] dt-bindings: clock: Add spread spectrum definition Peng Fan
2025-10-09  3:48 ` [PATCH v5 2/6] clk: Introduce clk_hw_set_spread_spectrum Peng Fan
2025-10-09  3:48 ` [PATCH v5 3/6] clk: conf: Support assigned-clock-sscs Peng Fan
2025-10-09  3:48 ` [PATCH v5 4/6] clk: Add KUnit tests for assigned-clock-sscs Peng Fan
2025-10-10 18:41   ` kernel test robot
2025-10-09  3:48 ` [PATCH v5 5/6] clk: scmi: Introduce common header for SCMI clock interface Peng Fan
2025-10-09  3:48 ` [PATCH v5 6/6] clk: scmi: Add i.MX95 OEM extension support for SCMI clock driver Peng Fan
2025-10-23 13:58   ` Geert Uytterhoeven
2025-10-23 14:46     ` Peng Fan
2025-10-23 14:48   ` Peng Fan
2025-11-04 12:30   ` Sebin Francis
2025-11-05 15:48     ` Peng Fan
2025-11-11 11:37       ` Sebin Francis [this message]

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=f82f263c-fac2-492b-8981-d62fcb0f700d@ti.com \
    --to=sebin.francis@ti.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bmasney@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=dan.carpenter@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=peng.fan@nxp.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sudeep.holla@arm.com \
    --cc=vigneshr@ti.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®