Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp620725imu; Fri, 11 Jan 2019 06:19:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN7syQ0Qd5LAcjfrZ3hPBXYc5JUKsMwHwNoyplJ1Q1Ty53QK+nF/4BVtX02KVYHNHgTitn5H X-Received: by 2002:a62:ca9c:: with SMTP id y28mr14641714pfk.236.1547216397237; Fri, 11 Jan 2019 06:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547216397; cv=none; d=google.com; s=arc-20160816; b=zl5hApM+VBvK18LkQtG2GTxaARLneDHo1oorSOmZF8nlIn5+BkCbzhyANu2YRcgKSC mns+O+pugKwSFeAgqg8UOIgE28jei5amo/qutvUYY6tJQHUaWuc/nkSpeAYZfs1m+FKQ 6k5etHeBplVgGYfZ2ubs6eIlELleJk8Jo95p5B3q/WAmILp7P+t6znkdAFakQeJPAaM7 VBigFd7HfWSrJnY3A1BUkf61O34cttj8vyhN80xBd+4p6FZIAOLtyXoYRpuV2zFSzDo7 XwNy8eZ6hqosHA9Zb49dGd0H3rucw4w7/9q4hdFAkUe52q+NtT8x/J6fyQ3pxpPHDAeY +vHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=PcQb2n3AfmpN7X6Q039o+gBUy05s+xc+0MF1VuA79RM=; b=hVhoyV2RTQ0Fja9xtMlYc5uUm2CohZdAmjCuaGQ/KkUEfMoXKru12YeDI371q0pFJj vMy4odzdY09OAJEsXShluj35ksU86mDi6FB6o3VQpAgD6gZMeW4GEQ38XWH1atXIzHX7 qsgbSZL2HGWrwZ+WjTOw4AOWKwW3zjSGY98pSIMHorq3WPRq/0rTluq2cZp5fEry/eiM 0SxkxgabWFU/q8hUiD0pN2/DoP/x66mbo0Ce38mVxY7eIojb4bssWh7Q7a/LIK64jzPy 8LzL2A7mfvfipjBJtWDcvRrnmhlKmujpydaXMjOQo6+6UgRUlq2KEgmjZzPOYVq8c1iA 9MQw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a32si77061930pla.168.2019.01.11.06.19.41; Fri, 11 Jan 2019 06:19:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732504AbfAKMyP (ORCPT + 99 others); Fri, 11 Jan 2019 07:54:15 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49907 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731592AbfAKMyP (ORCPT ); Fri, 11 Jan 2019 07:54:15 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 70367209BD; Fri, 11 Jan 2019 13:54:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from windsurf (aaubervilliers-681-1-45-241.w90-88.abo.wanadoo.fr [90.88.163.241]) by mail.bootlin.com (Postfix) with ESMTPSA id 1B084206A7; Fri, 11 Jan 2019 13:54:13 +0100 (CET) Date: Fri, 11 Jan 2019 13:54:13 +0100 From: Thomas Petazzoni To: Linus Walleij 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?B?U8O2cmVu?= Brinkmann , Shubhrajyoti Datta Subject: Re: [PATCH 2/8] gpio: zynq: Wakeup gpio controller when it is used as IRQ controller Message-ID: <20190111135413.73dad0b2@windsurf> In-Reply-To: References: <72d3cd83bed792a23ab60cf9b6d51b618f5aa084.1502103715.git.michal.simek@xilinx.com> <6da5fd79-fbc8-b613-954f-dcbe2ef8d6c5@xilinx.com> <20190107164210.3ecf37e8@windsurf> Organization: Bootlin X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Linus, 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. Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com