From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with ESMTP id 75DF56B004F for ; Wed, 16 Sep 2009 00:14:17 -0400 (EDT) Date: Tue, 15 Sep 2009 21:14:08 -0700 From: Andrew Morton Subject: Re: 2.6.32 -mm merge plans Message-Id: <20090915211408.bb614be5.akpm@linux-foundation.org> In-Reply-To: <20090916034650.GD2756@core.coreip.homeip.net> References: <20090915161535.db0a6904.akpm@linux-foundation.org> <20090916034650.GD2756@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bjorn Helgaas , David =?ISO-8859-1?Q?H=E4rdeman?= List-ID: On Tue, 15 Sep 2009 20:46:50 -0700 Dmitry Torokhov wrote: > Hi Andrew, > > On Tue, Sep 15, 2009 at 04:15:35PM -0700, Andrew Morton wrote: > > > > input-touchpad-not-detected-on-asus-g1s.patch > > This one has been in mainline for a while now, please drop. Thanks. > > input-add-a-shutdown-method-to-pnp-drivers.patch > > This should go through PNP tree (do we have one?). Not really. Bjorn heeps an eye on pnp. Sometimes merges through acpi, sometimes through -mm. I'll merge it I guess, but where is the corresponding change to the winbond driver? From: David H_rdeman The shutdown method is used by the winbond cir driver to setup the hardware for wake-from-S5. Signed-off-by: Bjorn Helgaas Signed-off-by: David H_rdeman Cc: Dmitry Torokhov Signed-off-by: Andrew Morton --- drivers/pnp/driver.c | 10 ++++++++++ include/linux/pnp.h | 1 + 2 files changed, 11 insertions(+) diff -puN drivers/pnp/driver.c~input-add-a-shutdown-method-to-pnp-drivers drivers/pnp/driver.c --- a/drivers/pnp/driver.c~input-add-a-shutdown-method-to-pnp-drivers +++ a/drivers/pnp/driver.c @@ -135,6 +135,15 @@ static int pnp_device_remove(struct devi return 0; } +static void pnp_device_shutdown(struct device *dev) +{ + struct pnp_dev *pnp_dev = to_pnp_dev(dev); + struct pnp_driver *drv = pnp_dev->driver; + + if (drv && drv->shutdown) + drv->shutdown(pnp_dev); +} + static int pnp_bus_match(struct device *dev, struct device_driver *drv) { struct pnp_dev *pnp_dev = to_pnp_dev(dev); @@ -203,6 +212,7 @@ struct bus_type pnp_bus_type = { .match = pnp_bus_match, .probe = pnp_device_probe, .remove = pnp_device_remove, + .shutdown = pnp_device_shutdown, .suspend = pnp_bus_suspend, .resume = pnp_bus_resume, .dev_attrs = pnp_interface_attrs, diff -puN include/linux/pnp.h~input-add-a-shutdown-method-to-pnp-drivers include/linux/pnp.h --- a/include/linux/pnp.h~input-add-a-shutdown-method-to-pnp-drivers +++ a/include/linux/pnp.h @@ -360,6 +360,7 @@ struct pnp_driver { unsigned int flags; int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id); void (*remove) (struct pnp_dev *dev); + void (*shutdown) (struct pnp_dev *dev); int (*suspend) (struct pnp_dev *dev, pm_message_t state); int (*resume) (struct pnp_dev *dev); struct device_driver driver; _ -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org