On 13/08/25 02:27PM, Jonathan Cameron wrote:
On Wed, 30 Jul 2025 17:41:52 +0530
Neeraj Kumar <s.nee...@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.nee...@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);
Yes Jonathan, I will fix this in next patch-set
Regards,
Neeraj