From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753207Ab2ATNAr (ORCPT ); Fri, 20 Jan 2012 08:00:47 -0500 Received: from hqemgate03.nvidia.com ([216.228.121.140]:10239 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808Ab2ATNAo (ORCPT ); Fri, 20 Jan 2012 08:00:44 -0500 X-PGP-Universal: processed; by hqnvupgp06.nvidia.com on Fri, 20 Jan 2012 05:00:41 -0800 Message-ID: <4F196568.1080503@nvidia.com> Date: Fri, 20 Jan 2012 18:30:24 +0530 From: Laxman Dewangan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Mark Brown CC: "sameo@linux.intel.com" , "jedu@slimlogic.co.uk" , "lrg@slimlogic.co.uk" , "gg@slimlogic.co.uk" , "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" Subject: Re: [PATCH V1] mfd: tps65910: Add wakeup support References: <1327057770-6688-1-git-send-email-ldewangan@nvidia.com> <20120120125152.GE18297@opensource.wolfsonmicro.com> In-Reply-To: <20120120125152.GE18297@opensource.wolfsonmicro.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 20 January 2012 06:21 PM, Mark Brown wrote: > >> The wakeup should enabled if PMIC need to be configure for >> waking up system through RTC or ONKEY. > Why the platform data? The power management infrastructure provides > control of this already. I did not get how the wakeup enabled in power management infrastructure? My understanding is that we need to call the two apis device_wakeup_init() and enable_irq_wake() for enabling the wakeup functionality. Is there any other API which does the same and I need to call from the core driver?