]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
acpi, nfit: hide unknown commands from nmemX/commands
authorDan Williams <dan.j.williams@intel.com>
Sun, 29 Oct 2017 19:13:07 +0000 (12:13 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 29 Oct 2017 19:13:07 +0000 (12:13 -0700)
commitb9b1504d3c6d6831c822cd785e095fc5fb155346
tree3eb270e7ff9197a92df20f93ada3bbdb658bc7df
parent0a3ff78699d1817e711441715d22665475466036
acpi, nfit: hide unknown commands from nmemX/commands

For vendor specific commands that do not have a common kernel
translation, hide them from nmemX/commands. For example, the following
results from new enabling to probe for support of the new
NVDIMM_FAMILY_INTEL DSMs specified in v1.6 of the command specification
[1]:

    # cat /sys/bus/nd/devices/nmem0/commands
    smart smart_thresh flags get_size get_data set_data effect_size
    effect_log vendor cmd_call unknown unknown unknown unknown unknown
    unknown unknown unknown

[1]: https://pmem.io/documents/NVDIMM_DSM_Interface-V1.6.pdf

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h