Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1085614pxf; Thu, 8 Apr 2021 22:43:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd/6CkdXfhMFg0tCgT4a0dPiK95cCb/TeJRiV7cJfScHYPzLQhpz7XKtORxuJtIj0bMp6k X-Received: by 2002:a05:6402:22a6:: with SMTP id cx6mr15799466edb.55.1617947011250; Thu, 08 Apr 2021 22:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617947011; cv=none; d=google.com; s=arc-20160816; b=KFsnSFflQxI0jTh6iFEwLA5eGBMxDDGYVcyvjlDd2YKcwETIx4A0Kcr9EH4grBJVXN ZLkA1+AbJJBl78fjcc5ELKKLL3EJl3HREwxozg5YR8BnjkzZnPhwf2HzzxZNeAdEfsSq FM686+AE+bFEnAmci1bW8wWG8MdX8JIRerijPqa8nGU+rI1u/COsfYdcB4X8lp7VV8OI ZxVoPN2XEvxuNf1uz0K6DeVZxVPMRvH1+BoenU4cBj577WUjAJPQdtdx9sVyc6EQP4RS FPY1669Bd2mtqjlROfawosvZfVymv9kgfC9Txqf2mZEsvuPUdmQ2YUMfOCMESvDLtMD+ xdKA== 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=c5uZbtfDnSuBhDzuqRePE76/pPQWjuoU086dUPaWyZU=; b=qsOEoTt041PbnXnqQrO5NEtW9ZmQA0sr7FvFCXhafsKvAkmDJbNG6Li11ckKmZaOFd vfcIMfoATARnNcePL74hDNLpzExBHCiwFYQrP2YN4CTBSEh4UqmHSaUcOjYwwxpmi2cG i8j634pw5l99yvjbEYu8YbY7SAE1bhpau6xNVDcLP5LU6I+7NIrwVrPcWy4hms4cj/NZ LZqzBMZINseQDsRZoTRu73lSdqpZlvUg0k3Bn7pVxfl2XTOloBFmHfXQPZInBTOhwIt3 tSeO+oAWpJXscvwOiSqYreyUxRqhBeo+ae/u+euyaYJnLO/GI8LZywDU3qeduyUeYNU1 qgiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si1203524ejv.104.2021.04.08.22.43.08; Thu, 08 Apr 2021 22:43:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233294AbhDIFm1 (ORCPT + 99 others); Fri, 9 Apr 2021 01:42:27 -0400 Received: from muru.com ([72.249.23.125]:52520 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbhDIFky (ORCPT ); Fri, 9 Apr 2021 01:40:54 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1890D818C; Fri, 9 Apr 2021 05:41:50 +0000 (UTC) Date: Fri, 9 Apr 2021 08:40:36 +0300 From: Tony Lindgren To: Ikjoon Jang Cc: Chunfeng Yun , Rob Herring , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-usb@vger.kernel.org, "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , linux-pm@vger.kernel.org, Tianping Fang , Eddie Hung , Nicolas Boichat Subject: Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called Message-ID: References: <1617874514-12282-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ikjoon Jang [210409 05:33]: > Hi Chunfeng, > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun wrote: > > > > When the dedicated wake irq is level trigger, enable it before > > calling runtime_suspend, will trigger an interrupt. > > > > e.g. > > for a low level trigger type, it's low level at running time (0), > > and becomes high level when enters suspend (runtime_suspend (1) is > > called), a wakeup signal at (2) make it become low level, wake irq > > will be triggered. > > > > ------------------ > > | ^ ^| > > ---------------- | | -------------- > > |<---(0)--->|<--(1)--| (3) (2) (4) > > > > Can't we just use a falling edge type for this irq line? Sounds reasonable to me :) Tony