Re: [PATCH] driver-core: platform: automatically mark wakeup devices

From: Greg Kroah-Hartman
Date: Mon Jan 18 2016 - 00:11:33 EST


On Sun, Jan 17, 2016 at 06:11:38PM -0800, Dmitry Torokhov wrote:
> When probing platform drivers let's check if corresponding devices have
> "wakeup-source" property defined (either in device tree, ACPI, or static
> platform properties) and automatically enable such devices as wakeup
> sources for the system. This will help us standardize on the name for this
> property and reduce amount of boilerplate code in the drivers.

How much boilerplate code can be removed? Do you have an example patch
of this removal for any drivers if we move this logic into the driver core?

thanks,

greg k-h