Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp593273rwi; Thu, 27 Oct 2022 05:28:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Re7/Z2/RWO/V+a4RyP+VwloKbfb678HQXpVePVlj1PmEWxUrDrxitZQn1kGKBLKPgOKQA X-Received: by 2002:a17:907:60d3:b0:78d:f874:3267 with SMTP id hv19-20020a17090760d300b0078df8743267mr41695788ejc.409.1666873716580; Thu, 27 Oct 2022 05:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666873716; cv=none; d=google.com; s=arc-20160816; b=0PzCjF2HIzirY8YNNSu81zOt/vpQuGGE9aJLdsk1n2tuUjP94m8nHSNnCAyh9jJay8 B3HvepF9gvQaabow8qLyqk0lUb3jy1CIPGYIkCTT0wOmBYvC8LUQbG/q1876mUyyTzFr uB8bzRgvOA+tQnZJWxCPcH7S9qtym0fydpMbJbvoh5239OyeY8ADH1YT86f2GLYTM875 oXSbnvPJJwwOaH/z2pfBkOCv+RDG090vjJDpaB13spCWHUpUcrBGdkvb4x3lxl+D3r5m UOXpV/fD7qx6EnTmohZ/kjRXI9LOfKKZ5biKE70vQ8PyFnnn1UZfrPclYi0Ed2XMs8Rw 9CRA== 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 Return-Path: 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.28.10; Thu, 27 Oct 2022 05:28:36 -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 + 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 ); 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 ; Thu, 27 Oct 2022 05:26:40 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id y143so460949iof.9 for ; 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ } -- 2.34.1