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

Skip to content
Commit f86b66df authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: read SRAM in one burst



Currently, when doing a SRAM dump or a debugfs SRAM read, the fuel gauge
driver does reads in chunks of 4 bytes. This is actually undesirable
because it generates a lot more SPMI writes. It also makes turning on
debug logs for MEMIF reads and SPMI reads/writes impossible, as doing
large dumps of the SRAM will crash the system due to excessive logging.

Fix this by doing the SRAM reads in one burst transaction instead of
doing it in pieces.

CRs-Fixed: 738872
Change-Id: I751755ace699f672befdd1e49213b1c08fe078cf
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent a2ecbfd1
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