nvme: fix the CRIMS and CRWMS definitions to match the spec
authorJoel Granados <j.granados@samsung.com>
Tue, 21 Jun 2022 07:05:00 +0000 (09:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 23 Jun 2022 13:22:22 +0000 (15:22 +0200)
Adjust the values of NVME_CAP_CRMS_CRIMS and NVME_CAP_CRMS_CRWMS masks as
they are different from the ones in TP4084 - Time-to-ready.

Fixes: 354201c53e61 ("nvme: add support for TP4084 - Time-to-Ready Enhancements").
Signed-off-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/nvme.h

index 29ec3e3481ff61901899e6b2c836bf4a1fbe6e65..e3934003f2397e02003c42bb6173feb2575d0d42 100644 (file)
@@ -233,8 +233,8 @@ enum {
 };
 
 enum {
-       NVME_CAP_CRMS_CRIMS     = 1ULL << 59,
-       NVME_CAP_CRMS_CRWMS     = 1ULL << 60,
+       NVME_CAP_CRMS_CRWMS     = 1ULL << 59,
+       NVME_CAP_CRMS_CRIMS     = 1ULL << 60,
 };
 
 struct nvme_id_power_state {