From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 27 Sep 2013 19:54:59 +0200 Subject: [U-Boot] [PATCH V5 04/18] usb: gadget: ether set wMaxPacketSize In-Reply-To: <1380159678-26416-5-git-send-email-troy.kisky@boundarydevices.com> References: <1380159678-26416-1-git-send-email-troy.kisky@boundarydevices.com> <1380159678-26416-5-git-send-email-troy.kisky@boundarydevices.com> Message-ID: <201309271954.59475.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Troy Kisky, > 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. > > Strictly speaking, this patch is not needed because > usb_ep_autoconfig will call ep_matches which will > override wMaxPacketSize for BULK endpoints only with > the size associated with the endpoint setup by the udc driver. > But if you want to rely on this, you may as well combine the > full speed descriptor with the high speed descriptor to > minimize confusion. > > Signed-off-by: Troy Kisky Picking for -next, thanks Best regards, Marek Vasut