Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1517075iol; Fri, 10 Jun 2022 09:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+es1ritU45hERj7U7dQ2iskY1YdLW+ocbcq+BCdHMkMAxnB7utkc5asENZJB3R5EfnW9P X-Received: by 2002:a17:906:3f51:b0:712:3945:8c0d with SMTP id f17-20020a1709063f5100b0071239458c0dmr983616ejj.302.1654877016184; Fri, 10 Jun 2022 09:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654877016; cv=none; d=google.com; s=arc-20160816; b=eGjwcIF/DCA4xUYSL+3k77TtW5CyR+V99jwiVPaXGB9diQoBeESBoeoFWV4XMjHrXr DZsxUF0GWTKoSzi2smKD29yfKmefJHnxlRTpfpZOjq+OwCfpir/ZIoK6gixo+Va90ynY SqI5ZtO6hW5JQOq4o3n0W7I05pRDKCt0UIc0BfxZlz7FJywtJOgQchLE2tVJjPCiOsE4 c3oUfmFh2dJNlrn53spqx1X53yS0HIYtXrMwkpdLzTUswj/zfSQ0GBELp0CKrpBiiZ/8 LtBwO3jRh0Er5MzSNywgKaDEUo1bK7ST+NHBkMm7MNUubKFsT8NrAMSlBsRR2FPNSCf6 khkQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=U5gwtupWPtnYNKyTXg+LeUPBFQAkfKZ5r5Zn8j7l7dY=; b=HzK3fwUGm2kPK+fspsldXgq2j1LLSuhmDkv44b3P7iEaks8mafLI9aEIzydqRW29HL fSgWqVvYkgd0VR2LdQ9Krb7gd+tJBZlAaKFcHp+5W8RcTKRap5mJ7YziN/kRqYFF5w7r iKwMnW180quRu6U4NI7qKIATMEsW+JT782kRfv3dHm9URM7Re5Pt/ASwY7pfPU9JG1dV ScsHuorMMeyLZa9jsTmv4F+XQv+n6YS49CQ+OaUA0PxEy4sqbTV98JQBAKpX513DmuNt XXiUYL33cQXsT0g3TUGjS00xZEb/4nbMxTAvE31Qdxi9AvMmky90B6IHTcdOiwxAV3sZ MAUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rsvaBZc/"; 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 hz5-20020a1709072ce500b0070d01a902dasi13281455ejc.405.2022.06.10.09.03.09; Fri, 10 Jun 2022 09:03: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="rsvaBZc/"; 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 S231317AbiFJPq3 (ORCPT + 99 others); Fri, 10 Jun 2022 11:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241735AbiFJPqV (ORCPT ); Fri, 10 Jun 2022 11:46:21 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA90F32ECC for ; Fri, 10 Jun 2022 08:46:19 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id f7so21221405ilr.5 for ; Fri, 10 Jun 2022 08:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U5gwtupWPtnYNKyTXg+LeUPBFQAkfKZ5r5Zn8j7l7dY=; b=rsvaBZc/2eV3W/hqt/2R6TaglxS1NpGazxTwdH1EiRqRZjuOFHq4fcRsP28TCrr6n2 y70IDwFbjt3ttye9H+DuJbzoALnjiE4t7ohskFyKdzguvX+aZW8DuYrmkeAqJ6G5dFL0 DISA0/kvXco6tRkNdDPXJwkVyeSqR2M30ANzkB0wjNZEaDKzAGhlC1IMWFqxOYiwrAdk WDwQ6rARVLwrHfKVLFNXd0br6h0wR2dklUf3RKiiUd0dAyGkAhbJXbJPX+prgXaJ5YjJ TUs92Zb48/H9SQ219aXJdLr7IoolQOTMTvocnLrA/iIqP+uyFvNIVHAjPpn/wN4OXZB8 4XvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U5gwtupWPtnYNKyTXg+LeUPBFQAkfKZ5r5Zn8j7l7dY=; b=aeOM7meEb+eu805SbhHYz3QvywQnBKGgKpmxaA7OlT/6Ocs/5DMfaXK34AQKO6U+XM IbRK4Vicm3g6a66xJ6SDPztsiPYOilBjfcnwEvS0VGwlLywDtLDHwDVqTUcl3KwYNHUn NsSs6PCYbgLSdXXZjGlz5cm9VcZi+v4KcFfVcSr0MDQVBBEK7IDz5FzPCuj+VcpZCP+g +WpgUgSH9I2hspwpUG4SWTL7GETBNF+VPGsYvc6LH4jVKrQYyyNKXB/4Qg+5E9ttSBCD ge+Z33010nxrgJiCXZIoh94yrIqD25gcIv/O8n5CHuxcV01TESD8puohYPIUeVZwkr2U DLrg== X-Gm-Message-State: AOAM530K0BCLkHYn8ImPC8jFXVmd44+UG48YSKaYV0leswjv44dNNhwS Bh1alvIwKtEkobU/sVKin6KQRw== X-Received: by 2002:a05:6e02:12ee:b0:2d1:7bcd:f7cd with SMTP id l14-20020a056e0212ee00b002d17bcdf7cdmr24726885iln.173.1654875979092; Fri, 10 Jun 2022 08:46:19 -0700 (PDT) Received: from localhost.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id y15-20020a92950f000000b002d3adf71893sm12100488ilh.20.2022.06.10.08.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 08:46:18 -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, bjorn.andersson@linaro.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 0/6] net: ipa: simple refactoring Date: Fri, 10 Jun 2022 10:46:09 -0500 Message-Id: <20220610154616.249304-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This series contains some minor code improvements. The first patch verifies that the configuration is compatible with a recently-defined limit. The second and third rename two fields so they better reflect their use in the code. The next gets rid of an empty function by reworking its only caller. The last two begin to remove the assumption that an event ring is associated with a single channel. Eventually we'll support having multiple channels share an event ring but some more needs to be done before that can happen. -Alex Alex Elder (6): net: ipa: verify command channel TLV count net: ipa: rename channel->tlv_count net: ipa: rename endpoint->trans_tre_max net: ipa: simplify endpoint transaction completion net: ipa: determine channel from event net: ipa: derive channel from transaction drivers/net/ipa/gsi.c | 107 ++++++++++++++++++--------------- drivers/net/ipa/gsi.h | 11 +--- drivers/net/ipa/gsi_private.h | 12 ++-- drivers/net/ipa/gsi_trans.c | 10 +-- drivers/net/ipa/ipa_cmd.c | 8 +-- drivers/net/ipa/ipa_endpoint.c | 27 +++------ drivers/net/ipa/ipa_endpoint.h | 4 +- 7 files changed, 80 insertions(+), 99 deletions(-) -- 2.34.1