]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libnvdimm, nfit: centralize command status translation
authorDan Williams <dan.j.williams@intel.com>
Sat, 13 Feb 2016 01:01:11 +0000 (17:01 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 5 Mar 2016 20:24:06 +0000 (12:24 -0800)
commitaef25338226660cdd4df908c2eff1abdcfca65e5
treeb89be48ddd43730ae5a779252bd6702c5df829cb
parent3b87356f50aa12ae7f9bd60f630eb17fe9b4b253
libnvdimm, nfit: centralize command status translation

The return value from an 'ndctl_fn' reports the command execution
status, i.e. was the command properly formatted and was it successfully
submitted to the bus provider.  The new 'cmd_rc' parameter allows the bus
provider to communicate command specific results, translated into
common error codes.

Convert the ARS commands to this scheme to:

1/ Consolidate status reporting

2/ Prepare for for expanding ars unit test cases

3/ Make the implementation more generic

Cc: 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
drivers/nvdimm/bus.c
drivers/nvdimm/dimm_devs.c
include/linux/libnvdimm.h
tools/testing/nvdimm/test/nfit.c