acpi/nfit: queue issuing of ars when an uc error notification comes in
authorDave Jiang <dave.jiang@intel.com>
Fri, 27 Jul 2018 16:04:17 +0000 (09:04 -0700)
committerDave Jiang <dave.jiang@intel.com>
Fri, 27 Jul 2018 22:28:28 +0000 (15:28 -0700)
commitcc3d3458d46f702b1d118fca8647dc9157887d9b
treeaca054c0c2a0a526462fbb233b977b7af1037269
parent1e687220ef2d95a582e13d8de79932bfe32fdfa8
acpi/nfit: queue issuing of ars when an uc error notification comes in

When the ACPI UC error notifier gets called and ARS_REQ bit is set
with the passed in flag, we can receive -EBUSY if ARS_REQ bit is already
set for the nfit_spa->ars_state. When that happens, the ARS request is
dropped. That can potentially cause us to miss the unreported errors that
the on going ARS request does not receive. Add an ARS_REQ_REDO state that
will request short ARS upon ARS completion to grab any errors we missed.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h