Browse Source

u-boot: fsl_upfater: WA for occasional fails while pushing data over UTP

Ocassionally downloading data over UTP fails. This patch workarounds/fix
this issue by returning a BUSY UTP status (instead of a PASS status)
when a utp exec command is received. This seems to allow the PC side to
wait for longer time while the file is being pushed/downloanded.

Signed-off-by: Juan Gutierrez <b44802@freescale.com>
Juan Gutierrez 11 years ago
parent
commit
5294235de9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/usb/gadget/fsl_updater.c

+ 2 - 1
drivers/usb/gadget/fsl_updater.c

@@ -329,7 +329,8 @@ static int utp_exec(struct fsg_common *common,
 		UTP_SS_EXIT(common, uud->data.status);
 	} else {
 		pr_debug("%s: pass\n", __func__);
-		UTP_SS_PASS(common);
+		/* Workaround for ocassional push failures */
+		UTP_SS_BUSY(common, 10);
 	}
 	utp_user_data_free(uud);
 	return 0;