Commit Graph
9 Commits
Author SHA1 Message Date
Lei Chen 3f876117c5 usb_therm:optimize the usb cooler function
Charging enable in hot usb temp when thermal policy switch.
Optimize the usb cooler function.

Change-Id: I15779e756e3aa362b08377690820236d20ff2406
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2489283
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-01-16 20:59:27 -06:00
Lei Chen e5f26584b6 usb_therm: SDP/CDP should't toggle mosfet
optzimize the usb protection code. SDP and CDP shouldn't toggle
the mosfet.For SDP/CDP type, only suspend and disable the charger.

Change-Id: I1e1acd68cb059ac4086e60ce80c4b3b9ad9f8acf
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2487019
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-01-13 01:44:57 -06:00
Lei Chen 5b1ad1966c usb_therm: add usb_therm toggle mosfet
For penang japan, the charging should stop as the usb_therm is
too high. Thermal control the mosfet to disable charging.

Change-Id: I2855665e56c0edd26f0bc1150321bcf6da808948
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2414069
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-11-25 00:15:44 -06:00
Lei Chen 6a56d911e5 sgm4154x: Fix the build error on devon
Fix,
 build error on devon project

Change-Id: I51dd41d7ab585d1ac5dfb790ca5fcf023fdac129
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2240940
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-13 01:28:30 -05:00
Lei Chen 30a84ca859 sgm4154x:Bring up charger IC SGM41543D
Rhode4G use SGM41543D as the 2nd charger IC.
Bring up charger IC SGM41543D.

Change-Id: Id1eb726b311d1f415942bb15508272a221bd686b
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2238618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-04-12 03:17:11 -05:00
Lei Chen 068ba044e9 bq2597x:retry to read nu2105 id
Read nu2015 id failed in poweroff charing.
Retry to read the nu2105 id again.

Change-Id: I57637e2f666d6142a9563dbb59cea40f6f86542a
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2232735
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-05 21:32:14 -05:00
Lei Chen 0e9ba4e1fb dlkm: fix free irq warning for chipone sensor
__free_irq warning triggered after running command rmmod
fpsensor_tee_spi. Use the matched function devm_free_irq().

Change-Id: I07dc06ea0afbd69827977c76a709ddfc5b39b843
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1837444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-12-29 20:07:56 -06:00
chenl18 37b4aa1a48 fps: fixup kernel panic by calling input_free_device
Rmmod goodix_fod_mmi.ko caused kernel panic, 'Kernel panic -
not syncing: refcount_t: underflow; use-after-free.'
Input_unregister_device will internally free the device, so
input_free_device sohuld not be called.

Change-Id: I8b837ded53a734981744ea2310adc67fafe063f0
Signed-off-by: chenl18 <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1513967
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-16 04:39:57 -05:00
chenl18 0755fead74 FPC: fixed the issue for rmmod and insmod
Free irq and gpio when rmmod.

Change-Id: I791a342da0e1449021a37c6ab5ec5d786855e908
Signed-off-by: chenl18 <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1248316
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-09-28 21:47:04 -05:00