summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-10-03 18:33:19 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-10-10 09:44:07 -0700
commit110f63422be5a7d2d046e87cc143e9af106de8cd (patch)
tree19c125d779443e3cba93e753b4f78f148e6c1d62 /lib/mpi/mpicoder.c
parent906f1b29ae5203d34556c20b2b4e32557aa902aa (diff)
qpnp-fg-gen3: fg-util: Do not allow SRAM access when battery is missing
When the battery is removed and a strong charger is plugged in, device will be kept powered. However, because of missing battery SRAM access over IMA can fail leading to errors. Eventually, the errors will go away when the battery is inserted again. However, if the user tries to access SRAM registers or bms power supply properties, it can cause further errors flooding logs. Handle this gracefully by returning an error upon battery missing is detected. CRs-Fixed: 1072401 Change-Id: I764442548cb076dad89856d75394ef9cf355f83a Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions