All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions
@ 2022-11-10 19:56 Alex Elder
  2022-11-10 19:56 ` [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction Alex Elder
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alex Elder @ 2022-11-10 19:56 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, davem, edumazet, kuba, pabeni
  Cc: andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

The first patch in this series simply removes an unnecessary
requirement in the IPA binding.  Previously, if the modem was doing
GSI firmware loading, the firmware name property was required to
*not* be present.  There is no harm in having the firmware name be
specified, so this restriction isn't needed.

The second patch restates a requirement on the "memory-region"
property more accurately.

These binding changes have no impact on existing code or DTS files.
These aren't really bug fixes, so no need to back-port.

David et al, to be clear, I intend for this to be taken through the
netdev tree.  Thanks.

					-Alex

Alex Elder (2):
  dt-bindings: net: qcom,ipa: remove an unnecessary restriction
  dt-bindings: net: qcom,ipa: restate a requirement

 .../devicetree/bindings/net/qcom,ipa.yaml     | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

-- 
2.34.1


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

* [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction
  2022-11-10 19:56 [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions Alex Elder
@ 2022-11-10 19:56 ` Alex Elder
  2022-11-11  8:26   ` Krzysztof Kozlowski
  2022-11-10 19:56 ` [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement Alex Elder
  2022-11-12  6:00 ` [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions patchwork-bot+netdevbpf
  2 siblings, 1 reply; 6+ messages in thread
From: Alex Elder @ 2022-11-10 19:56 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, davem, edumazet, kuba, pabeni
  Cc: andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

Commit d8604b209e9b3 ("dt-bindings: net: qcom,ipa: add firmware-name
property") added a requirement for a "firmware-name" property that
is more restrictive than necessary.

If the AP loads GSI firmware, the name of the firmware file to use
may optionally be provided via a "firmware-name" property.  If the
*modem* loads GSI firmware, "firmware-name" doesn't need to be
supplied--but it's harmless to do so (it will simply be ignored).

Remove the unnecessary restriction, and allow "firware-name" to be
supplied even if it's not needed.

Signed-off-by: Alex Elder <elder@linaro.org>
---
 Documentation/devicetree/bindings/net/qcom,ipa.yaml | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
index dd4bb2e748800..2d253ef488188 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
@@ -162,16 +162,6 @@ oneOf:
   - required:
       - memory-region
 
-# If memory-region is present, firmware-name may optionally be present.
-# But if modem-init is present, firmware-name must not be present.
-if:
-  required:
-    - modem-init
-then:
-  not:
-    required:
-      - firmware-name
-
 additionalProperties: false
 
 examples:
-- 
2.34.1


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

* [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement
  2022-11-10 19:56 [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions Alex Elder
  2022-11-10 19:56 ` [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction Alex Elder
@ 2022-11-10 19:56 ` Alex Elder
  2022-11-11  8:30   ` Krzysztof Kozlowski
  2022-11-12  6:00 ` [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions patchwork-bot+netdevbpf
  2 siblings, 1 reply; 6+ messages in thread
From: Alex Elder @ 2022-11-10 19:56 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, davem, edumazet, kuba, pabeni
  Cc: andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

Either the AP or modem loads GSI firmware.  If the modem-init
property is present, the modem loads it.  Otherwise, the AP loads
it, and in that case the memory-region property must be defined.

Currently this requirement is expressed as one or the other of the
modem-init or the memory-region property being required.  But it's
harmless for the memory-region to be present if the modem is loading
firmware (it'll just be ignored).

Restate the requirement so that the memory-region property is
required only if modem-init is not present.

Signed-off-by: Alex Elder <elder@linaro.org>
---
 Documentation/devicetree/bindings/net/qcom,ipa.yaml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
index 2d253ef488188..e752b76192df0 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
@@ -155,12 +155,15 @@ required:
   - interconnects
   - qcom,smem-states
 
-# Either modem-init is present, or memory-region must be present.
-oneOf:
-  - required:
+# If modem-init is not present, the AP loads GSI firmware, and
+# memory-region must be specified
+if:
+  not:
+    required:
       - modem-init
-  - required:
-      - memory-region
+then:
+  required:
+    - memory-region
 
 additionalProperties: false
 
-- 
2.34.1


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

* Re: [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction
  2022-11-10 19:56 ` [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction Alex Elder
@ 2022-11-11  8:26   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-11  8:26 UTC (permalink / raw)
  To: Alex Elder, robh+dt, krzysztof.kozlowski+dt, davem, edumazet,
	kuba, pabeni
  Cc: andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

On 10/11/2022 20:56, Alex Elder wrote:
> Commit d8604b209e9b3 ("dt-bindings: net: qcom,ipa: add firmware-name
> property") added a requirement for a "firmware-name" property that
> is more restrictive than necessary.
> 
> If the AP loads GSI firmware, the name of the firmware file to use
> may optionally be provided via a "firmware-name" property.  If the
> *modem* loads GSI firmware, "firmware-name" doesn't need to be
> supplied--but it's harmless to do so (it will simply be ignored).
> 
> Remove the unnecessary restriction, and allow "firware-name" to be
> supplied even if it's not needed.
> 
> Signed-off-by: Alex Elder <elder@linaro.org>
> ---
>  Documentation/devicetree/bindings/net/qcom,ipa.yaml | 10 ----------


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement
  2022-11-10 19:56 ` [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement Alex Elder
@ 2022-11-11  8:30   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-11  8:30 UTC (permalink / raw)
  To: Alex Elder, robh+dt, krzysztof.kozlowski+dt, davem, edumazet,
	kuba, pabeni
  Cc: andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

On 10/11/2022 20:56, Alex Elder wrote:
> Either the AP or modem loads GSI firmware.  If the modem-init
> property is present, the modem loads it.  Otherwise, the AP loads
> it, and in that case the memory-region property must be defined.
> 
> Currently this requirement is expressed as one or the other of the
> modem-init or the memory-region property being required.  But it's
> harmless for the memory-region to be present if the modem is loading
> firmware (it'll just be ignored).
> 
> Restate the requirement so that the memory-region property is
> required only if modem-init is not present.
> 
> Signed-off-by: Alex Elder <elder@linaro.org>
> ---
>  Documentation/devicetree/bindings/net/qcom,ipa.yaml | 13 ++++++++-----


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions
  2022-11-10 19:56 [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions Alex Elder
  2022-11-10 19:56 ` [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction Alex Elder
  2022-11-10 19:56 ` [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement Alex Elder
@ 2022-11-12  6:00 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-12  6:00 UTC (permalink / raw)
  To: Alex Elder
  Cc: robh+dt, krzysztof.kozlowski+dt, davem, edumazet, kuba, pabeni,
	andersson, konrad.dybcio, agross, elder, linux-arm-msm, netdev,
	devicetree, linux-kernel

Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 10 Nov 2022 13:56:16 -0600 you wrote:
> The first patch in this series simply removes an unnecessary
> requirement in the IPA binding.  Previously, if the modem was doing
> GSI firmware loading, the firmware name property was required to
> *not* be present.  There is no harm in having the firmware name be
> specified, so this restriction isn't needed.
> 
> The second patch restates a requirement on the "memory-region"
> property more accurately.
> 
> [...]

Here is the summary with links:
  - [net-next,1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction
    https://git.kernel.org/netdev/net-next/c/9d26628a4ce2
  - [net-next,2/2] dt-bindings: net: qcom,ipa: restate a requirement
    https://git.kernel.org/netdev/net-next/c/7a6ca44c1e61

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-11-12  6:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 19:56 [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions Alex Elder
2022-11-10 19:56 ` [PATCH net-next 1/2] dt-bindings: net: qcom,ipa: remove an unnecessary restriction Alex Elder
2022-11-11  8:26   ` Krzysztof Kozlowski
2022-11-10 19:56 ` [PATCH net-next 2/2] dt-bindings: net: qcom,ipa: restate a requirement Alex Elder
2022-11-11  8:30   ` Krzysztof Kozlowski
2022-11-12  6:00 ` [PATCH net-next 0/2] dt-bindings: net: qcom,ipa: relax some restrictions patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.