acpi, nfit: Collect shutdown status
authorDan Williams <dan.j.williams@intel.com>
Wed, 26 Sep 2018 17:47:15 +0000 (10:47 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 17 Oct 2018 17:39:04 +0000 (10:39 -0700)
commit0ead11181fe0c9538b185e46a494df21dc7de23a
tree8c2caab7282e325da4e7c1b37faf27df5d540925
parent6f07f86c494074a0755930473f67cc8916654221
acpi, nfit: Collect shutdown status

Some NVDIMMs, in addition to providing an indication of whether the
previous shutdown was clean, also provide a running count of lifetime
dirty-shutdown events for the device. In anticipation of this
functionality appearing on more devices arrange for the nfit driver to
retrieve / cache this data at DIMM discovery time, and export it via
sysfs.

Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/intel.h [new file with mode: 0644]
drivers/acpi/nfit/nfit.h
tools/testing/nvdimm/test/nfit.c
tools/testing/nvdimm/test/nfit_test.h