From patchwork Fri Sep 20 03:29:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 276200 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 420652C0123 for ; Fri, 20 Sep 2013 13:37:33 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F388F4A190; Fri, 20 Sep 2013 05:37:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYa9XUJ75VZw; Fri, 20 Sep 2013 05:37:26 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 595E74A19D; Fri, 20 Sep 2013 05:37:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 50D4B4A181 for ; Fri, 20 Sep 2013 05:37:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id inZ0fu2K4747 for ; Fri, 20 Sep 2013 05:37:08 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by theia.denx.de (Postfix) with ESMTPS id 1A1874A18A for ; Fri, 20 Sep 2013 05:36:58 +0200 (CEST) Received: by mail-pa0-f43.google.com with SMTP id hz10so201372pad.2 for ; Thu, 19 Sep 2013 20:36:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9p8kNV1qK0nm7m2yX2LfoAGNo5qpaRGL0tjYcf01ISQ=; b=hQaNES207deYl6Xwjw4j1pfc0Ga+yVVu1Tyb7C5Rt37bqNBplqlXUoNrTMcRBx5+tF 44SMqkOZ7s+JGz4Qw/PWGOSuMeoW0EQTWl1b6j1dBpgGLYi3AwBAHUuwlQguhJUx++YN q4xHKhF7NYQ7Ahee0rR6Qm4VllOqZ4SQcGy+bYGIwWgY6r8vmE3op96q0iERS0+BO2af CnR7MC91Rqy9BT/JADalSpniMaKHSqzWqtDQjUXFUiKsPj3Ts37tx0YSPUiMDNnu4C+i XyZWwtMYVvBqyYrN67MaV6htqqiWsDitcPeOVTTcITmqds1dpvTuBL3isMicFeiu7UMp qmHQ== X-Gm-Message-State: ALoCoQnGlwhoI3eAkOqURnM5XYS4wExP3ge7niqFBjrN6lKkvBP4Dtl89PDPkhCKhHUT98abMVDG X-Received: by 10.67.14.67 with SMTP id fe3mr6399362pad.134.1379647773957; Thu, 19 Sep 2013 20:29:33 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id py4sm12588399pbb.33.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 19 Sep 2013 20:29:32 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1VMrPd-0000hN-Hk; Thu, 19 Sep 2013 20:29:45 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 19 Sep 2013 20:29:26 -0700 Message-Id: <1379647780-2623-4-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1379647780-2623-1-git-send-email-troy.kisky@boundarydevices.com> References: <1379647780-2623-1-git-send-email-troy.kisky@boundarydevices.com> Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V4 03/17] usb: gadget: ether set wMaxPacketSize X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de set wMaxPacketSize for full speed descriptors fs_source_desc, fs_sink_desc to 64. Full-speed bulk endpoint can have a maximum packet size of 8, 16, 32, or 64 bytes, so choice 64. The hs_source_desc, hs_sink_desc, already have their wMaxPacketSize set to 512. That is the only legal value for high speed bulk endpoints. Signed-off-by: Troy Kisky --- v4: expanded commit message --- drivers/usb/gadget/ether.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 700d5fb..988cffb 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -635,6 +635,7 @@ fs_source_desc = { .bEndpointAddress = USB_DIR_IN, .bmAttributes = USB_ENDPOINT_XFER_BULK, + .wMaxPacketSize = __constant_cpu_to_le16(64), }; static struct usb_endpoint_descriptor @@ -644,6 +645,7 @@ fs_sink_desc = { .bEndpointAddress = USB_DIR_OUT, .bmAttributes = USB_ENDPOINT_XFER_BULK, + .wMaxPacketSize = __constant_cpu_to_le16(64), }; static const struct usb_descriptor_header *fs_eth_function[11] = {