[PATCH v2 2/2] lsusb: Reports devices that support BESL on USB2.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch adds USB2-LPM-Errata for USB2.0 Binary Object Store
Descriptor that support Best Effort Latency Tolerance (BELT),
with the Baseline BESL value, and Deep BESL values. Additionally, it
identifies if a Binary Object Store Descriptor is pre-errata HIRD
Link Power Management.

Signed-off-by: Alexandra Yates <alexandra.yates@xxxxxxxxx>
---
 lsusb.c |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/lsusb.c b/lsusb.c
index 4306697..5e92297 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -3639,9 +3639,18 @@ static void dump_usb2_device_capability_desc(unsigned char *buf)
 			buf[0], buf[1], buf[2], wide);
 	if (!(wide & 0x02))
 		printf("      (Missing must-be-set LPM bit!)\n");
-	else
-		printf("      Link Power Management (LPM)"
+	else if (!(wide & 0x04))
+		printf("      HIRD Link Power Management (LPM)"
+				" Supported\n");
+	else {
+		printf("      BESL Link Power Management (LPM)"
 				" Supported\n");
+		if (wide & 0x08)
+			printf("    BESL value    %5u us \n", wide & 0xf00);
+		if (wide & 0x10)
+			printf("    Deep BESL value    %5u us \n",
+					wide & 0xf000);
+	}
 }
 
 static void dump_ss_device_capability_desc(unsigned char *buf)
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux