| Date | Wed, 13 Aug 2025 14:27:37 +0100 | | From | Jonathan Cameron <> | | Subject | Re: [PATCH V2 03/20] nvdimm/namespace_label: Add namespace label changes as per CXL LSA v2.1 |
| |
On Wed, 30 Jul 2025 17:41:52 +0530 Neeraj Kumar <s.neeraj@samsung.com> wrote:
> CXL 3.2 Spec mentions CXL LSA 2.1 Namespace Labels at section 9.13.2.5 > Modified __pmem_label_update function using setter functions to update > namespace label as per CXL LSA 2.1 > > Signed-off-by: Neeraj Kumar <s.neeraj@samsung.com>
> diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h > index 61348dee687d..651847f1bbf9 100644 > --- a/drivers/nvdimm/nd.h > +++ b/drivers/nvdimm/nd.h > @@ -295,6 +295,33 @@ static inline const u8 *nsl_uuid_raw(struct nvdimm_drvdata *ndd,
> +static inline void nsl_set_alignment(struct nvdimm_drvdata *ndd, > + struct nd_namespace_label *ns_label, > + u32 align) > +{ > + if (ndd->cxl) > + ns_label->cxl.align = __cpu_to_le16(align);
The bot caught this one, it should be __cpu_to_le32(align);
> +}
|