* [PATCH v2 0/2] power: supply: sbs-battery: fix presence check
@ 2020-08-11 6:53 Ikjoon Jang
0 siblings, 0 replies; only message in thread
From: Ikjoon Jang @ 2020-08-11 6:53 UTC (permalink / raw)
To: Sebastian Reichel, linux-pm; +Cc: linux-kernel, Ikjoon Jang
When gpio detection is not supplied, presence state transitions depend
on every smbus transfer result from get_property(). This patch tries to
check battery presence again with well supported command before
state transition.
Changes:
v2: combine get_presence_and_health functions to reuse
Ikjoon Jang (2):
power: supply: sbs-battery: combine get_presence_and_health
power: supply: sbs-battery: don't assume i2c errors as battery
disconnect
drivers/power/supply/sbs-battery.c | 99 ++++++++++++++++--------------
1 file changed, 53 insertions(+), 46 deletions(-)
--
2.28.0.236.gb10cc79966-goog
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-11 6:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 6:53 [PATCH v2 0/2] power: supply: sbs-battery: fix presence check Ikjoon Jang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).