Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH] ufs: Add HS_GEAR6 string in power_info/gear sysfs output
@ 2026-06-15 14:26 himanshubatra
  2026-06-16  4:22 ` VAMSHI GAJJELA
  0 siblings, 1 reply; 7+ messages in thread
From: himanshubatra @ 2026-06-15 14:26 UTC (permalink / raw)
  To: Alim Akhtar, Avri Altman, Bart Van Assche
  Cc: James E.J. Bottomley, Martin K. Petersen, linux-scsi,
	linux-kernel, linux-serial, vamshigajjela, manugautam,
	himanshubatra

In power_info/gear sysfs, currently it supports output only till gear 5.
If operating mode is gear 6, it is giving output as "UNKNOWN".
Add support for HS_GEAR6 string in sysfs output when operating mode
is gear 6.

Signed-off-by: himanshubatra <himanshubatra@google.com>
---
 drivers/ufs/core/ufs-sysfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ufs/core/ufs-sysfs.c b/drivers/ufs/core/ufs-sysfs.c
index 99af3c73f1af..d1f5041fc3c8 100644
--- a/drivers/ufs/core/ufs-sysfs.c
+++ b/drivers/ufs/core/ufs-sysfs.c
@@ -54,6 +54,7 @@ static const char *ufs_hs_gear_to_string(enum ufs_hs_gear_tag gear)
 	case UFS_HS_G3:	return "HS_GEAR3";
 	case UFS_HS_G4:	return "HS_GEAR4";
 	case UFS_HS_G5:	return "HS_GEAR5";
+	case UFS_HS_G6:	return "HS_GEAR6";
 	default:	return "UNKNOWN";
 	}
 }
-- 
2.54.0.1189.g8c84645362-goog


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-16 13:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 14:26 [PATCH] ufs: Add HS_GEAR6 string in power_info/gear sysfs output himanshubatra
2026-06-16  4:22 ` VAMSHI GAJJELA
2026-06-16  8:27   ` Himanshu Batra
2026-06-16  8:31     ` [PATCH v2] scsi: ufs: sysfs: " himanshubatra
2026-06-16  9:44       ` Greg KH
2026-06-16 10:01         ` [PATCH v3] " Himanshu Batra
2026-06-16 13:37           ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox