diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2019-02-13 12:01:13 -0500 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2019-02-20 17:18:59 -0500 |
| commit | fa3ed4d981b1fc19acdd07fcb152a4bd3706892b (patch) | |
| tree | 4a09d264c5f1a6a2b122ac569c47789951eec655 /drivers | |
| parent | c6c5df293bf1b488cf8459aac658aecfdccb13a9 (diff) | |
nfit/ars: Attempt short-ARS even in the no_init_ars case
The no_init_ars option is meant to prevent long-ARS, but short-ARS
should be allowed to grab any immediate results.
Fixes: bc6ba8085842 ("nfit, address-range-scrub: rework and simplify ARS...")
Cc: <stable@vger.kernel.org>
Reported-by: Erwin Tsaur <erwin.tsaur@oracle.com>
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/acpi/nfit/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 3d681a92ff7f..934be96dc149 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c | |||
| @@ -3004,11 +3004,12 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc, | |||
| 3004 | { | 3004 | { |
| 3005 | int rc; | 3005 | int rc; |
| 3006 | 3006 | ||
| 3007 | if (no_init_ars || test_bit(ARS_FAILED, &nfit_spa->ars_state)) | 3007 | if (test_bit(ARS_FAILED, &nfit_spa->ars_state)) |
| 3008 | return acpi_nfit_register_region(acpi_desc, nfit_spa); | 3008 | return acpi_nfit_register_region(acpi_desc, nfit_spa); |
| 3009 | 3009 | ||
| 3010 | set_bit(ARS_REQ_SHORT, &nfit_spa->ars_state); | 3010 | set_bit(ARS_REQ_SHORT, &nfit_spa->ars_state); |
| 3011 | set_bit(ARS_REQ_LONG, &nfit_spa->ars_state); | 3011 | if (!no_init_ars) |
| 3012 | set_bit(ARS_REQ_LONG, &nfit_spa->ars_state); | ||
| 3012 | 3013 | ||
| 3013 | switch (acpi_nfit_query_poison(acpi_desc)) { | 3014 | switch (acpi_nfit_query_poison(acpi_desc)) { |
| 3014 | case 0: | 3015 | case 0: |
