Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type: Add NVME_CMBEBS property definitions #816

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

ikegami-t
Copy link
Contributor

Also add NVME_UNIT definitions for CMBSZU and PMRSZU.

src/nvme/types.h Outdated
@@ -491,6 +491,30 @@ enum nvme_cmbsts {

#define NVME_CMBSTS_CBAI(cmbsts) NVME_GET(cmbsts, CMBSTS_CBAI)

enum nvme_unit {
NVME_UNIT_B,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are types with fixed values, it's better to explicit assign them the values, e.g. NVME_UNIT_B = 1 as we do in the other types.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed as mentioned. Thank you.

Also add NVME_UNIT definitions for CMBSZU and PMRSZU.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Also change PMRSWTU to use NVME_UNIT definitions.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@igaw igaw merged commit 963fed9 into linux-nvme:master Apr 16, 2024
14 checks passed
@igaw
Copy link
Collaborator

igaw commented Apr 16, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants