mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
soc: mediatek: PMIC wrap: Extend the waiting time to 10ms.
Read data fails sometimes because of a timeout that PMIC cannot transfer data to PMIC wrap on time, extend the waiting time to 10ms to reduce the failed rate. Signed-off-by: Henry Chen <[email protected]> Signed-off-by: Matthias Brugger <[email protected]>
This commit is contained in:
parent
29b4817d40
commit
e180f887ba
1 changed files with 1 additions and 1 deletions
|
|
@ -583,7 +583,7 @@ static int pwrap_wait_for_state(struct pmic_wrapper *wrp,
|
|||
{
|
||||
unsigned long timeout;
|
||||
|
||||
timeout = jiffies + usecs_to_jiffies(255);
|
||||
timeout = jiffies + usecs_to_jiffies(10000);
|
||||
|
||||
do {
|
||||
if (time_after(jiffies, timeout))
|
||||
|
|
|
|||
Loading…
Reference in a new issue