From: Tom Rini Date: Fri, 1 Mar 2013 11:46:40 -0500 Subject: [U-Boot] [PATCH] usb:composite:fix Provide function data when addressing device with only one interface In-Reply-To: <1362148218-22392-1-git-send-email-l.majewski@samsung.com> References: <1362148218-22392-1-git-send-email-l.majewski@samsung.com> Message-ID: <20130301164640.GC25797@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Mar 01, 2013 at 03:30:18PM +0100, Lukasz Majewski wrote: > This commit fixes problems with some non-standard requests send with > device address instead of interface address (bmRequestType.Receipent field). > > This happens with dfu-util (debian version: 0.5), which address non standard > requests (like w_value=0x21 and bRequest=GET_DESCRIPTOR) to device. > Without this fix, the above request is STALLED, and hence causes dfu-util > to assume some standard configuration (packet size = 1024B instead of 4096B) > In turn it displays following errors: > Error obtaining DFU functional descriptor > Warning: Assuming DFU version 1.0 > Warning: Transfer size can not be detected > ... > Warning: Trying default transfer size 1024 > > This fix allows passing non-standard request to function setup code, where > it shall be handled. > > Tested at: Trats (exynos4210) > Tested with:DFU and UMS gadgets > > Signed-off-by: Lukasz Majewski > Signed-off-by: Kyungmin Park Tested-by: Tom Rini on am335x_evm with this patch replacing Pantelis' patch, in the stack of things required for DFU on this board. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: