From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751526AbbLRKog (ORCPT ); Fri, 18 Dec 2015 05:44:36 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:16215 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbbLRKoe (ORCPT ); Fri, 18 Dec 2015 05:44:34 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Fri, 18 Dec 2015 02:29:51 -0800 Subject: Re: [RFC PATCH V2 8/8] irqchip/gic: Add support for tegra AGIC interrupt controller To: Linus Walleij , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" References: <1450349309-8107-1-git-send-email-jonathanh@nvidia.com> <1450349309-8107-9-git-send-email-jonathanh@nvidia.com> CC: Thomas Gleixner , Jason Cooper , Marc Zyngier , Jiang Liu , Stephen Warren , Thierry Reding , Kevin Hilman , "Geert Uytterhoeven" , Grygorii Strashko , Lars-Peter Clausen , "Soren Brinkmann" , "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" , Ulf Hansson From: Jon Hunter Message-ID: <5673E38B.7060702@nvidia.com> Date: Fri, 18 Dec 2015 10:44:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.21.132.159] X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/12/15 13:32, Linus Walleij wrote: > On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > >> Add a driver for the Tegra-AGIC interrupt controller which is compatible >> with the ARM GIC-400 interrupt controller. > (...) >> +static const struct dev_pm_ops gic_pm_ops = { >> + SET_RUNTIME_PM_OPS(gic_runtime_suspend, >> + gic_runtime_resume, NULL) >> + SET_SYSTEM_SLEEP_PM_OPS(gic_suspend, gic_resume) >> +}; > > Now you do what I commented on in the earlier patch: assign > the runtime PM functions to normal suspend/resume. > > This will have the effect of inhibiting any IRQs marked for > wakeup on the GIC, even if you just want to go to sleep until > something happens, will it not? > > You should turn on the alarm clock before going to bed, not > turn it off, as figure of speak ... Yes I am alway having problems with my alarm, may be this is why ;-) I see what you are saying, so if there are any wake-ups enabled then we should not suspend the chip. Right? Cheers Jon