acpi: nfit: Add support for hot-add
authorVishal Verma <vishal.l.verma@intel.com>
Tue, 27 Oct 2015 22:58:27 +0000 (16:58 -0600)
committerDan Williams <dan.j.williams@intel.com>
Mon, 2 Nov 2015 20:28:07 +0000 (15:28 -0500)
commit209851649dc4f7900a6bfe1de5e2640ab2c7d931
tree07df07243790d2dbff03811d19c8eba3c28ed028
parent564d501187317f8df79ddda173cf23735cbddd16
acpi: nfit: Add support for hot-add

Add a .notify callback to the acpi_nfit_driver that gets called on a
hotplug event. From this, evaluate the _FIT ACPI method which returns
the updated NFIT with handles for the hot-plugged NVDIMM.

Iterate over the new NFIT, and add any new tables found, and
register/enable the corresponding regions.

In the nfit test framework, after normal initialization, update the NFIT
with a new hot-plugged NVDIMM, and directly call into the driver to
update its view of the available regions.

Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Toshi Kani <toshi.kani@hpe.com>
Cc: Elliott, Robert <elliott@hpe.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: <linux-acpi@vger.kernel.org>
Cc: <linux-nvdimm@lists.01.org>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
drivers/acpi/nfit.h
tools/testing/nvdimm/test/nfit.c