Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 676ea60a authored by Jie Cheng's avatar Jie Cheng Committed by Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: reduce the probe time of driver



Currently when the fuel gauge driver probes, hardware init and
updating SRAM parameters consumes more time because of the
internal SRAM access adding up to the delay.

Move these functions from the probe to a scheduled work so that
the driver probe function can finish up early improving up the
boot time.

Also, move the fg_hw_init routine to the front of the
initialization work in order to ensure that the hardware gets
initialized before the SRAM parameters are read.

CRs-Fixed: 835416
Change-Id: I410be1c2e9093b0f238b2affcee0f7c694a3eaee
Signed-off-by: default avatarJie Cheng <rockiec@codeaurora.org>
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent e9877890
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment