]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: ufs: core: Add UFS_HS_G6 and UFS_HS_GEAR_MAX to enum ufs_hs_gear_tag
authorCan Guo <can.guo@oss.qualcomm.com>
Wed, 25 Mar 2026 15:21:45 +0000 (08:21 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 27 Mar 2026 21:20:29 +0000 (17:20 -0400)
Add UFS_HS_G6 to enum ufs_hs_gear_tag. In addition, add UFS_HS_GEAR_MAX to
enum ufs_hs_gear_tag to facilitate iteration over valid High Speed Gears.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <can.guo@oss.qualcomm.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Link: https://patch.msgid.link/20260325152154.1604082-4-can.guo@oss.qualcomm.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/ufs/unipro.h

index 59de737490ca81efa9ee6e743e37721c417520f6..71a5f643400c309ddd8f1d409d00de5f83f50721 100644 (file)
@@ -233,7 +233,9 @@ enum ufs_hs_gear_tag {
        UFS_HS_G2,              /* HS Gear 2 */
        UFS_HS_G3,              /* HS Gear 3 */
        UFS_HS_G4,              /* HS Gear 4 */
-       UFS_HS_G5               /* HS Gear 5 */
+       UFS_HS_G5,              /* HS Gear 5 */
+       UFS_HS_G6,              /* HS Gear 6 */
+       UFS_HS_GEAR_MAX = UFS_HS_G6,
 };
 
 enum ufs_lanes {