power: supply: bq24190_charger: Longer delay while polling reset flag
On chip reset, polling loop used udelay(10) which is too short to be useful. Instead, use usleep_range(100, 200). Signed-off-by: Liam Breck <kernel@networkimprov.net> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
Родитель
e3ebc381a9
Коммит
61489b0f9f
|
@ -550,16 +550,13 @@ static int bq24190_register_reset(struct bq24190_dev_info *bdi)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (!v)
|
||||
break;
|
||||
if (v == 0)
|
||||
return 0;
|
||||
|
||||
udelay(10);
|
||||
usleep_range(100, 200);
|
||||
} while (--limit);
|
||||
|
||||
if (!limit)
|
||||
return -EIO;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Charger power supply property routines */
|
||||
|
|
Загрузка…
Ссылка в новой задаче