Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2368070rbb; Tue, 27 Feb 2024 22:16:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX8D4cR4FRMg1LTRRfpwW8ECxYo9StBOLp0z8b6xVmDh9kiADUC2CH0JVWV3zsUqlDLUQW6RO8FRf4vnESZ9vGkT7vXU5wSepeqCwEIfA== X-Google-Smtp-Source: AGHT+IEai5Ql0V8mNllPzaQwuKfplV6rSjYvav6u98xWyvNUpRh4E12RcYZ1+tsmb2AUccYU1oAU X-Received: by 2002:a05:6870:c6aa:b0:21e:e583:25e1 with SMTP id cv42-20020a056870c6aa00b0021ee58325e1mr13960493oab.32.1709100988529; Tue, 27 Feb 2024 22:16:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709100988; cv=pass; d=google.com; s=arc-20160816; b=RzfhgQ285jsQJSgW1QWuClFgKImnrYzIg00TSIj2GEr1Xc7Qm5FdGhgfjhDSM/6IS+ DHn05JYA8QryM7KPbGxf0g8VH7v5OjMrsN4HPSFgcLtExV8wgzNRpeZPeoqoCEEejxVR 9HkEMd6n5zlzgzx7A+7IIUMxcKnE90bOs8Aw9uHPK/Pr48EqWmw3DZEBq1byIoWUyEGG 6CtxCkIsGAldehT1LtWWRm8X3p6ByQIsre9evi5ldKhaYwTqR9upafePos1oHaMIKar0 j2NzbLfhh/wRtACaHTmkiZtQm2HJ1lFCxfHYdIY5AVp1umuFdOe0+OaTThUjrd78ciSx P4Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HD0zE4WwXV05zQWxxZfx6jxbFthQaLxgUABnptEJEeA=; fh=908Cp2EmyJS8nRY0SOXUd9o5ALz1WxkeQEuDL4hdOhU=; b=xFeUBA1mAnfH1/46m5Yn7tkcFw9vYzZQBgAb+90Hgku1nZNUp0sdm2hhiZ3rDRBNlo m4384iYkfj4agpdVHBvoA8MUVOQNHrs3+7y6W4OB7H/IusITnK7U5OTBWCZnXraR/8bj /5dNRxZjyDcsms6s1wZE+Q1lpJhYIZ8FrBAJ2c4c0OyKuKGE12d4Q1jD9hwykhE802Sd cz9q8Omjbytj9Du3mkDwDe1peliU0ShxVcPbzUmYxk0CjaJfaJOTqZqbdfn2/iIK/DH3 JxJTV2EUnVubDLHe1JsDqAd2C2g0Ha4Enb3yjfnL345lZzlm8jViqLvkznZ+9GbJBw1M WoXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cEThuSc4; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-84554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jw41-20020a056a0092a900b006e531d50e6esi4582022pfb.142.2024.02.27.22.16.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 22:16:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cEThuSc4; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-84554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2236528AF84 for ; Wed, 28 Feb 2024 06:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 835F122087; Wed, 28 Feb 2024 06:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cEThuSc4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A48DD224D4; Wed, 28 Feb 2024 06:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709100461; cv=none; b=WTROVQ1hBLNaY9UrS/jUVEm6bCbXgpoHoyHLW3YEcRcXctYuZ4ugEDw/QPRg30P9mbEgocWgG1uaK7vRdKz+hFICcXloJTQvdqZK19R0PD4TrPrRtIqXAverkiY35fWG3YNy1lms73BEbEl8BhsoWmRDheGZu9tST+QyfYDy4bE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709100461; c=relaxed/simple; bh=pxc2ZZ/jk0gXN4weRBL2NBBmdZRdQq6VWS7o4nzzuj4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s3bs31Qb2wmNf/hV/EWRYbDGCcKaxuYfBcMqpurtgWii0W476UbMRYivvtK+Q+uqq5XN9mGoQ5tfu4l6TfXLNMHjhW6gg+UF88MI78h50//dl8lGMKrm4mw8xbphz5DqGKxP8zGJ4cnonBEo/u8f2i81NT8hRTJwwZh3pw/p5iA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cEThuSc4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA456C433F1; Wed, 28 Feb 2024 06:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709100461; bh=pxc2ZZ/jk0gXN4weRBL2NBBmdZRdQq6VWS7o4nzzuj4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cEThuSc4bNSWeaQNmhTxul4sBIUSAjOLhwLIVZQ8rDxznqlEh7qxDnkWdPuHKXjX3 IzSDFNUcOLoqHSTBWL+gKNhteNEdU+KP/9Kz96z730FiC25sRVPDxac7huK+zXSFAb cZfZ9xC+hPN94H+ZZGzItK60eCzrPL+m17Kv7Bgg= Date: Wed, 28 Feb 2024 07:07:38 +0100 From: Greg Kroah-Hartman To: Qingliang Li Cc: "Rafael J . Wysocki" , Pavel Machek , Len Brown , Matthias Brugger , AngeloGioacchino Del Regno , Johan Hovold , Tony Lindgren , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] PM: wakeirq: fix wake irq warning in system suspend stage Message-ID: <2024022829-ripple-quintet-a097@gregkh> References: <20240228020040.25815-1-qingliang.li@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240228020040.25815-1-qingliang.li@mediatek.com> On Wed, Feb 28, 2024 at 10:00:40AM +0800, Qingliang Li wrote: > When driver registers the wake irq with reverse enable ordering, > the wake irq will be re-enabled when entering system suspend, triggering > an 'Unbalanced enable for IRQ xxx' warning. The wake irq will be > enabled in both dev_pm_enable_wake_irq_complete() and dev_pm_arm_wake_irq() > > To fix this issue, complete the setting of WAKE_IRQ_DEDICATED_ENABLED flag > in dev_pm_enable_wake_irq_complete() to avoid redundant irq enablement. > > Fixes: 8527beb12087 ("PM: sleep: wakeirq: fix wake irq arming") > Signed-off-by: Qingliang Li > --- > drivers/base/power/wakeirq.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c > index 42171f766dcb..5a5a9e978e85 100644 > --- a/drivers/base/power/wakeirq.c > +++ b/drivers/base/power/wakeirq.c > @@ -313,8 +313,10 @@ void dev_pm_enable_wake_irq_complete(struct device *dev) > return; > > if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED && > - wirq->status & WAKE_IRQ_DEDICATED_REVERSE) > + wirq->status & WAKE_IRQ_DEDICATED_REVERSE) { > enable_irq(wirq->irq); > + wirq->status |= WAKE_IRQ_DEDICATED_ENABLED; > + } > } > > /** > -- > 2.25.1 > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot