Devicetree
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Chen-Yu Tsai <wenst@chromium.org>
Cc: George Valkov <gvalkov@gmail.com>,
	briannorris@chromium.org, johannes@sipsolutions.net,
	andrew@lunn.ch, krzk+dt@kernel.org, francesco@dolcini.it,
	johannes.berg@intel.com, kees@kernel.org,
	miriam.rachel.korenblit@intel.com, rafael.beims@toradex.com,
	avraham.stern@intel.com, error27@gmail.com,
	s.kerkmann@pengutronix.de, gregory.clement@bootlin.com,
	sebastian.hesselbarth@gmail.com, robh@kernel.org,
	conor+dt@kernel.org, Frank.Li@nxp.com, chunfan.chen@gmail.com,
	linux-arm-kernel@lists.infradead.org,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v5 1/3] dt-bindings: net: wireless: add flag marvell,ignore-regulatory-hint
Date: Thu, 20 Aug 2026 08:53:05 +0200	[thread overview]
Message-ID: <d6c8f19e-f154-4b57-9101-cf3b73e9794f@kernel.org> (raw)
In-Reply-To: <CAGXv+5H7AhZgZ06r9KO3HLZ9Cymkai+Cv9SgVTuSC1PjgGf8hg@mail.gmail.com>

On 20/08/2026 08:42, Chen-Yu Tsai wrote:
> On Wed, Aug 19, 2026 at 8:27 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On 19/08/2026 13:42, George Valkov wrote:
>>> On Wed, 19 Aug 2026 at 12:42, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>>>
>>>> On Tue, Aug 18, 2026 at 12:54:26AM +0300, Georgi Valkov wrote:
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml b/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
>>>>> index 930b700b73d0..5f235cb9f3e5 100644
>>>>> --- a/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
>>>>> +++ b/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
>>>>> @@ -59,6 +59,12 @@ properties:
>>>>>      description: Calibration data for sub-band 3 in the 5GHz band.
>>>>>      maxItems: 502
>>>>>
>>>>> +  marvell,ignore-regulatory-hint:
>>>>> +    $ref: /schemas/types.yaml#/definitions/flag
>>>>> +    description:
>>>>> +      Ignore an incorrect regulatory hint from ROM,
>>>>> +      so userspace can set the correct regulatory domain.
>>>>> +
>>>>
>>>> Same comments, so you just ignored entire feedback?
>>>
>>> Do you mean this feedback? I already replied to it:
>>>>> Anyway, property looks like SW choice. You must describe hardware
>>>>> instead.
>>>>
>>>> I am sorry, I do not understand what you want me to do?
>>>> Can you please send a diff or a clear description suitable for people
>>>> who have way less experience than you?
>>>
>>>
>>>> Again: you need to describe the hardware, in commit msg, in property
>>>> name and in description. You cannot tell SW what to do, that's not the
>>>> purpose of bindings.
>>>
>>> I still don't understand what I should do?
>>> Can you please show me an example of the changes you want?
>>> Else I'm likely to make a wrong guess and implement it. That obviously
>>> won't help.
>>>
>>> The commit message already describes the issue with WRT3200ACM and WRT32x.
>>>
>>> About the description, do you want me to do something like this?
>>>     description:
>>>       Ignore an incorrect regulatory hint from ROM,
>>>       so userspace can set the correct regulatory domain.
>>> +    WRT3200ACM and WRT32x are known to need this.
>>>
>>> About the property name or flag, do you want me to add a separate flag
>>> for each affected hardware device?
>>> - wrt3200acm,ignore-regulatory-hint
>>> - wrt3200x,ignore-regulatory-hint
>>> - the list may grow if someone decides to add other devices
>>> - and the driver will need to support all of them
>>> - that doesn't make sense, because it isn't scalable
>>
>> You need to describe the actual problem in the hardware or firmware, and
>> then name the property and description accordingly. "Ignore regulatory
>> hint" is clear instruction to the OS what it should do - ignore the
>> wireless-regdb package/instruction etc.
> 
> You probably have it backwards. The driver is taking the hint from the
> hardware ROM, which is fixed and thus wrong once someone carries the
> device to a different country. I.e. it is a quirk saying the _hardware_
> region should not be used.
> 
> Whether one should override the certified settings, or be able to do that,
> is a whole different discussion.
> 

