power_supply: cw2015_battery: Add msleep(200) when recover from sleep mode
authorZhangbin Tong <zebulun.tong@rock-chips.com>
Tue, 29 Sep 2015 01:36:47 +0000 (09:36 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 29 Sep 2015 03:21:48 +0000 (11:21 +0800)
Change-Id: I66f0ee349622f24646376822948d331922676ad3
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
drivers/power/cw2015_battery.c

index d2bdbd54f732e172f5652aec9b899b70af827efd..4a86c8443627fb4fe87cb93957740d58af016cd1 100755 (executable)
@@ -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",