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 <henryc.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
Henry Chen 2016-07-13 11:34:28 +08:00 коммит произвёл Matthias Brugger
Родитель 29b4817d40
Коммит e180f887ba
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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))