Re: [PATCH 1/2] scsi: ufs: core: Introduce function ufshcd_query_attr_qword()
From: Bart Van Assche
Date: Mon Apr 20 2026 - 14:26:14 EST
On 4/19/26 6:52 AM, Can Guo wrote:
+static inline bool ufshcd_is_qword_attrs(enum attr_idn idn)
+{
+ return idn == QUERY_ATTR_IDN_TIMESTAMP ||
+ idn == QUERY_ATTR_IDN_DEV_LVL_EXCEPTION_ID;
+}
Please change "ufshcd_is_qword_attrs()" into "ufshcd_is_qword_attr()".
+/**
+ * ufshcd_query_attr_qword - API function of sending query requests for quad-word attributes
+ * @hba: per-adapter instance
+ * @opcode: attribute opcode
+ * @idn: attribute idn to access
+ * @index: index field
+ * @sel: selector field
+ * @attr_val: the attribute value after the query request completes
+ *
+ * Return: 0 for success, non-zero in case of failure.
+ */
The word "API" is uncommon in the first line of kernel-doc headers.
Please remove it.
Otherwise this patch looks good to me.
Thanks,
Bart.