From patchwork Fri Oct 17 17:09:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38908 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 817C420973 for ; Fri, 17 Oct 2014 17:10:41 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id b13sf714975wgh.0 for ; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=V0I4al0Qi2lFNyylmxC0X0LrvD6G02juLhSHGEzKpkg=; b=g60dPsc37U+IxTlK9iDgY8TK4G4CREYIrMU1cqcQ3JG67JgoGldQCost6T4Yo/M91E VH8RUqR+375EE71GsDpMOrE5T/zgJBZz7Q/ymJwFTuqLDLkzHsofuaS9LRtOUq5MEr0v WW5+E/W5K44ogujZD8BQQse68yfd6soE2mcfPlGm9e7cGJal/CqOHvChQSM2xALMcQEh EYJEtlNku4wxj25VPu3n5xxeS4YTE60IWvsm2x6kn2kWpQYJT8Qc3zrNxmiSfFq4MrOc nl7KGEfHKr5EmWB+MtvoH+WeTB7a9I4bhc4/KKVlpABWFd090s9T4VEck5V/PyT/CZVg 3QwQ== X-Gm-Message-State: ALoCoQn3EBVBGCWWbCIMXPrHsz2FZNAASrjKgzt35dcAO0v+OEfkSvrjNFERCiHa65bOAKHaPuyQ X-Received: by 10.152.3.168 with SMTP id d8mr1598635lad.0.1413565840751; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.167 with SMTP id kr7ls268279lac.94.gmail; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) X-Received: by 10.112.146.5 with SMTP id sy5mr4445812lbb.97.1413565840477; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id ao5si2974449lbc.58.2014.10.17.10.10.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ge10so1064571lab.10 for ; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr10194846lbb.80.1413565840352; Fri, 17 Oct 2014 10:10:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp266732lbz; Fri, 17 Oct 2014 10:10:39 -0700 (PDT) X-Received: by 10.70.118.138 with SMTP id km10mr9845001pdb.65.1413565838895; Fri, 17 Oct 2014 10:10:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wq7si1512337pbc.257.2014.10.17.10.10.38 for ; Fri, 17 Oct 2014 10:10:38 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558AbaJQRKg (ORCPT + 3 others); Fri, 17 Oct 2014 13:10:36 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:55636 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752032AbaJQRKf (ORCPT ); Fri, 17 Oct 2014 13:10:35 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHAZNN025146 for ; Fri, 17 Oct 2014 12:10:35 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHAZAO023217 for ; Fri, 17 Oct 2014 12:10:35 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:10:34 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHAYju022359; Fri, 17 Oct 2014 12:10:35 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Felipe Balbi Subject: [PATCH 20/28] usb: gadget: composite: enable BESL support Date: Fri, 17 Oct 2014 12:09:56 -0500 Message-ID: <1413565804-13061-21-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413565804-13061-1-git-send-email-balbi@ti.com> References: <1413565804-13061-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index a8c18df..f6a51fd 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) usb_ext->bLength = USB_DT_USB_EXT_CAP_SIZE; usb_ext->bDescriptorType = USB_DT_DEVICE_CAPABILITY; usb_ext->bDevCapabilityType = USB_CAP_TYPE_EXT; - usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT); + usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT | USB_BESL_SUPPORT); /* * The Superspeed USB Capability descriptor shall be implemented by all