lkml.org 
[lkml]   [2013]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework
On Thu, Jan 10, 2013 at 04:40:21PM -0700, Toshi Kani wrote:
> Added sys_hotplug.c, which is the system device hotplug framework code.
>
> shp_register_handler() allows modules to register their hotplug handlers
> to the framework. shp_submit_req() provides the interface to submit
> a hotplug or online/offline request of system devices. The request is
> then put into hp_workqueue. shp_start_req() calls all registered handlers
> in ascending order for each phase. If any handler failed in validate or
> execute phase, shp_start_req() initiates its rollback procedure.
>
> Signed-off-by: Toshi Kani <toshi.kani@hp.com>
> ---
> drivers/base/Makefile | 1
> drivers/base/sys_hotplug.c | 313 ++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 314 insertions(+)
> create mode 100644 drivers/base/sys_hotplug.c
>
> diff --git a/drivers/base/Makefile b/drivers/base/Makefile
> index 5aa2d70..2e9b2f1 100644
> --- a/drivers/base/Makefile
> +++ b/drivers/base/Makefile
> @@ -21,6 +21,7 @@ endif
> obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o
> obj-$(CONFIG_REGMAP) += regmap/
> obj-$(CONFIG_SOC_BUS) += soc.o
> +obj-y += sys_hotplug.o

No option to select this for systems that don't need it? If not, then
put it up higher with all of the other code for the core.

thanks,

greg k-h


\
 
 \ /
  Last update: 2013-01-30 10:21    [W:0.539 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site