Commit Graph
4 Commits
Author SHA1 Message Date
Bruno Oliveira e891eb4643 Avoid usb detection at _FT8726 touchscreen driver
WHAT: This changes restrict the recent impletementation of usb detection
        at focaltech fingerprint driver so it does dot affect _FT8726
WHY:  At current implementation of usb detection, _FT8726 causes a 
      kernel panic when the USB cable is connected. _FT8726 cannot set
      the register that fts_mcu_usb_detect_set expects it to have, so it
      holds a mutex, fails to set the register and panics at 
      ___might_sleep. The support of us detect is handled by 
      FTS_USB_DETECT_EN, so disable it for _FT8726

Change-Id: I7be8eff1b9b23190a5165f6486bbfd0959eae6b4
Reviewed-on: https://gerrit.mot.com/2675494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Pedro Tadahiro Kaneko <pedrotfk@motorola.com>
Reviewed-by: Claudio Junior <claudioj@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-17 06:15:52 -05:00
Bruno Oliveira 299187823d Implement wlc_tx_capability for cps4019
WHAT: Implement wlc_tx_capability to report if the current charger supports led
      and fan. Use the same op_mode flag that was used at wlc_fan_speed and
      wlc_light_ctl to identify the support.
WHY:  Wireless Charging HAL 2.0 needs the wlc_tx_capability to identify which
      feature is supported, and that was not needed at HAL 1.0, so miami could
      control the 50W charger. After upgrading the HAL, miami could not control
      the 50W charger anymore, which was a regression.

Change-Id: I312d7b77ca6d79e41d420e87e024842e0c22520c
Reviewed-on: https://gerrit.mot.com/2649794
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-07-11 09:03:55 -05:00
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