diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2016-12-16 18:41:31 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-02-26 13:24:30 +0100 |
commit | f11bb2524541556682b83ee694829208b960b56c (patch) | |
tree | 3aaa70cd0d24bcc086fc08481aff0896c29545a9 /drivers/led | |
parent | 8987012fe5a8bc226d1b3f5187c152b8d85a2dcd (diff) | |
download | u-boot-imx-f11bb2524541556682b83ee694829208b960b56c.zip u-boot-imx-f11bb2524541556682b83ee694829208b960b56c.tar.gz u-boot-imx-f11bb2524541556682b83ee694829208b960b56c.tar.bz2 |
usb: gadget: dfu: correct size for USB_REQ_DFU_GETSTATE result
return the correct size for DFU_GETSTATE result (1 byte in DFU 1.1 spec)
to avoid issue in USB protocol and the variable "value" is propagated
to req->lenght as all the in the other request with answer
- DFU_GETSTATUS
- DFU_DNLOAD
- DFU_UPLOAD
Then the buffer is correctly treated in USB driver
NB: it was the only request witch directly change "req->actual"
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
Diffstat (limited to 'drivers/led')
0 files changed, 0 insertions, 0 deletions