]> git.baikalelectronics.ru Git - kernel.git/commit
acpi/nfit: Require opt-in for read-only label configurations
authorDan Williams <dan.j.williams@intel.com>
Sun, 3 Feb 2019 19:17:27 +0000 (11:17 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 13 Feb 2019 04:14:15 +0000 (20:14 -0800)
commit446e9048df827e926ce87252535978cd12cf9c16
treec2286a77005b66fe1895a0ba885ada2864a6b05a
parentaa0e8b34aafcb89856cdd164494f5b4672da2a80
acpi/nfit: Require opt-in for read-only label configurations

Recent fixes to command handling enabled Linux to read label
configurations that it could not before. Unfortunately that means that
configurations that were operating in label-less mode will be broken as
the kernel ignores the existing namespace configuration and tries to
honor the new found labels.

Fortunately this seems limited to a case where Linux can quirk the
behavior and maintain the existing label-less semantics by default.
When the platform does not emit an _LSW method, disable all label access
methods. Provide a 'force_labels' module parameter to allow read-only
label operation.

Fixes: 62efc3156cc4 ("acpi/nfit: Fix command-supported detection")
Reported-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c