regulatory-hint for me means usually regdb, but even with your meaning
you tell SW what to do - ignore hardware regulatory information.
Property should not tell what SW should do with hardware. Property
should tell what is happening here in the hardware. In this case: what
is the reason behind.

IOW, why user of a board in country X, where regulatory data says X,
should have the correct regulatory data ignored?

Best regards,
Krzysztof

  reply	other threads:[~2026-08-20  6:53 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <anWWr80yAcOQaVVS@nxpwireless-Inspiron-14-Plus-7440>
2026-08-07 18:21 ` [PATCH v3 1/2] wifi: mwifiex: ignore ROM regulatory hint on WRT3200ACM/WRT32x Georgi Valkov
2026-08-07 18:21   ` [PATCH v3 2/2] ARM: dts: armada: WRT3200ACM: add marvell,ignore-regulatory-hint Georgi Valkov
2026-08-07 18:43     ` sashiko-bot
2026-08-07 18:37   ` [PATCH v3 1/2] wifi: mwifiex: ignore ROM regulatory hint on WRT3200ACM/WRT32x sashiko-bot
2026-08-07 18:39   ` Johannes Berg
2026-08-07 19:49     ` George Valkov
2026-08-10 18:30       ` Brian Norris
2026-08-14 12:50         ` [PATCH 1/3] dt-bindings: net: wireless: add flag marvell,ignore-regulatory-hint Georgi Valkov
2026-08-14 12:50           ` [PATCH 2/3] ARM: dts: armada: WRT3200ACM: add marvell,ignore-regulatory-hint Georgi Valkov
2026-08-14 13:00             ` sashiko-bot
2026-08-14 12:50           ` [PATCH 3/3] wifi: mwifiex: add dt flag to ignore incorrect ROM regulatory hint Georgi Valkov
2026-08-17  8:54           ` [PATCH 1/3] dt-bindings: net: wireless: add flag marvell,ignore-regulatory-hint Krzysztof Kozlowski
2026-08-17 10:43             ` George Valkov
2026-08-17 11:06               ` Krzysztof Kozlowski
2026-08-17 13:20                 ` George Valkov
2026-08-17 13:24                   ` Krzysztof Kozlowski
2026-08-17 13:48                     ` George Valkov
2026-08-17 21:54                       ` [PATCH v5 " Georgi Valkov
2026-08-17 21:54                         ` [PATCH v5 2/3] ARM: dts: armada: WRT3200ACM: add marvell,ignore-regulatory-hint Georgi Valkov
2026-08-17 22:05                           ` sashiko-bot
2026-08-17 21:54                         ` [PATCH v5 3/3] wifi: mwifiex: add dt flag to ignore incorrect ROM regulatory hint Georgi Valkov
2026-08-18  0:53                         ` [PATCH v5 1/3] dt-bindings: net: wireless: add flag marvell,ignore-regulatory-hint Andrew Lunn
2026-08-18  9:58                           ` George Valkov
2026-08-19  9:40                         ` Krzysztof Kozlowski
2026-08-19  9:42                         ` Krzysztof Kozlowski
2026-08-19 11:42                           ` George Valkov
2026-08-19 12:26                             ` Krzysztof Kozlowski
2026-08-20  6:42                               ` Chen-Yu Tsai
2026-08-20  6:53                                 ` Krzysztof Kozlowski [this message]
2026-08-20  7:50                                   ` George Valkov
2026-08-20  8:14                                     ` Krzysztof Kozlowski
2026-08-20  9:33                                       ` George Valkov
2026-08-20 10:29                                         ` George Valkov

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=d6c8f19e-f154-4b57-9101-cf3b73e9794f@kernel.org \
    --to=krzk@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=avraham.stern@intel.com \
    --cc=briannorris@chromium.org \
    --cc=chunfan.chen@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=error27@gmail.com \
    --cc=francesco@dolcini.it \
    --cc=gregory.clement@bootlin.com \
    --cc=gvalkov@gmail.com \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=kees@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=miriam.rachel.korenblit@intel.com \
    --cc=rafael.beims@toradex.com \
    --cc=robh@kernel.org \
    --cc=s.kerkmann@pengutronix.de \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=wenst@chromium.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