From patchwork Fri Feb 4 19:50:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 12735497 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 525EFC433EF for ; Fri, 4 Feb 2022 19:50:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234806AbiBDTuz (ORCPT ); Fri, 4 Feb 2022 14:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234706AbiBDTuy (ORCPT ); Fri, 4 Feb 2022 14:50:54 -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 B4EFBC06173E for ; Fri, 4 Feb 2022 11:50:49 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id q204so8702513iod.8 for ; Fri, 04 Feb 2022 11:50:49 -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=MxtfVI7KgoxN9MF1SpdHVpgmrFjcw8vxtvnlV5FrFuE=; b=NiD0q3wT+xkpMP6TDkOOqpU7H+ZR/irEDLfQ7ixuXR1K/2tAqFaHtFl1UfLN+ii2hl sffwSCM/7LmpxGuH0PuKmzF9fHEajjbGS001rDHCbQpOb2i1ijU6hfoOUqn/uGu+Q8HD mC/ZtXQDrM5c2sK8q5IaLE1Da7NtZRQq0am8fz5aqmx3GztO3YVWHgiBtsPEINnDrB6L NNHrJpX98MWuMU7a5IOkJWvKLQ9wT36Ee8L9/kf2Q8Tf7gmsRdEzelvcctV5OeP1QOwP jh2c0xvTgipGj5n7XKDwJaKkag0ngVn5BsHmz3sU7dK98U4zfJOlzjMWpQTgl0fL/pD4 QssA== 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=MxtfVI7KgoxN9MF1SpdHVpgmrFjcw8vxtvnlV5FrFuE=; b=kITQq3ZCOpc+lXIiybfu292dCkUiwTilaU8nKxzE4G3fy5aG2Po44vVXUfM0J0eDLb XvLv1fzkXUBU4Pr+AP5mT0neMeeTVIx5rriwtio8OdQfxOGqQZkjoQztqCs2hQnuVJci grOASie+zEg+kq7OI7cs4k/jvKXjHATpjF3XQOoqZx0y3EHoiqRhuTHukNbxpNqGuqrY z9P0vqOoO/za3yDTahdE57aRvti5Fy8IQY6+MCV9DWyp/Xl4EY9wcMarPHBAuVjYkcl/ W+d7F+P4YR8c1AZEkQ1ARTmfwlNGHV0fzstvAgdoOEo9s9oz0qBtjbnVoR//RUx1nakZ jdbw== X-Gm-Message-State: AOAM533YpKKxhcOSX2Qm8iEpgtIqIoG3EU62gfG0+jMDuGcezkoG0Eyg cmZdroF5Fdn21tnM0pzn+iaz7A== X-Google-Smtp-Source: ABdhPJzftx1Oesx2QJ6Qo+x81hXij1Ey8oZmAnObEMe9yf19iwRqAQmfUlqCkxP+oKkN6TyY7KbisA== X-Received: by 2002:a05:6638:1501:: with SMTP id b1mr338974jat.251.1644004249035; Fri, 04 Feb 2022 11:50:49 -0800 (PST) Received: from localhost.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id k13sm1417564ili.22.2022.02.04.11.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 11:50:48 -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 0/7] net: ipa: use bulk interconnect interfaces Date: Fri, 4 Feb 2022 13:50:37 -0600 Message-Id: <20220204195044.1082026-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. -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(-)