Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp505439ybt; Wed, 17 Jun 2020 06:53:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9SPZJ31Lc94V8g300YHNeEEzJl/HKtqDRo5ALon9zsdteoxDs7R3FK/1MulMDjMlUuF6v X-Received: by 2002:a50:f052:: with SMTP id u18mr7204761edl.16.1592401984715; Wed, 17 Jun 2020 06:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592401984; cv=none; d=google.com; s=arc-20160816; b=rDWnVU6EgNxUEyu3wqQFHY4PgSCXM6J9ILfFjdK56PAM3AvR/6cH5m2USSTzS2PD+j c1dwz4j/jOSpI+dVm5Hl6LzBbE0hb6c5XwaWsFbnV0jGEu1XYZ8OKtqZKGCCiCyixpbR E0JMu+G6dViHDD/mziV/IdOMZT8rDsHpAdvoeYq+i4RajDI/h+wKk98ovlN+/j5uc1R2 HSw5P+IUJBz9OCSRGQxHO0iEnzeQkk8qq/gC7HAuOiHI5jjce03jKw87hkKdNcxZbifk fCGdUlSrKrELRAAGuIsczOFs6c6a2ULkfdN/qDo90nnMCkeQpezgujbmZ5LKQGhUFIWr dxlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T2o3+d2y6EMi5CJ7GtBXrUfPiVFFixaHOpdkXsQCh2E=; b=0jWeVx32DPywerBPwn4CxUR4CvOH8DQHt029SEIJ2Zo5ZP/OwCo5Wt37ivK+ZgD7U9 pSlvzzXb7ma2oJOindnD8HTKr3TeF1Sdki0XubTrkFL59mh/WcNjZsnsqE9xcLjPsiZI 94X3v1DwDIp6p14GNvjoKGGzBab0AzLrZ+1TCy01T0u1zZk/YD/brXrZnCphH79vXF1X I/Hy6jyPc+J7PqDnUiNEjqIAFPkwJkKyQws9yAycWZgoNMcge++8/2gDlx36pVQaTYuE 9/3LcsyBzAPTpGOz2hc7b6FvX7rKHlTAFLmVc6xwP04WtyV4ZdwTc3zLFnZQ7LnVzhVO /peQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0SPjckGI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv13si13213804ejb.301.2020.06.17.06.52.42; Wed, 17 Jun 2020 06:53:04 -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=@kernel.org header.s=default header.b=0SPjckGI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgFQNs3 (ORCPT + 99 others); Wed, 17 Jun 2020 09:48:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:43738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgFQNs2 (ORCPT ); Wed, 17 Jun 2020 09:48:28 -0400 Received: from dragon (unknown [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5291F208B8; Wed, 17 Jun 2020 13:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592401707; bh=/WSk7qORPqa6zZW4wBawrFT3hKVpsXgyi8TneEQdbQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0SPjckGIAsGEMO6pdj5MsgCDdy8IvavB2ARGaQCmr0b1/8YvUQdO1cEz4JmuOyuSd hUHHjkbDAu64x100rhNsWimz4uNWwEwzeQor+V6IFXlrtY1Nklp6na7SwhWmTRI5fL uW7B7HuxKj8ldkEKYJJzBNfAyfQ13ZeRBaKEf744= Date: Wed, 17 Jun 2020 21:48:14 +0800 From: Shawn Guo To: Anson Huang Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, ben.dooks@codethink.co.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH 1/2] firmware: imx: make sure MU irq can wake up system from suspend mode Message-ID: <20200617134813.GA30139@dragon> References: <1587683231-18468-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587683231-18468-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 07:07:10AM +0800, Anson Huang wrote: > IRQF_NO_SUSPEND flag is set for MU IRQ of IPC work, but with this > flag set, IRQD_WAKEUP_ARMED flag will NOT be set during > suspend_device_irq() phase, then when MU IRQ arrives, it will NOT > wake up system from suspend. > > To fix this issue, pm_system_wakeup() is called in general MU IRQ > handler to make sure system can be waked up when MU IRQ arrives. > > Signed-off-by: Anson Huang I see you guys haven't got agreement on patch #2, so applied #1 only. Shawn