Merge patch series "Prepare for upstreaming Pixel 6 and 7 UFS support"
[linux-block.git] / include / ufs / ufshci.h
index af216296b86eb0624fd1fc1e55e6d4ebbc345d83..9346efea3eb397651959ad1155576d689f69ae29 100644 (file)
@@ -423,18 +423,23 @@ struct ufshcd_sg_entry {
        __le64    addr;
        __le32    reserved;
        __le32    size;
+       /*
+        * followed by variant-specific fields if
+        * CONFIG_SCSI_UFS_VARIABLE_SG_ENTRY_SIZE has been defined.
+        */
 };
 
 /**
  * struct utp_transfer_cmd_desc - UTP Command Descriptor (UCD)
  * @command_upiu: Command UPIU Frame address
  * @response_upiu: Response UPIU Frame address
- * @prd_table: Physical Region Descriptor
+ * @prd_table: Physical Region Descriptor: an array of SG_ALL struct
+ *     ufshcd_sg_entry's.  Variant-specific fields may be present after each.
  */
 struct utp_transfer_cmd_desc {
        u8 command_upiu[ALIGNED_UPIU_SIZE];
        u8 response_upiu[ALIGNED_UPIU_SIZE];
-       struct ufshcd_sg_entry    prd_table[SG_ALL];
+       u8 prd_table[];
 };
 
 /**