fastboot: abort autoboot timeout when fastboot gadget is activated
This patch adds a call to "console_countdown_abort()" to abort a currently or upcoming running console timeout. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e3dda8553e
commit
939d3a7684
|
@ -36,6 +36,7 @@
|
|||
#include <environment.h>
|
||||
#include <globalvar.h>
|
||||
#include <restart.h>
|
||||
#include <console_countdown.h>
|
||||
#include <usb/ch9.h>
|
||||
#include <usb/gadget.h>
|
||||
#include <usb/fastboot.h>
|
||||
|
@ -815,6 +816,8 @@ static void fb_run_command(struct usb_ep *ep, struct usb_request *req, const cha
|
|||
struct f_fastboot *f_fb = req->context;
|
||||
int i;
|
||||
|
||||
console_countdown_abort();
|
||||
|
||||
for (i = 0; i < num_commands; i++) {
|
||||
if (!strcmp_l1(cmds[i].cmd, cmd)) {
|
||||
func_cb = cmds[i].cb;
|
||||
|
|
Loading…
Reference in New Issue