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
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
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
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
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
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