Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1551298rwb; Mon, 7 Nov 2022 03:02:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM7ahz09imU0wh/gax3UIBPLuGGvi5aeWeu0jjsCzprp1EcjtQvu+y2uK1DYajdu0kJdtMuO X-Received: by 2002:a50:eb05:0:b0:457:c6f5:5f65 with SMTP id y5-20020a50eb05000000b00457c6f55f65mr48946580edp.311.1667818971312; Mon, 07 Nov 2022 03:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667818971; cv=none; d=google.com; s=arc-20160816; b=sQcxBhEpaYFsdu7SULsJU87TRxAzdOQ8GiAmm0G9CQMdCrAGF5+v3tjuKMuGFk4tJb Zj4p1G8drRd5YSolgkoqHksetfJsqZn1GYvzcqLyQDzaSB+yxB6WN/5t6QKsilwOhsUy WGJTeSutWxtArY9X2TVjBbFXw0OL01ROfY57RfdJdUkC1i6wDwwh7HMPleIJWU4/Goqi d3zerZV365iyDj8TYN4STEemR4B5BEeXTgoDV9co2B2pEfgg9C0w5b74yHL1kzjP8fRq 82XQMEO4gl3kQmQ/sbOHWsak+jA0bwuxsBZaKtrdf5Rmq3CV5xY12SomnYt4XzgB7ips kvig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+8+uu9kKMEq8Y9OytB8gsVKut4lj3U0/a/S35uT3UQU=; b=dRh1k8oIF97EvOS4IsVJ2FZ1qC+DxRc+cqi+z53Be/VjTGSOKQsIuJwMJqhNox93ca 2QAPVlGBaDcUWkWhrt6gtrCoaEXmr831Oa9uR2uoxTz0hBXFdM/87LPnckk+7cPoIydw qcngVaUHoEwAF/7Ck3paeE9KT7DIuKtbvf5Ii1WwqkNIZAaXusNYZjM96YKT87iPCnvm zrmxrnsbP3jdLasLnOvWM0y2NZlBnZYmsQtzme9gyYO7iOTzhS1Kbvy7i+70Zyrp7gxJ GrgrqvVLgImhEkmj08qZbeDtsHjxgPKCkxr4K+pQ+Z7fZ8mHKKJmxLL5s4xo80/1Q/Ew Pb2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=MDTYVKCN; 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 bb6-20020a1709070a0600b00781bbff1cc1si8609623ejc.455.2022.11.07.03.02.28; Mon, 07 Nov 2022 03:02:51 -0800 (PST) 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; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=MDTYVKCN; 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 S231376AbiKGKaj (ORCPT + 93 others); Mon, 7 Nov 2022 05:30:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbiKGKac (ORCPT ); Mon, 7 Nov 2022 05:30:32 -0500 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF7B186C2 for ; Mon, 7 Nov 2022 02:30:31 -0800 (PST) Received: by mail-vk1-xa2f.google.com with SMTP id g4so6307764vkk.6 for ; Mon, 07 Nov 2022 02:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+8+uu9kKMEq8Y9OytB8gsVKut4lj3U0/a/S35uT3UQU=; b=MDTYVKCNb0/qgY91nHj/Ep35Uoawu+BRg898hqS8zg/Je5DSaYTXknBqq7645UiEGb mKIf5IfDCiYNikSC5gV+YsfKpkEZBFDrtQW+E7SGZl53VB1+CSORJ1wKHVVWBIbWfGa5 nepqOj5o1L74FadAoIMIuvYubN3MPSHk3Jf3HhhZgTjPMVdKvTe9dY1+/2BEsJRRY9/3 qdvNqs+AN6uFaVshhSTH9LgLvI0Z13z/iiSBHmbbIMo2sRKh8O3SYIRl6BFN8D299Yms 9F2l99bQgu4KlGxqwV0y8DKInddibkNB2OmXb7QBjn+76h7KtF/Rhn33LSn6Kq2kmUJy Vzew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+8+uu9kKMEq8Y9OytB8gsVKut4lj3U0/a/S35uT3UQU=; b=xEl0Mr3Qe/am+c7OIH/J9xQd5hsC5B8s9xY/UIxmEf41wAfl+m9zxQeulNllBIPB/P jD+cSQZehkjXkH5tk2sYiQPiXUIH1qCafDpxqvEvXEP91/1ux+0qBgLa2fDhD4wBApPc 4PdDMJCehtnVOBIdFNSSwLpsKgFtVbHI51SiM337k02zS+ej7sUs2Mc1Dnyd/zJu1999 XoqYWZRER96cH0pgDEsscJiWrM2MyvMwGGteasz49zQ6qiDn7bUrveiUzWikb8/aWaf0 5buNWGPFoWHhA3GBqrHRJit54F6fNyi0fl4npT/yPGPP2CcNSTuMYtT9lnMjkHHixIIr CkoQ== X-Gm-Message-State: ACrzQf2wZegAzICzrqdDJS3MwTH2AcD64RFs2Z+s/tSS0XAfYZ223xOT 9Mod3j4N9D95HzVEkMv4dWDDkfMNdbUEEpw3eUEz1g== X-Received: by 2002:a1f:e5c2:0:b0:3b7:3aca:9868 with SMTP id c185-20020a1fe5c2000000b003b73aca9868mr7842964vkh.33.1667817030498; Mon, 07 Nov 2022 02:30:30 -0800 (PST) MIME-Version: 1.0 References: <20221027130859.1444412-1-shenwei.wang@nxp.com> <20221027130859.1444412-6-shenwei.wang@nxp.com> In-Reply-To: <20221027130859.1444412-6-shenwei.wang@nxp.com> From: Bartosz Golaszewski Date: Mon, 7 Nov 2022 11:30:19 +0100 Message-ID: Subject: Re: [PATCH v4 5/5] gpio: mxc: enable pad wakeup on i.MX8x platforms To: Shenwei Wang Cc: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Linus Walleij , Dong Aisheng , Jacky Bai , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Thu, Oct 27, 2022 at 3:10 PM Shenwei Wang wrote: > > On i.MX8QM/QXP/DXL SoCs, even a GPIO is selected as the wakeup source, > the GPIO block will be powered off when system enters into suspend > state. This can greatly reduce the power consumption of suspend state > because the whole partition can be shutdown. This is called PAD wakeup > feature on i.MX8x platform. > > This patch adds the noirq suspend/resume hooks and uses the pad wakeup > feature as the default wakeup method for GPIO modules on > i.MX8QM/QXP/DXL platforms. > > Signed-off-by: Shenwei Wang > Reviewed-by: Peng Fan > --- Acked-by: Bartosz Golaszewski