From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423052AbeCBIov (ORCPT ); Fri, 2 Mar 2018 03:44:51 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:34332 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423038AbeCBIor (ORCPT ); Fri, 2 Mar 2018 03:44:47 -0500 X-Google-Smtp-Source: AG47ELuXFyx/r+YFd3H5hKCY3y2RyFMsQsaJG04J0qylF8VipWo/sQNHQEvirvzryI3P4c8wluonrVSMhhulxJX05+4= MIME-Version: 1.0 In-Reply-To: References: <1518443713-1835-1-git-send-email-geert+renesas@glider.be> <1518443713-1835-4-git-send-email-geert+renesas@glider.be> From: Linus Walleij Date: Fri, 2 Mar 2018 09:44:46 +0100 Message-ID: Subject: Re: [PATCH v3 3/3] gpio: rcar: Use wakeup_path i.s.o. explicit clock handling To: Geert Uytterhoeven Cc: Geert Uytterhoeven , Thomas Gleixner , Jason Cooper , Marc Zyngier , Ulf Hansson , "open list:GPIO SUBSYSTEM" , Linux PM list , "linux-kernel@vger.kernel.org" , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 9:20 AM, Geert Uytterhoeven wrote: > > On Thu, Mar 1, 2018 at 5:06 PM, Linus Walleij wrote: >> On Mon, Feb 12, 2018 at 2:55 PM, Geert Uytterhoeven >> wrote: >> >>> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable >>> when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO >>> block's module clock (if exists) is manually kept running during system >>> suspend, to make sure the device stays active. >>> >>> However, this explicit clock handling is merely a workaround for a >>> failure to properly communicate wakeup information to the device core. >>> >>> Instead, set the device's power.wakeup_path field, to indicate this >>> device is part of the wakeup path. Depending on the PM Domain's >>> active_wakeup configuration, the genpd core code will keep the device >>> enabled (and the clock running) during system suspend when needed. >>> This allows for the removal of all explicit clock handling code from the >>> driver. >>> >>> Signed-off-by: Geert Uytterhoeven >>> --- >>> v3: >> >> Patch applied for v4.16 fixes. > > Are you aware this conflicts with commit 51750fb167a05468 ("gpio: gpio-rcar: > Support S2RAM") in gpio/for-next? No but I guess I will become aware. I have not yet mixed the fixes and devel branches for next. > You can find the resolution in > https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/tree/drivers/gpio/gpio-rcar.c?h=renesas-drivers-2018-02-28-v4.16-rc3 Thanks! Yours, Linus Walleij