ath11k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property
       [not found] <288fc9a0db6c292bc132e828611c41785b075078.1686486461.git.chunkeey@gmail.com>
@ 2023-06-11 12:37 ` Christian Lamparter
  2023-06-11 12:37   ` [PATCH v2 2/2] wifi: ath11k: add support DT ieee80211-freq-limit Christian Lamparter
                     ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christian Lamparter @ 2023-06-11 12:37 UTC (permalink / raw)
  To: devicetree, linux-wireless, ath11k
  Cc: kvalo, conor+dt, krzysztof.kozlowski+dt, robh+dt, Conor Dooley

This is an existing optional property that ieee80211.yaml/cfg80211
provides. It's useful to further restrict supported frequencies
for a specified device through device-tree.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---
v1->v2: make dtbs_check dt_binding_check (moved to existing allOf: seems to be fine)
---
 .../devicetree/bindings/net/wireless/qcom,ath11k.yaml          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml
index 7d5f982a3d09..521dc71d5e97 100644
--- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml
+++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml
@@ -58,6 +58,8 @@ properties:
     minItems: 1
     maxItems: 2
 
+  ieee80211-freq-limit: true
+
   wifi-firmware:
     type: object
     description: |
@@ -87,6 +89,7 @@ required:
 additionalProperties: false
 
 allOf:
+  - $ref: ieee80211.yaml#
   - if:
       properties:
         compatible:
-- 
2.40.1


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] wifi: ath11k: add support DT ieee80211-freq-limit
  2023-06-11 12:37 ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Christian Lamparter
@ 2023-06-11 12:37   ` Christian Lamparter
  2023-06-12  8:41   ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Krzysztof Kozlowski
  2024-04-18 15:19   ` Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Lamparter @ 2023-06-11 12:37 UTC (permalink / raw)
  To: devicetree, linux-wireless, ath11k
  Cc: kvalo, conor+dt, krzysztof.kozlowski+dt, robh+dt

The common DT property can be used to limit the available
channels/frequencies. But ath11k has to manually call
wiphy_read_of_freq_limits().

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---
compile-tested only.
---
 drivers/net/wireless/ath/ath11k/mac.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index c947d1c8d8c1..7e43f2770f27 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -9414,6 +9414,7 @@ static int __ath11k_mac_register(struct ath11k *ar)
 	if (ret)
 		goto err;
 
+	wiphy_read_of_freq_limits(ar->hw->wiphy);
 	ath11k_mac_setup_ht_vht_cap(ar, cap, &ht_cap);
 	ath11k_mac_setup_he_cap(ar, cap);
 
-- 
2.40.1


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property
  2023-06-11 12:37 ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Christian Lamparter
  2023-06-11 12:37   ` [PATCH v2 2/2] wifi: ath11k: add support DT ieee80211-freq-limit Christian Lamparter
@ 2023-06-12  8:41   ` Krzysztof Kozlowski
  2024-04-18 15:19   ` Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-12  8:41 UTC (permalink / raw)
  To: Christian Lamparter, devicetree, linux-wireless, ath11k
  Cc: kvalo, conor+dt, krzysztof.kozlowski+dt, robh+dt, Conor Dooley

On 11/06/2023 14:37, Christian Lamparter wrote:
> This is an existing optional property that ieee80211.yaml/cfg80211
> provides. It's useful to further restrict supported frequencies
> for a specified device through device-tree.
> 
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
> ---
> v1->v2: make dtbs_check dt_binding_check (moved to existing allOf: seems to be fine)
> ---
>  .../devicetree/bindings/net/wireless/qcom,ath11k.yaml          | 3 +++
>  1 file changed, 3 insertions(+)

I got three similar patches in one thread, two with same versions.

One version is one patchset. Do not attach (thread) your patchsets to
some other threads (unrelated or older versions). This buries them deep
in the mailbox and might interfere with applying entire sets.

Best regards,
Krzysztof


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property
  2023-06-11 12:37 ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Christian Lamparter
  2023-06-11 12:37   ` [PATCH v2 2/2] wifi: ath11k: add support DT ieee80211-freq-limit Christian Lamparter
  2023-06-12  8:41   ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Krzysztof Kozlowski
@ 2024-04-18 15:19   ` Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-04-18 15:19 UTC (permalink / raw)
  To: Christian Lamparter
  Cc: devicetree, linux-wireless, ath11k, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, Conor Dooley

Christian Lamparter <chunkeey@gmail.com> wrote:

> This is an existing optional property that ieee80211.yaml/cfg80211
> provides. It's useful to further restrict supported frequencies
> for a specified device through device-tree.
> 
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

2 patches applied to ath-next branch of ath.git, thanks.

30ba0022b30a dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property
43528ae9d9bf wifi: ath11k: add support DT ieee80211-freq-limit

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/fc606d2550d047a53b4289235dd3c0fe23d5daac.1686486468.git.chunkeey@gmail.com/

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-18 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <288fc9a0db6c292bc132e828611c41785b075078.1686486461.git.chunkeey@gmail.com>
2023-06-11 12:37 ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Christian Lamparter
2023-06-11 12:37   ` [PATCH v2 2/2] wifi: ath11k: add support DT ieee80211-freq-limit Christian Lamparter
2023-06-12  8:41   ` [PATCH v2 1/2] dt-bindings: net: wireless: ath11k: add ieee80211-freq-limit property Krzysztof Kozlowski
2024-04-18 15:19   ` Kalle Valo

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).