From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754687AbbGTGFS (ORCPT ); Mon, 20 Jul 2015 02:05:18 -0400 Received: from muru.com ([72.249.23.125]:36430 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754109AbbGTGFM (ORCPT ); Mon, 20 Jul 2015 02:05:12 -0400 Date: Sun, 19 Jul 2015 23:05:07 -0700 From: Tony Lindgren To: Vignesh R Cc: Dmitry Torokhov , Benoit Cousson , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , "Quadros, Roger" , Henrik Rydberg , Frodo Lai , Jingoo Han , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-input@vger.kernel.org" Subject: Re: [PATCH 1/2] input: touchscreen: pixcir_i2c_ts: Add support for optional wakeup interrupt Message-ID: <20150720060506.GV17550@atomide.com> References: <1437115241-17859-1-git-send-email-vigneshr@ti.com> <1437115241-17859-2-git-send-email-vigneshr@ti.com> <20150717215122.GC39282@dtor-ws> <55AC7DA1.9050002@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55AC7DA1.9050002@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Vignesh R [150719 21:51]: > On 7/18/2015 3:21 AM, Dmitry Torokhov wrote: > > > > I wonder if driver core should be responsible for clearing wake irq and > > also for clearing wakeup flag. > > > > AFAICU, wakeup flag is deleted when struct device is deleted, hence, > device_init_wakeup() call may not be required in .remove(). But, > dev_pm_clear_wake_irq() can be moved to driver core. Currently the lifecycle of struct wakeup_source is not necessarily the same as the lifecycle struct device. I believe net and usb drivers at least allocate it dynamically. Regards, Tony