From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH V1] mfd: tps65910: Add wakeup support Date: Fri, 20 Jan 2012 13:02:01 +0000 Message-ID: <20120120130201.GF18297@opensource.wolfsonmicro.com> References: <1327057770-6688-1-git-send-email-ldewangan@nvidia.com> <20120120125152.GE18297@opensource.wolfsonmicro.com> <4F196568.1080503@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4F196568.1080503-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Laxman Dewangan Cc: "sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org" , "jedu-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org" , "lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org" , "gg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-tegra@vger.kernel.org On Fri, Jan 20, 2012 at 06:30:24PM +0530, Laxman Dewangan wrote: > 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? No, that's it - when you call those userspace will get control via sysfs for turning on and off the wakeup support.