From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41B53C432BE for ; Tue, 27 Jul 2021 21:21:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2676260BD3 for ; Tue, 27 Jul 2021 21:21:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234113AbhG0VVQ (ORCPT ); Tue, 27 Jul 2021 17:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbhG0VVD (ORCPT ); Tue, 27 Jul 2021 17:21:03 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3685C0619E3 for ; Tue, 27 Jul 2021 14:19:36 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id l126so372822ioa.12 for ; Tue, 27 Jul 2021 14:19:36 -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=FZgXW2V/OmKKCTONUYggrHApUH/cqcNZ6/eLxchFR40=; b=VM7KUz0bF1HEiw7DUvb0cAp/g9JcMdSpkE+1acS68yPoa2/OpWNBkieA2Lu5+ZFgS3 DabDqKTvy6RQWLCuKi2ELVEbV7Ewa1qHCDtLod11+AjBV2agVt//Iuos+xSVOkR2ZNa1 x3X+hTbIFAhxJpvNoQmjTiNIqwHxbqNFhIzyzyn5+mNkHZqAnlj/08jiM1est/OLMZoV +trp+QyJi1CRgoWPPcbxZ43e1+IoSZ7blHTAVpU5imQQ7CWQdxgE4b0edPDATadNMZxl vbOYCHomWvRdiPCp4Aie/kSiIfLxTqaaTKDc/oMY37O7sszm3ZwypAY5bHgrvrFxWEbg 8ONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FZgXW2V/OmKKCTONUYggrHApUH/cqcNZ6/eLxchFR40=; b=rv4vNbLD/GtkJASysL/4sv6lznsys0i6Fs/FlebMdxoyfen6WD2Wp1GkXZtBIAN6Lg uYYN4+LJPS1hEoJWC8YHbY53d0nkdhU1vEJgakWdNVfCfuZYeYp+ZaBbh4nvdoPRgIsJ TY1cA+W+fuawmG6BSjnjhWF8Srv1JCfhra4V08gVUkTejq1HRbYn71m/B/VC4LbKjezt dnNGTwTg4zmycrzOxRL60vt/Qb3zRzCC46psyGyqFlkdqMcYLUcvAHnkmSt0oGcsMsXD aCLUXGXjS96mKEJfI7CxsTwPE8ArrAiWrddBelSmiZmgHZ6rsl6QHedLA0XfOlQ+rALb HAXQ== X-Gm-Message-State: AOAM531U0bhW0eGwY4nDckJ67JCpT1SLOk02dYLwypoXpkFCPqf7ymos FLZzNMVtTffh0SvB5yB3VxeGfw== X-Google-Smtp-Source: ABdhPJyKyHin6AJhtDilAfPr1Ta2tQ2NmkxOXC7J0laG+PMpC0T6eeyG5+wP1CJLyqJVUu4jWSh36Q== X-Received: by 2002:a6b:b24e:: with SMTP id b75mr20870753iof.94.1627420776131; Tue, 27 Jul 2021 14:19:36 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id s21sm3136068iot.33.2021.07.27.14.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 14:19:35 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/5] net: ipa: add clock references Date: Tue, 27 Jul 2021 16:19:28 -0500 Message-Id: <20210727211933.926593-1-elder@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series continues preparation for implementing runtime power management for IPA. We need to ensure that the IPA core clock and interconnects are operational whenever IPA hardware is accessed. And in particular this means that any external entry point that can lead to accessing IPA hardware must guarantee the hardware is "up" when it is accessed. The first four patches in this series take IPA clock references when needed by such external entry points, dropping those references in those same functions when they are no longer required. The last patch is a bit different, though it too prepares for enabling runtime power management. It avoids suspending/resuming endpoints if setup is not complete. -Alex Alex Elder (5): net: ipa: get clock in ipa_probe() net: ipa: get another clock for ipa_setup() net: ipa: add clock reference for remoteproc SSR net: ipa: add a clock reference for netdev operations net: ipa: don't suspend endpoints if setup not complete drivers/net/ipa/ipa_main.c | 37 ++++++++++++++++++++++++++----------- drivers/net/ipa/ipa_modem.c | 14 +++++++++++++- drivers/net/ipa/ipa_smp2p.c | 5 +++++ 3 files changed, 44 insertions(+), 12 deletions(-) -- 2.27.0