summaryrefslogtreecommitdiff
path: root/drivers/acpi/nfit/nfit.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-04-05 01:25:02 -0700
committerDan Williams <dan.j.williams@intel.com>2018-04-07 07:55:05 -0700
commit459d0ddb079c869c986e1bb871c91564a4b8ccfe (patch)
tree6a6d4c8dd0c863afd07d1403109f24bad4d156e9 /drivers/acpi/nfit/nfit.h
parent3013e17381b8ba9adc5b0fb424128ea692205300 (diff)
downloadlinux-rpi-459d0ddb079c869c986e1bb871c91564a4b8ccfe.tar.gz
linux-rpi-459d0ddb079c869c986e1bb871c91564a4b8ccfe.tar.bz2
linux-rpi-459d0ddb079c869c986e1bb871c91564a4b8ccfe.zip
nfit, address-range-scrub: determine one platform max_ars value
acpi_nfit_query_poison() is awkward in that it requires an nfit_spa argument in order to determine what max_ars value to use. Instead probe for the minimum max_ars across all scrub-capable ranges in the system and drop the nfit_spa argument. This enables a larger rework / simplification of the ARS state machine whereby the status can be retrieved once and then iterated over all address ranges to reap completions. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit/nfit.h')
-rw-r--r--drivers/acpi/nfit/nfit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h
index 2b97e5f76bdf..45e7949986a8 100644
--- a/drivers/acpi/nfit/nfit.h
+++ b/drivers/acpi/nfit/nfit.h
@@ -197,10 +197,10 @@ struct acpi_nfit_desc {
struct device *dev;
u8 ars_start_flags;
struct nd_cmd_ars_status *ars_status;
- size_t ars_status_size;
struct work_struct work;
struct list_head list;
struct kernfs_node *scrub_count_state;
+ unsigned int max_ars;
unsigned int scrub_count;
unsigned int scrub_mode;
unsigned int cancel:1;