From patchwork Fri Oct 17 17:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38902 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3B2F202DB for ; Fri, 17 Oct 2014 17:10:34 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id b6sf714482lbj.7 for ; Fri, 17 Oct 2014 10:10:33 -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=eywZ+MQWirfhjcN6YMgZzheARnVd+Vz/64jjkkSv5Es=; b=La8UPfivffROCCrXOvFtGzz3Sydd4SIB7yOiHQULuIZSVqZLA3dcbSOFLSuNsof1ua gkTIMqErJxIDAmNqELuTjdfDEJMq6ELbLQLrYyxx9WRsxCvTncN+yKmngUph8g+bJUoY xjuwVlBZukt3+9setzSnFS8ZWh36d+7P66xkOe9txtc6+1cp3jY4+m2SvgzM9fqYplM7 a+zhTRTKhKbiTmjkTIPAQaWuw7n+INy9dsB3FVRzpF/IqtPvvFddCHsLq8vpjDyjJFiW QMzS/DhP1TO1IMlZjyltPIlkZ9gWaXfRz/f80DxoFIRS7fPFe+0+TEvMCZD3534yTBUe zXww== X-Gm-Message-State: ALoCoQmUOXyJZiLvuzuN4LX6OKDjmpM0nos5AP3rJVMBbQfsALb1kP/4f3+8H9IAGTTAdWcOST0y X-Received: by 10.180.186.142 with SMTP id fk14mr51404wic.4.1413565833478; Fri, 17 Oct 2014 10:10:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.97 with SMTP id p1ls58333laj.87.gmail; Fri, 17 Oct 2014 10:10:33 -0700 (PDT) X-Received: by 10.112.142.33 with SMTP id rt1mr4593853lbb.85.1413565833326; Fri, 17 Oct 2014 10:10:33 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id m4si2928518lbd.106.2014.10.17.10.10.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so1046684lbi.16 for ; Fri, 17 Oct 2014 10:10:33 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr10324997lbb.46.1413565833098; Fri, 17 Oct 2014 10:10:33 -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 c5csp266695lbz; Fri, 17 Oct 2014 10:10:31 -0700 (PDT) X-Received: by 10.68.167.99 with SMTP id zn3mr9972008pbb.30.1413565831109; Fri, 17 Oct 2014 10:10:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id po9si1732725pdb.3.2014.10.17.10.10.30 for ; Fri, 17 Oct 2014 10:10:31 -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 S1753522AbaJQRK3 (ORCPT + 3 others); Fri, 17 Oct 2014 13:10:29 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55456 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753502AbaJQRK1 (ORCPT ); Fri, 17 Oct 2014 13:10:27 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHARFp011113 for ; Fri, 17 Oct 2014 12:10:27 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHARDk027804 for ; Fri, 17 Oct 2014 12:10:27 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:10:27 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHAQOP021674; Fri, 17 Oct 2014 12:10:27 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Felipe Balbi Subject: [PATCH 12/28] usb: gadget: function: uac2: add wMaxPacketSize to ep desc Date: Fri, 17 Oct 2014 12:09:48 -0500 Message-ID: <1413565804-13061-13-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.217.171 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: , Endpoint descriptors should pass wMaxPacketSize. Note that this also fixes USB20CV Other Speed Endpoint Descriptor Tests. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/function/f_uac2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/function/f_uac2.c b/drivers/usb/gadget/function/f_uac2.c index a5a27a5..fa51118 100644 --- a/drivers/usb/gadget/function/f_uac2.c +++ b/drivers/usb/gadget/function/f_uac2.c @@ -772,6 +772,7 @@ struct usb_endpoint_descriptor fs_epout_desc = { .bEndpointAddress = USB_DIR_OUT, .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, + .wMaxPacketSize = cpu_to_le16(1023), .bInterval = 1, }; @@ -780,6 +781,7 @@ struct usb_endpoint_descriptor hs_epout_desc = { .bDescriptorType = USB_DT_ENDPOINT, .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, + .wMaxPacketSize = cpu_to_le16(1024), .bInterval = 4, }; @@ -847,6 +849,7 @@ struct usb_endpoint_descriptor fs_epin_desc = { .bEndpointAddress = USB_DIR_IN, .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, + .wMaxPacketSize = cpu_to_le16(1023), .bInterval = 1, }; @@ -855,6 +858,7 @@ struct usb_endpoint_descriptor hs_epin_desc = { .bDescriptorType = USB_DT_ENDPOINT, .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, + .wMaxPacketSize = cpu_to_le16(1024), .bInterval = 4, };