提交 c8458d59 编写于 作者: C Christophe Lebouc 提交者: Greg Kroah-Hartman

usb: langwell_udc: fix big file transfer issue.

This patch fixing the problem with large file transfers failing. Swap the read
order to avoid unexpected RX status.
Signed-off-by: NChristophe Lebouc <christophex.lebouc@intel.com>
Signed-off-by: NHao Wu <hao.wu@intel.com>
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 689d6eac
......@@ -2440,12 +2440,14 @@ static int process_ep_req(struct langwell_udc *dev, int index,
dev_vdbg(&dev->pdev->dev, "---> %s()\n", __func__);
for (i = 0; i < curr_req->dtd_count; i++) {
remaining_length = le16_to_cpu(curr_dtd->dtd_total);
actual -= remaining_length;
/* command execution states by dTD */
dtd_status = curr_dtd->dtd_status;
barrier();
remaining_length = le16_to_cpu(curr_dtd->dtd_total);
actual -= remaining_length;
if (!dtd_status) {
/* transfers completed successfully */
if (!remaining_length) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册