Commit Graph
2 Commits
Author SHA1 Message Date
Bruno Oliveira b3c1b374b9 for hiphi, skip charger confirmation
WHAT: skip charger confirmation for hiphi
WHY: this feature was never supported before the upgrade. After the upgrade
         moto qti_glink driver was modified to implement charger confirmation.
         If device has the flag SKIP_QTI_CHARGER_CONFIRMAION, use the old
         implementation

Change-Id: I041c615506d9df4ced0f4add6ca05967e5d94be7
Reviewed-on: https://gerrit.mot.com/2497685
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Douglas do Vale <dtvale@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-03 04:40:25 -06:00
Bruno Oliveira 352a0f8435 Fixing factory kill function
orderly_poweroff is a function from kernel/reboot.c that does not work since
poweroff binary was removed from /sbin/.

Factory Kill still worked because qcom smb5 power supply driver disables
motorola factory kill and implements its own (with kernel_power_off). Since
they removed their own implementation it falls back to the broken one.

This commit replace orderly_poweroff by kernel_power_off the same way qcom
used to do.

Change-Id: Iee78e729add3e31b29c192adc7bcfbab46b1462e
Reviewed-on: https://gerrit.mot.com/1753065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-09-18 06:04:54 -05:00