From patchwork Tue Nov 15 11:31:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13043536 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 A4A00C43217 for ; Tue, 15 Nov 2022 11:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232253AbiKOLb2 (ORCPT ); Tue, 15 Nov 2022 06:31:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiKOLb1 (ORCPT ); Tue, 15 Nov 2022 06:31:27 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E4591A399 for ; Tue, 15 Nov 2022 03:31:25 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id h9so23768507wrt.0 for ; Tue, 15 Nov 2022 03:31:25 -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=UddS6z+HZ5YVbRh2ru9NrfNaV2JxWhP7gmUffyLBQnQ=; b=l8EZnFK7Henaqr9gMLielppZAarrfSFm/9FuMii4B0WDnShzG3XT8QiLbKz3BZ2scB o9iZkEcvXEGji+8GqnYbfi5Pombeb2e90HcRXDawAJvBXSd3NOWk521J3w5FqFlMuVf+ /iH4luipNlK+/dQQNXWtEciXjpQya4W2/xNR2aHkT9KrHsXVkzDThCPk9SR+8VbAwwhl 7/4xmYDuNNfSiu8pMHx8Zg4gEYsygpzNbZNCTvhEJO+hymU0EgN5tyeVDZoT0Abf+iE+ FD8AG3PiKpFT4EpQxeAhFjeUBKxS9xsL8gc0Fxgk7uw7sf0OGVRNEvHdbOHfrkeb9J6q Pk0w== 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=UddS6z+HZ5YVbRh2ru9NrfNaV2JxWhP7gmUffyLBQnQ=; b=0D24ubbPdTwTn7DEt5kq13qaFfSiyBXVXKbU7EB98oLlEMMmvCdgK9BKmsfXy/LNSX a6kuDd8aWQRBOIn7a+pFd4E4KDMrJvUbupRLzagOQ0/HdsEqxFv3NS+6X5kt100/hYzD gZJssSGPenQ4Cx2N6dqqCoKbWBlvP9RhJE0vJRkI2eJLD8nXDajQPNfVRD6Vn+kdjH7M YM5X+7NY6kLTm6g+NFVglKIWHDjRGzCy7pnJ5Od1urTPgO2xetSm8Kb0/jvMbzDpzbhS gdKaDBkMzhEnW0/l13TclQ1YGTgT+7v622qaM5SQiSj/2nDrRQQpFt6rLnayHtSS3A6K 8dvA== X-Gm-Message-State: ANoB5pmy09+/rgYfrlz3MhnqyQrKWr5SR3IG2dPFRSNlTyF8gMgjDeKG UbLE5O6ghHk3mcsKxYgz+m0ycg== X-Google-Smtp-Source: AA0mqf7e8OfdxOKRfTIFGfYs2rOT+Ob6Xy7QeTxJe/DCYWFZIgWCHvvWJKR4Si+l/C4cddXA588gig== X-Received: by 2002:adf:ec10:0:b0:22e:48ee:dc64 with SMTP id x16-20020adfec10000000b0022e48eedc64mr10210424wrn.319.1668511883718; Tue, 15 Nov 2022 03:31:23 -0800 (PST) Received: from zoltan.localdomain ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm12273091wrm.16.2022.11.15.03.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 03:31:22 -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 v2 0/5] net: ipa: change GSI firmware load specification Date: Tue, 15 Nov 2022 05:31:14 -0600 Message-Id: <20221115113119.249893-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 Version 2 of this series modifies the first patch only. One section in the description is reworded, and the example now consistenly describes the SC7180 SoC, both as suggested by Krzysztof. 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 | 78 +++++++++++---- drivers/net/ipa/ipa_main.c | 95 +++++++++++++++---- 2 files changed, 135 insertions(+), 38 deletions(-)