From patchwork Tue Aug 3 14:00:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 490951 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp676967jap; Tue, 3 Aug 2021 07:01:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0OMFocJcdoAooSCSTPEoLy72wZp6Gkc0DFXZihvjOcFs/52xtKfjNuGtLRcMOho863Oe4 X-Received: by 2002:a02:cf2e:: with SMTP id s14mr19968645jar.74.1627999275354; Tue, 03 Aug 2021 07:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627999275; cv=none; d=google.com; s=arc-20160816; b=NeIxApS59YBtmot118lh2CzvrrNusvZUKc7C8D/Njdq5K2SRdrnPD5Q2rDEDsCX4hq rh7LPftObFoA7oHQwTL/4X02k3ENFWxjVhcQiQaSSx4oKqPNHqJ3gq4DJu3T0j9thc/V jXuBzL1d+nyNvsBrGo6AU3GCkYheGW8FV6GWG+lhH6onkYdD7R9ZR1Cr+5n9LKaV07rD zrc+6GrwqYSHn1guz23sHHbZ+Ri2p7lwav9Sct/1aid4IPxSG99JBejFN17MONU4N3Oe 8OdNzR6Rmbp99TRzGAUroInNr/rho4nxsMCdhAh9Irz91gVFUbpW+dXlzVZrljOWYWEU mFhw== 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=0/DHKWIP8rWNGLSAcP/V8hiWErKdNVmxV1ktr6ph0IY=; b=mw3jKlJG3kbsTn3C5KnE4nYpfk2oXJHYmPNm6gJwtkeg8so4iuc1TuojmvdOvpmI95 ORgbXWM7/bIIRFVX61Gre2lgV37rk1aeIqyGyX6tso+d0DEKG+mEAoWHCawoLpcYrF8g OtbdVm6z2uAgRSGFDev1IiNeN5Q7PZ/xGeKmIZG1XzTRRAJNY9twiBqzLwa6+HVFrn1t 4WfvhTr28TmchDYmSAvAY0+WDDWYspPgiqTMk2HRf+FcipjqcT0/HlDujexNZSsnlFSa ars2SmvpUc/9gbB0mZX9QU4XJno+A9jCA7/Fof1pdMFDQMA9pb+TOWZyC7vXcQ9gZlhI l1nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SxavRXCU; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 l6si15910722ios.26.2021.08.03.07.01.15; Tue, 03 Aug 2021 07:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=SxavRXCU; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S236443AbhHCOBX (ORCPT + 8 others); Tue, 3 Aug 2021 10:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236414AbhHCOBT (ORCPT ); Tue, 3 Aug 2021 10:01:19 -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 6248BC061764 for ; Tue, 3 Aug 2021 07:01:08 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id a1so9705367ioa.12 for ; Tue, 03 Aug 2021 07:01:08 -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=0/DHKWIP8rWNGLSAcP/V8hiWErKdNVmxV1ktr6ph0IY=; b=SxavRXCU4BdTr92avY1C++0gB3PNx8cunSCef21gbaL+U0dQPSNJGuNZeXKnt/RIuO 0lBNLvKE3iPbPB+Nzz0nn2WHB72HPTuWRTCpvxooQT4p5a3aNxRc+zwkgca4iFymVsTf tO55OH0qnh34wtaasrySCr++sOr8ZrXyJE1M7lSDOFK6K6EOCQPMpVwNqkS33KQKIIGF s5rc2knAEqOPhEkaLQRHwUqqgQmWW97TkU7JHmh0SUtPH+/qZQwQuZoxCIKAv0QppCF6 6dBSU+8Ra8Vir1KOH4Duq6jQbgw5kuVZQbJpIlF4NmWt8CwMyfWgqePTsdNMgCjzo4bJ dM0A== 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=0/DHKWIP8rWNGLSAcP/V8hiWErKdNVmxV1ktr6ph0IY=; b=A0hrCO52tLXBRS0vFv49PtrUscYhTDfg5yoQd0LKrTU8Va5aDiGIOISa/pb3+Pc9VX S5DD7f/caEron3h1bXh0aALbKu0YE7cV6FwJpLBS2nd1noJvgRY4Pv9gRaZcm5i/EWef Kmxc9eMZwEN/lmhHr+bk1LxhMz1mUl28imZzh1DQ5S/ggf+VJ+4dnWion5NHlY3wYhvA 5IG958hORGENDE7klKWYBIEmBaV/6Tencrtiq6iJE5aS1CvBL0ymhY6qegQejZsY942I wqHpG45Vb25KRMd1IzzPAMIsGMhwcAJ0Z8bZAB/zt01OyI1NxImd/JXfEs0jkD4hURc+ HKAw== X-Gm-Message-State: AOAM533Tk3cECsbiBgwfjap1YOg67gCMjIzDwhaX2GaHnxdCTfcSfwu/ tPbr/7t9qrLCOFNWhdII4mK0Rg== X-Received: by 2002:a5d:9617:: with SMTP id w23mr430474iol.115.1627999267722; Tue, 03 Aug 2021 07:01:07 -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 w7sm9456798iox.1.2021.08.03.07.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 07:01:07 -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: prepare GSI interrupts for runtime PM Date: Tue, 3 Aug 2021 09:00:57 -0500 Message-Id: <20210803140103.1012697-1-elder@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The last patch in this series arranges for GSI interrupts to be disabled when the IPA hardware is suspended. This ensures the clock is always operational when a GSI interrupt fires. Leading up to that are patches that rearrange the code a bit to allow this to be done. The first two patches aren't *directly* related. They remove some flag arguments to some GSI suspend/resume related functions, using the version field now present in the GSI structure. -Alex Alex Elder (6): net: ipa: use gsi->version for channel suspend/resume net: ipa: move version check for channel suspend/resume net: ipa: move some GSI setup functions net: ipa: have gsi_irq_setup() return an error code net: ipa: move gsi_irq_init() code into setup net: ipa: disable GSI interrupts while suspended drivers/net/ipa/gsi.c | 239 ++++++++++++++++++--------------- drivers/net/ipa/gsi.h | 31 ++++- drivers/net/ipa/ipa_endpoint.c | 14 +- drivers/net/ipa/ipa_main.c | 5 +- 4 files changed, 166 insertions(+), 123 deletions(-) -- 2.27.0