From 1b7fb3f26558b0eb7eed1a6f7897cf09efc0dc38 Mon Sep 17 00:00:00 2001 From: Zhangbin Tong Date: Tue, 29 Sep 2015 09:36:47 +0800 Subject: [PATCH] power_supply: cw2015_battery: Add msleep(200) when recover from sleep mode Change-Id: I66f0ee349622f24646376822948d331922676ad3 Signed-off-by: Zhangbin Tong --- drivers/power/cw2015_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/cw2015_battery.c b/drivers/power/cw2015_battery.c index d2bdbd54f732..4a86c8443627 100755 --- a/drivers/power/cw2015_battery.c +++ b/drivers/power/cw2015_battery.c @@ -355,6 +355,7 @@ static int cw_get_capacity(struct cw_battery *cw_bat) dev_info(&cw_bat->client->dev, "report battery capacity error1"); if_quickstart = 1; + msleep(200); } else dev_dbg(&cw_bat->client->dev, "the cw201x capacity is %d, funciton: %s\n", -- 2.34.1