]> asedeno.scripts.mit.edu Git - linux.git/commit
acpi, nfit: Prefer _DSM over _LSR for namespace label reads
authorDan Williams <dan.j.williams@intel.com>
Wed, 13 Jun 2018 16:06:52 +0000 (09:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 14 Jul 2018 17:27:00 +0000 (10:27 -0700)
commit099b07a25fff6ee1b37f3ca7f4d2b53186326db0
treeeed49b2d32ccee9bc1e05c38bb94f13c3024f5a0
parent08e6b3c6e3a054f566367740c94b8c1d18e52056
acpi, nfit: Prefer _DSM over _LSR for namespace label reads

The _LSR method indicates locked status via error-code-3 returned in the
_LSR payload. When any error is returned the payload of _LSR is
truncated to a zero-length buffer.

The _DSM path in comparison allows system software to retrieve the
locked status *and* namespace label area contents.

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