From: Felipe Balbi Date: Tue, 30 Sep 2014 21:08:03 +0000 (-0500) Subject: usb: gadget: composite: enable BESL support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60b30571606c739bbe89e0a6e47f61ba71d3e88e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git usb: gadget: composite: enable BESL support commit a6615937bcd9234e6d6bb817c3701fce44d0a84d upstream. According to USB 2.0 ECN Errata for Link Power Management (USB2-LPM-Errata-final.pdf), BESL must be enabled if LPM is enabled. This helps with USB30CV TD 9.21 LPM L1 Suspend Resume Test. Signed-off-by: Felipe Balbi Signed-off-by: Du, Changbin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 034fd53ddbd..aa6e8893071 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -560,7 +560,7 @@ static int bos_desc(struct usb_composite_dev *cdev) #ifdef CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE usb_ext->bmAttributes = 0; #else - usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT); + usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT | USB_BESL_SUPPORT); #endif /*