Commit Graph
7 Commits
Author SHA1 Message Date
xuxj12 6591ba0f33 sc760x:ensure that user configuration takes precedence
user ibat set failed in factory test

Change-Id: I395103e82dd60b5ed5f55a7953222d809fb1b700
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2534444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-03-09 05:53:53 -06:00
xuxj12 f1cd82577b fg: optimization fg batt status
current between -10~10mA read from fg when charger present is invalid,
change batt status to not chargering

Change-Id: Idc1f1e5ed148ea49aa9a539e4014ff4146519460
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516321
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-02-21 21:21:44 -06:00
xuxj12 7720276df2 flip_batt: optimization flip batt charger status
flip battery charge not disabled in factory mode

Change-Id: Iab876cae0d36ac38f9a524cb3f8c22325307867b
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2515025
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-21 21:21:10 -06:00
xuxj12 295c26df84 add flag to ensure shutdown call only once
vbat_shutdown_triggler may run again an again before poweroff really
excuted, it may cause a kernel panic. add flag to ensure
shutdown only excutes once

Change-Id: I1070a9eaef078fa15e01845e53022977ac559b0a
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2401294
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-10-11 07:30:20 -05:00
xuxj12 3489d559a2 change not disable flip charge if enable by chg_en node
enable flip charge by echo 1 > chg_en, but chrg_stat flag need 200ms to
update in delay work. if a delay work is already runnning when
enable flip charge, it may disable flip charge immediatly cause factory
test flip charge current read err

Change-Id: Ib6fd330fb9f9bbd60157f6b16ec032f436056c33
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399491
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-10-10 01:47:13 -05:00
xuxj12 32040dee63 add property voltage_ocv
voltage_ocv is not support on this FG, but tcmd test need it, add this
property and retrun voltage_now instead

Change-Id: Iae588f9f0093ddd4eea77e2a173117d4f64a1b04
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2389294
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-09-22 05:37:20 -05:00
xuxj12 39adeee7ac fix crashed at bm_ulog_print_log
addr of bmdev->debug_enabled should be checked if it is NULL, or it
may cause NULL pointer kernel panic

Change-Id: I31273f9b0144e25fa7eac3ef4eca34a07c0cae70
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2383945
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Submit-Approved: Jira Key
2022-09-15 03:49:46 -05:00