Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59174b2b authored by Ajit Kumar's avatar Ajit Kumar
Browse files

soc: qcom: bgcom: update the spi wakeup retry delay



Retry every 1 ms for 100 times to resume BG spi.

Change-Id: I76072a5c2bdfee50ac4c51a35b88e8a8586678d9
Signed-off-by: default avatarAjit Kumar <kajit@codeaurora.org>
parent 594b6adb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -49,7 +49,7 @@
#define HED_EVENT_DATA_STRT_LEN (0x05)
#define CMA_BFFR_POOL_SIZE (128*1024)

#define MAX_RETRY 500
#define MAX_RETRY 100

enum bgcom_state {
	/*BGCOM Staus ready*/
@@ -849,7 +849,7 @@ int bgcom_resume(void *handle)
			bg_spi->bg_state = BGCOM_STATE_ACTIVE;
			break;
		}
		udelay(10);
		udelay(1000);
		++retry;
	} while (retry < MAX_RETRY);