Message ID | 20221027122632.488694-3-elder@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp199979wru; Thu, 27 Oct 2022 05:27:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XXnMPAMSVDkLHemHSA4HbbqiWsPtusFE/90lqoTikUD4e2XBgJkIFMAmpsFroJMMLt2ae X-Received: by 2002:a05:6402:518f:b0:461:c252:c3b3 with SMTP id q15-20020a056402518f00b00461c252c3b3mr20003281edd.29.1666873663926; Thu, 27 Oct 2022 05:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666873663; cv=none; d=google.com; s=arc-20160816; b=bWWSYWNIdjpPF/zq53FL2npzuMFuQqGMoYXC1SF6rwWMWyQMbgxdF3pO2lMIBf3i43 t3qMqOac4g711FyRj/TJH6ytrAnRpNa61k0y01LQOo9NER7DSywhWHSu7ukGKJeh1hnM f4IB/784yxfqAysqcyIiOlUpu5DqGeS0vHllbaQvJgRJLkSX/os7LfSvpXbVzNWu3jM1 Y75VOVhtXIuCvbG97a3j9m+XTahly/oRT2EvwSYp6wlyUVgusPgRQBVzyth6M59Z0zrn 8iskZzYtcsKm+vQQohd2JrCzek0HNnjF51qhGWlvHS5xDhoQ8ODZBCcvPCfsVAx6AdnQ nQkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mZhPH98EZI2dEoFXGWQtmjLxJRjCACN6xFS+27Ga9q8=; b=UMay9aD/kT6o5hhmmRXgZyl30ydfyOzgtKowlmVG35MkeOTPvtez6GAvq9bPzuHKLZ 2UCWs4nI6jcniZu0EheAgNSt/qhQs2+GvVQvNTqOs3ukFiJm4xcwdcJV2sdKKhBf6bQx OODfJf/SC0LoCr6LO/lxqYxubh9JAX5Q6p4vhJm8aw9DShfOiq2BSSuPHFg6ch2/Rjaq 8wq9Cm1tULDp5RdsLy9bUxX5yZp0BerFVUyMyigYpCxg1zCFl/n3Op9FAtycTRnvhXlE DPVOTQ0IDuykhOMw8aaTAyD/fmuMu0p7/5F6gAVfyRVeWIZnUrYtWSRY9RC9cZ7Yny+R v58A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CGOB+dy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a056402004e00b0045d523bee48si1196165edu.178.2022.10.27.05.27.17; Thu, 27 Oct 2022 05:27:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CGOB+dy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235613AbiJ0M0u (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Thu, 27 Oct 2022 08:26:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbiJ0M0l (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Oct 2022 08:26:41 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3802C132240 for <linux-kernel@vger.kernel.org>; Thu, 27 Oct 2022 05:26:40 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id y143so460949iof.9 for <linux-kernel@vger.kernel.org>; Thu, 27 Oct 2022 05:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mZhPH98EZI2dEoFXGWQtmjLxJRjCACN6xFS+27Ga9q8=; b=CGOB+dy4GUYVpZbN/DWiHffXQGLBKtcmB1o3l8pIV6Su1Tk7/cZYKQBTlO6wnaarmQ 7VxFaYWL5uwsE9aAL2ZwDSgT0VNkNynJspstC4HVS2vS4YWvbNdYKdx3gIuoHuMhusDL GSh6+4QsnoL1WXG8yGkpQ5nU05969EC4nc/mQP+BH5cxcDqHiNJYDLqYY8vgDs9uz5wN uNGMVLymJbJfomK+gHqG4Q0Rr+NB8gWE7k3ZXOg7Pdj6k42BfgnCpf8kbAA4gapcXSUd E1q6/w1VhnDAepMXHViahUPSJdEs/+tVmTv8jnyFpPIYcPMgHjzFKTKFkZeziQ0YwKat DX6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mZhPH98EZI2dEoFXGWQtmjLxJRjCACN6xFS+27Ga9q8=; b=lIHlvATdeaAkuxCYBnwcYbIImkMsc5ZBNbBlIPdkHdNas03OWWd5ZnaqoMba+5raTL ztt2RqcuxHWQEjGEGZGPpPxkz4zV5uAErpCXyip01JEKUHTJ/rTWcaJ/2Err4YUQgeVj 7Nq7GopfRV9vKyrv64BmbFc1/7m8710oRyp8ZluH3TznF+235caOmvk6MxzxpNMc/SgJ C6Ylc/KEGGCnWzwL8y5UqZi9cltOqdY0h6ZhZyX0G6PxYIhQWIiawfj6WQrDKwN9KnmA Sa0sVm0ANgZcIHLMKW7LtgRnwBDlj03AVcUzswcpBTMBu0K+dhMmgeojsv/NeLnQH3i7 3cXw== X-Gm-Message-State: ACrzQf3OZtpy7DUa15/8g4JtS55Yc7MD0PDE7/lFdMAQfsPzew3fkDSW CX7glRmySjuVkkr00VNPRFJB0Q== X-Received: by 2002:a6b:5f1d:0:b0:6c5:247c:6763 with SMTP id t29-20020a6b5f1d000000b006c5247c6763mr1803360iob.65.1666873599556; Thu, 27 Oct 2022 05:26:39 -0700 (PDT) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id w24-20020a05663800d800b003566ff0eb13sm526528jao.34.2022.10.27.05.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 05:26:39 -0700 (PDT) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: mka@chromium.org, evgreen@chromium.org, andersson@kernel.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/7] net: ipa: change an IPA v5.0 memory requirement Date: Thu, 27 Oct 2022 07:26:27 -0500 Message-Id: <20221027122632.488694-3-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221027122632.488694-1-elder@linaro.org> References: <20221027122632.488694-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747843718751217159?= X-GMAIL-MSGID: =?utf-8?q?1747843718751217159?= |
Series |
net: ipa: start adding IPA v5.0 functionality
|
|
Commit Message
Alex Elder
Oct. 27, 2022, 12:26 p.m. UTC
Don't require IPA v5.0 to have a STATS_TETHERING memory region.
Downstream defines its size to 0, so it apparently is unused.
Signed-off-by: Alex Elder <elder@linaro.org>
---
drivers/net/ipa/ipa_mem.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ipa/ipa_mem.c b/drivers/net/ipa/ipa_mem.c index cb95402018394..9ec5af323f731 100644 --- a/drivers/net/ipa/ipa_mem.c +++ b/drivers/net/ipa/ipa_mem.c @@ -198,9 +198,12 @@ static bool ipa_mem_id_required(struct ipa *ipa, enum ipa_mem_id mem_id) case IPA_MEM_PDN_CONFIG: case IPA_MEM_STATS_QUOTA_MODEM: - case IPA_MEM_STATS_TETHERING: return ipa->version >= IPA_VERSION_4_0; + case IPA_MEM_STATS_TETHERING: + return ipa->version >= IPA_VERSION_4_0 && + ipa->version != IPA_VERSION_5_0; + default: return false; /* Anything else is optional */ }