acpi, nfit: fix acpi_check_dsm() vs zero functions implemented
[cascardo/linux.git] / drivers / acpi / nfit.c
index 2215fc8..32579a7 100644 (file)
@@ -1131,11 +1131,11 @@ static int acpi_nfit_add_dimm(struct acpi_nfit_desc *acpi_desc,
 
        /*
         * Until standardization materializes we need to consider up to 3
-        * different command sets.  Note, that checking for function0 (bit0)
-        * tells us if any commands are reachable through this uuid.
+        * different command sets.  Note, that checking for zero functions
+        * tells us if any commands might be reachable through this uuid.
         */
        for (i = NVDIMM_FAMILY_INTEL; i <= NVDIMM_FAMILY_HPE2; i++)
-               if (acpi_check_dsm(adev_dimm->handle, to_nfit_uuid(i), 1, 1))
+               if (acpi_check_dsm(adev_dimm->handle, to_nfit_uuid(i), 1, 0))
                        break;
 
        /* limit the supported commands to those that are publicly documented */