devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@kernel.org>
To: Marek Vasut <marex@denx.de>
Cc: Ajay.Kathat@microchip.com,  linux-wireless@vger.kernel.org,
	davem@davemloft.net,  alexis.lothore@bootlin.com,
	claudiu.beznea@tuxon.dev,  conor+dt@kernel.org,
	 edumazet@google.com, kuba@kernel.org,  krzk+dt@kernel.org,
	 pabeni@redhat.com, robh@kernel.org,  devicetree@vger.kernel.org,
	 netdev@vger.kernel.org
Subject: Re: [PATCH v4 5/5] wifi: wilc1000: Add WILC3000 support
Date: Tue, 10 Sep 2024 08:03:51 +0300	[thread overview]
Message-ID: <87o74waymg.fsf@kernel.org> (raw)
In-Reply-To: <29644c36-41ab-46b5-b758-b79f5d668912@denx.de> (Marek Vasut's message of "Tue, 10 Sep 2024 00:02:08 +0200")

Marek Vasut <marex@denx.de> writes:

> On 9/9/24 11:11 PM, Ajay.Kathat@microchip.com wrote:
>
> [...]
>
>>>> Does it make sense to add a module parameter for device type(wilc1000 or
>>>> wilc3000) to address device-specific featurization.
>>>
>>> We don't do hacks like that in upstream, it's expected that the driver
>>> does this all automatically.
>>
>> Marek has already submitted the patch to delay calling
>> wiphy_register() so it
>> should work at run time for both the devices.
>> I'm just curious to know for which scenario the module parameters should be
>> used. Can it be used for enabling or disabling any feature, configuring any
>> parameters, instead of complete device-specific featurization.
>
> Module parameters are applicable for tunables which cannot be
> otherwise configured at runtime. Runtime configuration is always
> preferable. For the wilc, I don't think there is anything which has to
> be a module parameter, maybe firmware filename could be it.

Nowadays module parameters are frowned upon, apparently some subsystems
have even banned adding new module parameters. In wireless we have been
more lax and have allowed new module parameters in some cases with good
justification, but it's still rare.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

  reply	other threads:[~2024-09-10  5:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29  0:44 [PATCH v4 1/5] dt-bindings: wireless: wilc1000: Document WILC3000 compatible string Marek Vasut
2024-08-29  0:45 ` [PATCH v4 2/5] wifi: wilc1000: Fold wilc_get_chipid() into wlan.c Marek Vasut
2024-08-29  0:45 ` [PATCH v4 3/5] wifi: wilc1000: Fold chip_allow_sleep()/chip_wakeup() " Marek Vasut
2024-08-29  0:45 ` [PATCH v4 4/5] wifi: wilc1000: Fill in missing error handling Marek Vasut
2024-08-29  0:45 ` [PATCH v4 5/5] wifi: wilc1000: Add WILC3000 support Marek Vasut
2024-09-09  9:35   ` Kalle Valo
2024-09-09 14:46     ` Marek Vasut
2024-09-09 15:04       ` Kalle Valo
2024-09-09 19:54         ` Marek Vasut
2024-09-09 16:51     ` Ajay.Kathat
2024-09-09 17:31       ` Kalle Valo
2024-09-09 21:11         ` Ajay.Kathat
2024-09-09 22:02           ` Marek Vasut
2024-09-10  5:03             ` Kalle Valo [this message]
2024-09-03 16:09 ` [PATCH v4 1/5] dt-bindings: wireless: wilc1000: Document WILC3000 compatible string Alexis Lothoré
2024-09-03 18:47   ` Krzysztof Kozlowski
2024-09-04 14:32     ` Alexis Lothoré
2024-09-03 19:30   ` Marek Vasut
2024-09-04 14:50     ` Alexis Lothoré
2024-09-04 17:45       ` Marek Vasut

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=87o74waymg.fsf@kernel.org \
    --to=kvalo@kernel.org \
    --cc=Ajay.Kathat@microchip.com \
    --cc=alexis.lothore@bootlin.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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;
as well as URLs for NNTP newsgroup(s).