Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp657000imu; Fri, 11 Jan 2019 06:56:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN6JCXC5xDYwqAECo1qD3SJDfT3e2OEAkVKXpvLm39sKCfeOD67esB8bD2pIAYkET7tKFSGX X-Received: by 2002:a63:4456:: with SMTP id t22mr13991061pgk.0.1547218590704; Fri, 11 Jan 2019 06:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547218590; cv=none; d=google.com; s=arc-20160816; b=BFFjxd7dTPQ/sWZ4n4R8cAUnhqGXmeAoiXwSriJ859fC4mPmaj6qrvLTx8pKXkBjrI fpVglOzNmn1lBkokQiH6BlYa2yQgtwEisbnEh+ReVMFWO+IkTP68Yt3Z6jr1d0o5es46 zzYHwC8N472xWtSrNzStIie9JKbNEKJYDtNH7KoaR7xhPM5w904J/Z2679HhjSB7t9rC 9aZu1icIXrkqzvTmFNqXlWrmrFDLb2W1CsKG0a9JAOwy6msL+Y30+6KNYvoqE4NL4l+R VzBDOLxMCz25fGHh/3bWCuW2OoZQBZ51IGwKngOvpzMXdaEr83U+FG2WUItDKXufbR6V +QRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iiz7Wr5zV9F15CaqgmTVT3cwFrrlab1AeDN8mYEG4jo=; b=Fta8tKw1mZB0VVB/096Z7oGcGaNkQp7s9e6pLB2Vwn8ZCz8D8wmP9K8vYTyADVrLVO KMvYKGFtzK/Hhz+8QJo3NIdpZCT3bAYCPyhpxlcIwUWkOs7pDzFOF8lyqxGFy8FrYNb2 hk41KZzHtfYttGj7b7V/ji92eBR+0jKM76UdxDm7iefKYTrSFZZADY7gmPZ8sclRKvzR T0gaPzdOxgcXYvxjRQDN7bUWU9rpXjREMnYO3QVsycUelizFXeQkf+5yhfhEwVs5LR3u aTDaqi3xcGLMf1ah3VANmnGiaH1wLpAefokm1EjDUAlagwBvbmM3M3V45AVQ5L91v3wE WSag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WVPuTtR/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y73si36381250pgd.478.2019.01.11.06.56.15; Fri, 11 Jan 2019 06:56:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WVPuTtR/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391699AbfAKOyg (ORCPT + 99 others); Fri, 11 Jan 2019 09:54:36 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46625 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390609AbfAKOhV (ORCPT ); Fri, 11 Jan 2019 09:37:21 -0500 Received: by mail-lj1-f193.google.com with SMTP id v15-v6so13110076ljh.13 for ; Fri, 11 Jan 2019 06:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iiz7Wr5zV9F15CaqgmTVT3cwFrrlab1AeDN8mYEG4jo=; b=WVPuTtR/ndViS6PFHzXI9F1Drm5p2L4SAy8RtXsWyB+IcFpKeV/f1qWP9JMP82GGw5 RPW+cQWj5JQxdsJ+3HbaYZUgmZl7C7N4Qt4NLFQX+oriYnlFY5bvDNiu9AQ3wCMeBlGW h9n68eEY8zgkvZdiWaHvAaKNV2MWJcZxjXxTQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iiz7Wr5zV9F15CaqgmTVT3cwFrrlab1AeDN8mYEG4jo=; b=c0+tqL6SzdkZyScdSrYMHy7Gv5oHagGsF2Kj/ksqmXz11fwn4u0rHoJL//XDry6lZ7 slFsNEJYKiv5Df1noBZDC5xfr/TxfYtvmWEA3lP+aFZeqpUTrsFL7w4k8rBBxKJxFnzm KQKPRpwYx2y5Dmk0Uopa8arEZS4iBEtCSZA6N2+qDImjk3RFm0+x+DsPRSIZGOfUCIIe sFx2Z7Y+mMUEo4FJNiyK1iha+sjzxcmGi6BYRCmtSlwa/GYGdcTIUwFnQRDI3lkTRdzv +7tj03QvKwt+dFNfOqiF0sNfk1rz07uRJIuB+XjEDmRzAkXIdsZQbFpsdAnknat2sLcS RLcg== X-Gm-Message-State: AJcUukfK+f7nCmDmxo7hQ+56yWFVZyvodykW/lq0J2o5/feuI64VYSOv oygHg60LOipVAUvMmlxGMFZabzDiGu4Z51JIVK+NUg== X-Received: by 2002:a2e:7e04:: with SMTP id z4-v6mr8758978ljc.97.1547217438950; Fri, 11 Jan 2019 06:37:18 -0800 (PST) MIME-Version: 1.0 References: <72d3cd83bed792a23ab60cf9b6d51b618f5aa084.1502103715.git.michal.simek@xilinx.com> <6da5fd79-fbc8-b613-954f-dcbe2ef8d6c5@xilinx.com> <20190107164210.3ecf37e8@windsurf> <20190111135413.73dad0b2@windsurf> In-Reply-To: <20190111135413.73dad0b2@windsurf> From: Linus Walleij Date: Fri, 11 Jan 2019 15:37:07 +0100 Message-ID: Subject: Re: [PATCH 2/8] gpio: zynq: Wakeup gpio controller when it is used as IRQ controller To: Thomas Petazzoni Cc: Michal Simek , Nava kishore Manne , Josh Cartwright , "monstr@monstr.eu" , Peter Crosthwaite , Borsodi Petr , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Rob Herring , "linux-arm-kernel@lists.infradead.org" , Steffen Trumtrar , =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , Shubhrajyoti Datta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 1:54 PM Thomas Petazzoni wrote: > On Fri, 11 Jan 2019 10:54:20 +0100, Linus Walleij wrote: > > > My stance is that the driver is responsible of enabling and managing > > runtime PM for its hardware block(s). > > > > Runtime PM in the core should only be added if the core needs to > > be aware about it, such as is the case when e.g. a block device > > needs to drain its write buffer before going to runtime sleep. > > > > I fail so see why the GPIO core need to be aware about this. > > In this very same thread at > https://www.spinics.net/lists/arm-kernel/msg600515.html, you kind of > proposed to handle this in the core in fact :-) Though indeed you said > that the core could provide helpers. Yeah allright, I have never been good with consistency but what I guess I would mean to say (today) is that the driver needs to be in the driver seat (heh) and opting in to any runtime PM support. This is in contrast with "midlayer" where all drivers are forced to behave "as if" they had runtime PM (i.e. calls are done to the runtime PM helpers even if the device doesn't really activate runtime PM). Yours, Linus Walleij