Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp232708pxb; Thu, 12 Aug 2021 15:12:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHsVOgrqnqh0EqfP5Tjosi0ScIjOYztEyi0ISvTzHVJ8SJoLAxYYa+kKrRW3CoIq+hNmCW X-Received: by 2002:a05:6402:5:: with SMTP id d5mr8058599edu.359.1628806359446; Thu, 12 Aug 2021 15:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628806359; cv=none; d=google.com; s=arc-20160816; b=QmBpTQaiQzkOWGA0n6BLlsbBQ9Hl1rNxklP2sCfFQ1r5l9meT03qR9yRPnLqRGWvz1 7aXSBVwSZq4vJCgMk5iw8Ya+mcSTH09uzMQq+pf3vle0C38sQmKdygiL++tH6So6q1O0 zO7A4UzNZApBOg/uv232YDCN+rYE88J4/G8zolxKku5sT3/axnwzayHAqShN9Pt3KT4J gaxof6kDAsiutMgGJA2KQ2b/OV2erdAtVfzRYYuo0AlWu8WjCx6jssvrkMt1d5XOjZYl 8/uhXyJhpQbfqmen0wFuRWdBCrkHgGjRfzGQxS6VBeij/dl5lb/Annov2fBYX7hmxGKB 8yuA== 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=A1nWF/SBVlOEtRNj50bqjEm68CLUjY5XY9SL0pkxyOY=; b=n0fJrCDzf52eugDs0oQVBnH6hS5ervocSBxCY+nn2q4TMyTxghHOSgceSJp7LcZaVS 8ofAiX/J8xpVSLBj6ZbB1slE7TWAcEc7TplMrklKRgoKAsSTE2oOQ+b5lt2FNmk7s76N l7bNhbG1v2MP8PQEBSLRWOeX0rtFE1B1X2T584WB/+gi0uLoWzyk8FRI1BBMYzTK08tG qbgvD7LZTuBnU270FcVT1LFUsqE8bI6HUXUt65gsFTDxeRdxjPRrkDBs+aGJ0Xv47+pI HsZCQxD1+A0NArjn7G4K4Jqu27JFh24L3dkJ/2kG5pa/SG3Z0kysISqrFdi0V5G3MYEz mKdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xL6NK+yc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gk1si3583690ejc.31.2021.08.12.15.12.13; Thu, 12 Aug 2021 15:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xL6NK+yc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234573AbhHLTvF (ORCPT + 99 others); Thu, 12 Aug 2021 15:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232647AbhHLTvE (ORCPT ); Thu, 12 Aug 2021 15:51:04 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B52C0613D9 for ; Thu, 12 Aug 2021 12:50:39 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id v2so2097543ilg.12 for ; Thu, 12 Aug 2021 12:50:39 -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=A1nWF/SBVlOEtRNj50bqjEm68CLUjY5XY9SL0pkxyOY=; b=xL6NK+ycinMutAWQ2Laswxy1kPlT3t6lZqn0gzCl2wdizaPzJlCmjrGM2eQ1rPyAId OH3X1+MMj8cIJqnG7DNTkhp45RPX3vMwuJ8f60Aw6YWU6ArYgcFfhtMtpNPG36YS8lYQ rDacq/UJ+uyQWmrVGrpcQaqkQDNZQLUk0B+Ob238Gg20aMwV+4b3zDp9B0N1nnEbtAnW kGCL6Pkslo4kWUMFIYRSJ15z/1xjFLl5TsvK/TX+0GFAoW9pLvxy+9/Gkg9YT2CZQxuB CPY+vVGK11e2asH+J+ogIJlhpKYKOUdBkc++lv+HW9TRKJOhfLXZ/IYafdLuve7TJBav qIjw== 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=A1nWF/SBVlOEtRNj50bqjEm68CLUjY5XY9SL0pkxyOY=; b=tCiMWQKDFx0Ib3EcVEl7WP6ivTjBBTEJm9yyUh6GDXVQhYLQTqXzcBT6NoskRG1fjd k9/7p36lK5+AM7G9MdgtUwdr4beAxAGKcz24zW3n1ks0ya3XL49FtT996FtQN+ei2NTa w1kC/8k2Rgt6sG6HmUC6W7+TdiQODP+g3lVuzfdi7vtFuh6bwNofn0NKc2Lg5YA8xSgs aT7r3W7gHT5K67frym7551lj2RT7Z1+ACC+0UmLhLD5otntin7dtpdn/W+eMVtOOpORk TVwwJ0YS0850k8TfmnYzpveLFozh+pIV/OzVwqY/GIholAO1hO3jh9rccmCveD4e4S02 FpjQ== X-Gm-Message-State: AOAM532V4EAIFiXKXKimC6VKfAqZMjmVM3RLIKBTmfujB6iUzl32jy1h ViQIpAqb0cf8SbxpuMKuRUyKMA== X-Received: by 2002:a92:d3cb:: with SMTP id c11mr209351ilh.178.1628797838524; Thu, 12 Aug 2021 12:50:38 -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 s16sm2058821iln.5.2021.08.12.12.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 12:50:37 -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/6] net: ipa: last things before PM conversion Date: Thu, 12 Aug 2021 14:50:29 -0500 Message-Id: <20210812195035.2816276-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 contains a few remaining changes needed before fully switching over to using runtime power management rather than the previous "IPA clock" mechanism. The first patch moves the calls to enable and disable the IPA interrupt as a system wakeup interrupt into "ipa_clock.c" with the rest of the power-related code. The second adds a flag to make it possible to distinguish runtime suspend from system suspend. The third and fourth patches arrange for the ->start_xmit path to resume hardware if necessary, to ensure it is powered. If power is not active, the TX queue is stopped, and arrangements are made for the queue to be restarted once hardware power is active again. The fifth patch keeps the TX queue active during suspend. This isn't necessary for system suspend but it's important for runtime suspend. And the last patch makes it so we don't hold the hardware active while the modem network device is open. -Alex Alex Elder (6): net: ipa: enable wakeup in ipa_power_setup() net: ipa: distinguish system from runtime suspend net: ipa: re-enable transmit in PM WQ context net: ipa: ensure hardware has power in ipa_start_xmit() net: ipa: don't stop TX on suspend net: ipa: don't hold clock reference while netdev open drivers/net/ipa/ipa_clock.c | 49 ++++++++++++++++++++----- drivers/net/ipa/ipa_clock.h | 4 ++- drivers/net/ipa/ipa_main.c | 6 +--- drivers/net/ipa/ipa_modem.c | 72 +++++++++++++++++++++++++++++++++---- 4 files changed, 111 insertions(+), 20 deletions(-) -- 2.27.0