Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b37b3fd3 authored by Yasunori Goto's avatar Yasunori Goto Committed by Dan Williams
Browse files

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: default avatarYasunori Goto <y-goto@jp.fujitsu.com>
Reviewed-by: default avatarVishal Verma <vishal.l.verma@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent a586cb49
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1645,6 +1645,7 @@ static void acpi_nfit_init_dsms(struct acpi_nfit_desc *acpi_desc)
	int i;
	int i;


	nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en;
	nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en;
	nd_desc->bus_dsm_mask = acpi_desc->bus_nfit_cmd_force_en;
	adev = to_acpi_dev(acpi_desc);
	adev = to_acpi_dev(acpi_desc);
	if (!adev)
	if (!adev)
		return;
		return;
+1 −0
Original line number Original line Diff line number Diff line
@@ -167,6 +167,7 @@ struct acpi_nfit_desc {
	unsigned int init_complete:1;
	unsigned int init_complete:1;
	unsigned long dimm_cmd_force_en;
	unsigned long dimm_cmd_force_en;
	unsigned long bus_cmd_force_en;
	unsigned long bus_cmd_force_en;
	unsigned long bus_nfit_cmd_force_en;
	int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
	int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
			void *iobuf, u64 len, int rw);
			void *iobuf, u64 len, int rw);
};
};