Skip to content

Commit fa3ed4d

Browse files
committed
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: bc6ba80 ("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>
1 parent c6c5df2 commit fa3ed4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/acpi/nfit/core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,11 +3004,12 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc,
30043004
{
30053005
int rc;
30063006

3007-
if (no_init_ars || test_bit(ARS_FAILED, &nfit_spa->ars_state))
3007+
if (test_bit(ARS_FAILED, &nfit_spa->ars_state))
30083008
return acpi_nfit_register_region(acpi_desc, nfit_spa);
30093009

30103010
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);
30123013

30133014
switch (acpi_nfit_query_poison(acpi_desc)) {
30143015
case 0:

0 commit comments

Comments
 (0)