The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Bhatt, Avinash" <avinash.bhatt@intel.com>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
	"Korenblit, Miriam Rachel" <miriam.rachel.korenblit@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Guetta, Kobi" <kobi.guetta@intel.com>,
	"Grumbach, Emmanuel" <emmanuel.grumbach@intel.com>
Subject: Re: [PATCH v2 2/3] wifi: iwlwifi: dt: add Device Tree BIOS configuration infrastructure
Date: Wed, 13 May 2026 20:16:24 +0200	[thread overview]
Message-ID: <6b722eda-a22e-4037-86c3-7f1231022af9@kernel.org> (raw)
In-Reply-To: <BL1PR11MB595490A72F8319FBB23194F1E0392@BL1PR11MB5954.namprd11.prod.outlook.com>

On 12/05/2026 12:03, Bhatt, Avinash wrote:
> Hi Krzysztof,
> 
> Thank you for the review. Please find our response inline below.
> We have made several changes in the driver as part of v3 and will be
> sending it shortly.
> 
> On Mon, May 04, 2026 at 12:53:26PM +0300, Krzysztof Kozlowski wrote:
>> +static const char *dsm_func_to_prop_name(enum iwl_dsm_funcs func) {
>> +	switch (func) {
>> +	case DSM_FUNC_DISABLE_SRD:          return IWL_DT_PROP_SRD;
>> +	case DSM_FUNC_ENABLE_6E:            return IWL_DT_PROP_6E_UHB;
>> ...
>>
>> Pointless function and only making DT ABI checks difficult. Drop.
>> Don't invent API wrappers or other HAL over simple calls to OF or
>> device API.
>> Drop also ALL defines and use OF API like EVERY other driver.
> 
> Fixed in v3. Removed dsm_func_to_prop_name() and all IWL_DT_PROP_*
> defines. iwl_dt_get_dsm() now dispatches via a direct switch on the
> function index to individual per-property functions (iwl_dt_get_srd(),
> iwl_dt_get_6e_uhb(), etc.), each calling of_property_read_*() directly
> with the literal property string — consistent with how every other
> driver uses the OF API.
> 
> Best Regards,
> Avinash
> 
> -----Original Message-----
> From: Krzysztof Kozlowski <krzk@kernel.org> 
> Sent: 05 May 2026 14:48
> To: Bhatt, Avinash <avinash.bhatt@intel.com>
> Cc: devicetree@vger.kernel.org; linux-wireless@vger.kernel.org; robh@kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org; johannes@sipsolutions.net; Korenblit, Miriam Rachel <miriam.rachel.korenblit@intel.com>; linux-kernel@vger.kernel.org; Guetta, Kobi <kobi.guetta@intel.com>; Grumbach, Emmanuel <emmanuel.grumbach@intel.com>
> Subject: Re: [PATCH v2 2/3] wifi: iwlwifi: dt: add Device Tree BIOS configuration infrastructure
> 
> On Mon, May 04, 2026 at 12:53:26PM +0300, Avinash Bhatt wrote:
>> +
>> +/*
>> + * Mapping from DSM function index to Device Tree property name.
>> + * Returns the DT property name for a given DSM function, or NULL if 
>> +the
>> + * function has no Device Tree representation.
>> + */
>> +static const char *dsm_func_to_prop_name(enum iwl_dsm_funcs func) {
>> +	switch (func) {
>> +	case DSM_FUNC_DISABLE_SRD:          return IWL_DT_PROP_SRD;
>> +	case DSM_FUNC_ENABLE_6E:            return IWL_DT_PROP_6E_UHB;
>> +	case DSM_FUNC_REGULATORY_CONFIG:    return IWL_DT_PROP_REG_SPECIAL;
>> +	case DSM_FUNC_ACTIVATE_CHANNEL:     return IWL_DT_PROP_ACTIVATE_CH;
>> +	case DSM_FUNC_FORCE_DISABLE_CHANNELS:
>> +		return IWL_DT_PROP_FORCE_DISABLE_CH;
>> +	case DSM_FUNC_ENABLE_11BE:          return IWL_DT_PROP_11BE;
>> +	default:                            return NULL;
> 
> Pointless function and only making DT ABI checks difficult. Drop.
> 
> Don't invent API wrappers or other HAL over simple calls to OF or device API.
> 
> Drop also ALL defines and use OF API like EVERY other driver. This is not a special place.
> 

What is this style of answering? Am I replying now to my own email?

Best regards,
Krzysztof

  reply	other threads:[~2026-05-13 18:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260504095327.30892-1-avinash.bhatt@intel.com>
     [not found] ` <20260504095327.30892-2-avinash.bhatt@intel.com>
2026-05-05  9:15   ` [PATCH v2 1/3] dt-bindings: net: wireless: intel,iwlwifi: add binding Krzysztof Kozlowski
2026-05-12  9:59     ` Bhatt, Avinash
     [not found] ` <20260504095327.30892-3-avinash.bhatt@intel.com>
2026-05-05  9:18   ` [PATCH v2 2/3] wifi: iwlwifi: dt: add Device Tree BIOS configuration infrastructure Krzysztof Kozlowski
2026-05-12 10:03     ` Bhatt, Avinash
2026-05-13 18:16       ` Krzysztof Kozlowski [this message]
2026-05-05  9:19 ` [PATCH v2 0/3] wifi: iwlwifi: add Device Tree hardware integration information Krzysztof Kozlowski
2026-05-12 10:07   ` Bhatt, Avinash
2026-05-13 18:18     ` Krzysztof Kozlowski

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=6b722eda-a22e-4037-86c3-7f1231022af9@kernel.org \
    --to=krzk@kernel.org \
    --cc=avinash.bhatt@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=kobi.guetta@intel.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=miriam.rachel.korenblit@intel.com \
    --cc=robh@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