diff options
author | Yasunori Goto <y-goto@jp.fujitsu.com> | 2017-09-22 03:47:40 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-10-07 12:02:28 -0400 |
commit | b37b3fd33d034470749db55d1ccd7331bd35bdca (patch) | |
tree | bc2d8d7a8cf30c119fd5b61ac1a80584b89da3ec | |
parent | a586cb4937fa328a857c8d7fbefb986d347bd4a7 (diff) |
acpi nfit: Enable to show what feature is supported via ND_CMD_CALL for nfit_test
Though nfit_test need to show what feature is supported via ND_CMD_CALL on
device/nfit/dsm_mask, currently there is no way to tell it.
This patch makes to enable it.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/acpi/nfit/core.c | 1 | ||||
-rw-r--r-- | drivers/acpi/nfit/nfit.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 9c2c49b6a240..3369bb8fd9ba 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c | |||
@@ -1645,6 +1645,7 @@ static void acpi_nfit_init_dsms(struct acpi_nfit_desc *acpi_desc) | |||
1645 | int i; | 1645 | int i; |
1646 | 1646 | ||
1647 | nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en; | 1647 | nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en; |
1648 | nd_desc->bus_dsm_mask = acpi_desc->bus_nfit_cmd_force_en; | ||
1648 | adev = to_acpi_dev(acpi_desc); | 1649 | adev = to_acpi_dev(acpi_desc); |
1649 | if (!adev) | 1650 | if (!adev) |
1650 | return; | 1651 | return; |
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h index 54292db61262..f2c6380bdbb2 100644 --- a/drivers/acpi/nfit/nfit.h +++ b/drivers/acpi/nfit/nfit.h | |||
@@ -167,6 +167,7 @@ struct acpi_nfit_desc { | |||
167 | unsigned int init_complete:1; | 167 | unsigned int init_complete:1; |
168 | unsigned long dimm_cmd_force_en; | 168 | unsigned long dimm_cmd_force_en; |
169 | unsigned long bus_cmd_force_en; | 169 | unsigned long bus_cmd_force_en; |
170 | unsigned long bus_nfit_cmd_force_en; | ||
170 | int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa, | 171 | int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa, |
171 | void *iobuf, u64 len, int rw); | 172 | void *iobuf, u64 len, int rw); |
172 | }; | 173 | }; |