From 034ca2c3b6a781f49ce246c2248fbdbe24133195 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 11 May 2017 15:48:48 -0700 Subject: [PATCH] usb: host: xhci: Change L1 timeout default to 128us L1 timeout default is set to 512us which reduces the possibility of entering in to L1 state for smaller service interval value. This impacts the power saving due to L1. Hence set the timeout to lowest allowed value i.e. 128us. Change-Id: Ic261ba25ddd8097f43dffa5f6af88d97f0e417d3 Signed-off-by: Hemant Kumar --- drivers/usb/host/xhci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 1f02e38820c0..e76a0650b49f 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -437,8 +437,8 @@ struct xhci_op_regs { #define PORT_L1_TIMEOUT(p)(((p) & 0xff) << 2) #define PORT_BESLD(p)(((p) & 0xf) << 10) -/* use 512 microseconds as USB2 LPM L1 default timeout. */ -#define XHCI_L1_TIMEOUT 512 +/* use 128 microseconds as USB2 LPM L1 default timeout. */ +#define XHCI_L1_TIMEOUT 128 /* Set default HIRD/BESL value to 4 (350/400us) for USB2 L1 LPM resume latency. * Safe to use with mixed HIRD and BESL systems (host and device) and is used