Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfit: fix format interface code byte order per ACPI6.1

ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
update the format interface code constants to match.

Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+7 -5
+7 -5
drivers/acpi/nfit.h
··· 41 41 NFIT_UUID_MAX, 42 42 }; 43 43 44 - enum nfit_fic { 45 - NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */ 46 - NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */ 47 - NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */ 48 - }; 44 + /* 45 + * Region format interface codes are stored as an array of bytes in the 46 + * NFIT DIMM Control Region structure 47 + */ 48 + #define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy backed */ 49 + #define NFIT_FIC_BLK cpu_to_be16(0x201) /* block-addressable non-energy backed */ 50 + #define NFIT_FIC_BYTEN cpu_to_be16(0x301) /* byte-addressable non-energy backed */ 49 51 50 52 enum { 51 53 NFIT_BLK_READ_FLUSH = 1,