From patchwork Wed Mar 9 19:20:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 12775502 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 A0521C433EF for ; Wed, 9 Mar 2022 19:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231620AbiCITVn (ORCPT ); Wed, 9 Mar 2022 14:21:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235339AbiCITVm (ORCPT ); Wed, 9 Mar 2022 14:21:42 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7716856C30 for ; Wed, 9 Mar 2022 11:20:43 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id s20so3935277iol.2 for ; Wed, 09 Mar 2022 11:20:43 -0800 (PST) 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=V3qUnbt1P5mTTafoLBkFNxFxh8sf9sREpXzWUvgskYo=; b=o9NEYp98ynsmbGtnJMP9V92Qre4ZiQIkf6My+RPa/sf+MX+JoByPY4g1LMIFrXSK0o B/3y5rbm4jpZfFpLkNdXGqrgNgPRz7WnRT+QHn3mhK1iGYsI1JJ+GW2sfCrtrJkrqFm1 bd1uIfn/Hy2oDYbwq1f9NzeoJU+8Xz8n0Ko0cBvfQXrZmfkHbhkzpQihNfi9vhNoahfI YWRNFGImR5MMfXBl7XotbbtP5SxpSGuWmBnWRjQ//kl3iq2JG4+q1MwE1iWHGERdf0oB qqlQ2AXLVn9wmJXtlQhAY5W9v+TYYHY7IoF3ZPfwAb4Zf+j1MOdKytFNWgGSfxcwKK+B IwwQ== 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=V3qUnbt1P5mTTafoLBkFNxFxh8sf9sREpXzWUvgskYo=; b=lzFTzKoBkCSJB/n1S8P2jv4NJqWX3XMAalGhYaDFvPUIH0BhAb84hRvxaJQW0EgXlE X1LeJhLy4MV+dGCf8mLaq+26rv5Hgn5Cha7bDg2jKGD6G1hpbPRkpJU4M3HyNReMYaOu IN+sYjGnegvnXRLnv0iN8jtFBNU6cQ9QJR83emCHhBJ51DNoJtw1Usg3djQvO3aEzCL5 bwZVA/sak64BUi4UyjBXBSuYZQLRvXx6v+CBXFM0LV65rUmPoFM7iHg1QtIreRvEqQrm ntADJqnJrZjXErpwOQITRDAREoCEdIknhGUoOQLoienrHeAcxwJL2uA8IYPzAXTkesGl a3nA== X-Gm-Message-State: AOAM530krZCr+xZLrAdXdoc1qr0PJuAIH6rOEX7XdfpB5jTGvlsH7RSj CmsAs4ySBXP8ugoPONeJmNc3/w== X-Google-Smtp-Source: ABdhPJwWisSsDtytKz9CbRJiULeLBJoTyeuepCwo8RuxHKA2+X3zReviscCzWN31tMjWxOLr87P2jA== X-Received: by 2002:a05:6638:2586:b0:319:ac56:5f2f with SMTP id s6-20020a056638258600b00319ac565f2fmr852653jat.146.1646853642298; Wed, 09 Mar 2022 11:20:42 -0800 (PST) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id g8-20020a056602248800b006409fb2cbccsm1389182ioe.32.2022.03.09.11.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 11:20:41 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: djakov@kernel.org, bjorn.andersson@linaro.org, mka@chromium.org, evgreen@chromium.org, cpratapa@codeaurora.org, avuyyuru@codeaurora.org, jponduru@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/7] net: ipa: use bulk interconnect interfaces Date: Wed, 9 Mar 2022 13:20:30 -0600 Message-Id: <20220309192037.667879-1-elder@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The IPA code currently enables and disables interconnects by setting the bandwidth of each to a non-zero value, or to zero. The interconnect API now supports enable/disable functions, so we can use those instead. In addition, the interconnect API provides bulk interfaces that allow all interconnects to be operated on at once. This series converts the IPA driver to use the bulk enable and disable interfaces. In the process it uses some existing data structures rather than defining new ones. Version 2 contains the same code as version 1; it's just rebased. Now that commit 1dba41c9d2e2d ("net: ipa: add an interconnect dependency") is in net-next/master the COMPILE_TEST build error reported for the original version should be gone. https://lore.kernel.org/all/20220204202336.67c95e15@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/ -Alex Alex Elder (7): net: ipa: kill struct ipa_interconnect net: ipa: use icc_enable() and icc_disable() net: ipa: use interconnect bulk enable/disable operations net: ipa: use bulk operations to set up interconnects net: ipa: use bulk interconnect initialization net: ipa: embed interconnect array in the power structure net: ipa: use IPA power device pointer drivers/net/ipa/ipa_power.c | 178 +++++++++--------------------------- 1 file changed, 42 insertions(+), 136 deletions(-)