From patchwork Sat Nov 12 20:07:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13041362 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39A44C4332F for ; Sat, 12 Nov 2022 20:07:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231768AbiKLUH1 (ORCPT ); Sat, 12 Nov 2022 15:07:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233999AbiKLUHZ (ORCPT ); Sat, 12 Nov 2022 15:07:25 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9961A140D9 for ; Sat, 12 Nov 2022 12:07:22 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id r2so4017275ilg.8 for ; Sat, 12 Nov 2022 12:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OjxOPLzWayMM34TYDIOn4YJBIrr4/PeJ0axT2GqWnMo=; b=iA/nY8KLi3U1BcdOxgx9+y7xBKt32iOmQLRV4zxGlU3OYYgOR5m2cIQoE4QUBGeB+S gVWvFcaEdu5hCkJjMG40CiQa6YF/vUetF5fJO2qkkyjiY+ZHi4ZHS2sIkb4yk0BK42Zw 3vQkR/HO5cFnZmwczrZdcU5nuK6sRu6/nz8M8sPAjQ+c/h3TdLvalPVKnvgcOte5TFvC ++4sRaEqt9NlecVe24kG4dVbMN+6zk+u97cPsE/0SPsxR9QjHx7o/Bao4ixnZwzcFweV yn1fKfOVudFsnlYHTNw/cuVC8V3GS3ZbLA6qV4MEhyX7cXhaZ6ro4afRTDLUBLzp7TQj Y9ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OjxOPLzWayMM34TYDIOn4YJBIrr4/PeJ0axT2GqWnMo=; b=6QKbEo5stIzV5R+WyGJiZQovcJQNEZjAn1aXfXxbF0QRcQb5nK9isd1QgBct/14uDA Rq8Tk5TAtdkTuUG3p5XR980QnzGAKVwEqyQuwQoHx82CnT3S/suXpU7O1IgMIx1hCW1K Oqcb59dU+pk+NNbk20QYHlNdTWzGFN5+QxfDr+o+ivRm3nvRvgcoqNp7sUjZd2eNsBSJ 7sKSfyP2yiair2S3DxJWiJPoSXza/RW8aDQ9aBfE4OeI1f04Znjg2hu6TbYv9P60zgWh YG3qiRJl+QvyTMppRXHVuUsb+4OOP1ldnrSVBTpdMMhm7YZXyqzS0ayq9WH0LSUfZOzU OsTw== X-Gm-Message-State: ANoB5pnkG6RCdMl4LV42mN3oBAe4DnObQkER9UH2cjwuGfItXaiHVEiz NIq1ofnL+w3w3JQQViFT4Slz1Q== X-Google-Smtp-Source: AA0mqf5drpD8vXv0IYl+bsRyK3KVibZiYUaxs3V3jfCSnCrUqrdVqDjUDJv+4zodL7XSBnDO8Su2qA== X-Received: by 2002:a92:d94f:0:b0:2fa:b811:ed3b with SMTP id l15-20020a92d94f000000b002fab811ed3bmr3542403ilq.288.1668283641934; Sat, 12 Nov 2022 12:07:21 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id j28-20020a02cb1c000000b00363dee286edsm2036870jap.60.2022.11.12.12.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 12:07:21 -0800 (PST) From: Alex Elder To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/5] net: ipa: change GSI firmware load specification Date: Sat, 12 Nov 2022 14:07:12 -0600 Message-Id: <20221112200717.1533622-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Currently, GSI firmware must be loaded for IPA before it can be used--either by the modem, or by the AP. New hardware supports a third option, with the bootloader taking responsibility for loading GSI firmware. In that case, neither the AP nor the modem needs to do that. The first patch in this series deprecates the "modem-init" Device Tree property in the IPA binding, using a new "qcom,gsi-loader" property instead. The second and third implement logic in the code to support either the "old" or the "new" way of specifying how GSI firmware is loaded. The last two patches implement a new value for the "qcom,gsi-loader" property. If the value is "skip", neither the AP nor modem needs to load the GSI firmware. The first of these patches implements the change in the IPA binding; the second implements it in the code. -Alex Alex Elder (5): dt-bindings: net: qcom,ipa: deprecate modem-init net: ipa: encapsulate decision about firmware load net: ipa: introduce "qcom,gsi-loader" property dt-bindings: net: qcom,ipa: support skipping GSI firmware load net: ipa: permit GSI firmware loading to be skipped .../devicetree/bindings/net/qcom,ipa.yaml | 61 +++++++++--- drivers/net/ipa/ipa_main.c | 95 +++++++++++++++---- 2 files changed, 126 insertions(+), 30 deletions(-)