Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2129496rwp; Fri, 14 Jul 2023 00:53:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEzh2biCLwdl3Coh822prWQf5sGo+Z6s8hkv9LTBFhvomCutZzelytAaquXt39rmd9aFDMM X-Received: by 2002:a17:906:6b97:b0:98e:26ae:9b01 with SMTP id l23-20020a1709066b9700b0098e26ae9b01mr3164627ejr.65.1689321223112; Fri, 14 Jul 2023 00:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689321223; cv=none; d=google.com; s=arc-20160816; b=1KQsMC+JLhWPrvHFBPem/mNdyEv9IZCGf6KKWPkPpqnYCKxNmqYrEmA2AhsVJX3phr nJ03nrW2q7hJPeHuJC9X4cIhHCRnDoX3J1C4OvW4exvHED2wRqNkB4G0t9YurT+jp9Gt 2ySIh5OQ5YXHwfsi3oPeebjdsfwZAEwV1UY358wHNMHGgpRqhN5syDsZdbuAe6pirzlO Zn0K6eMp6OVNKz15YgYVl9X5yVMUdvAdEkFDu7elT+ZsgXsQSh2Na3xC1TYoyTf3nvyg 71ZkvS/2/v6z1t2wQRu8IUbDCHcC+ym0MowpQkVy0sK0AuaVFPvriIHs0Hoh8mEi2O3r kOwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uHcH/c+mZ+etaUSE0IpLt5En/if0JQP1r9lIBm/2K+s=; fh=sVkhLBHlTpjIWK1SB1/pVXD18LLlW0BJl1pUfw1S5ZA=; b=G0UAoWQqWtJBquYmnzvbQCbl2pnxO7+yzG5Yxvug/poGaVF/z0eUgXgGJnokPHoIKM aDUn1pbDqcP1vBvM5d7bfVYqbWvsOdGYfV49p2Z++HwQ3HAIbkfb98OASQS0brAzgocT bwFMb228S5gjpXEpteX7uR5hkfvsXGXMnHJIOUWZlUkUolD0Ttm66nd2fuUxpekQJRH0 +Ueq9YQvAJzarUonrBdfxAvuXcDzfxwFaW7orgpP6LqH8HfP23RWL+mdHxRJ94446tOb gDjLtFkdo8bOIE7/TLYS13ooVemb+7QhHwQ8xt/QmOGJUQg5s08PHzJILhZ/giQklAhJ QU2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v13-20020a1709064e8d00b009885217c85bsi782695eju.275.2023.07.14.00.53.12; Fri, 14 Jul 2023 00:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235424AbjGNHsP (ORCPT + 99 others); Fri, 14 Jul 2023 03:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234985AbjGNHsN (ORCPT ); Fri, 14 Jul 2023 03:48:13 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DCEE30DC; Fri, 14 Jul 2023 00:48:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 73E4C80A8; Fri, 14 Jul 2023 07:48:12 +0000 (UTC) Date: Fri, 14 Jul 2023 10:48:11 +0300 From: Tony Lindgren To: Johan Hovold Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , Pavel Machek , Len Brown , Andy Gross , Bjorn Andersson , Konrad Dybcio , Jiri Slaby , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/3] PM / wakeirq: fix wake irq arming Message-ID: <20230714074811.GC5194@atomide.com> References: <20230713145741.30390-1-johan+linaro@kernel.org> <20230713145741.30390-2-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713145741.30390-2-johan+linaro@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Johan Hovold [230713 15:01]: > The decision whether to enable a wake irq during suspend can not be done > based on the runtime PM state directly as a driver may use wake irqs > without implementing runtime PM. Such drivers specifically leave the > state set to the default 'suspended' and the wake irq is thus never > enabled at suspend. > > Add a new wake irq flag to track whether a dedicated wake irq has been > enabled at runtime suspend and therefore must not be enabled at system > suspend. > > Note that pm_runtime_enabled() can not be used as runtime PM is always > disabled during late suspend. Works for me: Reviewed-by: Tony Lindgren Tested-by: Tony Lindgren