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
Requeue the rx request in case of ether_open
or connection shutdown cases
make sure there is always requests available in the list
Change-Id: Ib3e5425b5fe3306df64594285e5717a1767fd275
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399177
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
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
ili9882_mmi:
Don't use kernel_read/kernel_write for 5.10 kernel.
Use apk for factory test, so delete these functions are OK.
Change-Id: Ifccbb1dd37feec063affa0183c71fcdd427a700b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2396131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Don't use kernel_read/kernel_write for 5.10.
Products use APK for factory test, apk writes result to csv file.
So it's ok to delete kernel_read/write.
Change-Id: Ib6671a3c7ca15468b99787f23359ddf2b58b525b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2396128
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
main charger control charger led by stat pin,control by write register.
Change-Id: Ie026b1b11cf5c1491cd15fd6304490be1335e92b
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This reverts commit 6295c4be3cd07939a46e542237d2ca5bc4e73aa3.
As this patch will cause socket connect fail after reconnect usb
in factory mode, so revert it before we get the final fixing on
SM8550 platform.
Mot-CRs-fixed: (CR)
Change-Id: Ied35f20d075778d4b5a097ff4996af29a1b8228b
Reviewed-on: https://gerrit.mot.com/2399151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Support touch sensitivity in game mode for zeekr,default touch report rate
is 240HZ and high report rate is 360HZ.
Change-Id: Ifa7d82cc11774212e7c6b3cf9bee3517e417d031
Signed-off-by: wenge zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2396020
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
f_usbnet driver did not handle the skb allocation
Or enqueue failure cases, the phone rx from PC bulkout endpoint
will stop if all the rx requests in the queue are all failed
Reschedule the rx in another workqueue so it will not stuck for ever
Change-Id: Icf0835fe5fad5925dd256649fd6badc772c0620d
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2392727
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianhong Wang <wangjhn@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Add a macro to control if cli_gesture created,only if CLI touch supports
double tap gesture,this node should be created to receive gesture type
notifications.
Change-Id: I2a877b4257c758c1129c1bb3353cfbe59f2a452d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2391205
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
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
Objective is to bring the slider down to COMPACT position on power
up and power down.
If slider is not in COMPACT position at power up driver will attemp
to determine its position and required direction to move it to
COMPACT based on data reported by sensors.
If slider is not in COMPACT position at power down driver won't rely
on sensors data since there is no mechanism guaranteeing that SPLI
core and sensors HAL will remaing running until slider gets to
COMPACT position. Thus entirely based on pre-defined sequence
assigned to the current position at power down.
Change-Id: Iba679c7254df5edfc061baddd3e565a5d2939a19
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2383456
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Aw8695 add four level driver strength when set different duration time and wave sequence.
Product can use this feature depending on AW8965_VIBRATOR_SHORT_WAV_ENABLE.
Change-Id: Id20acb5497cfc7ca46911771c39f514b0cf23af4
Signed-off-by: wuchao13 <wuchao13@motorola.com>
Reviewed-on: https://gerrit.mot.com/2386882
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xinmin Fu <fuxm1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Add single tap and double tap gestures support for focaltech touch IC,
gesture type receives from touch mmi class.
Change-Id: Ib67d221eff3217b46f9b423b84426ef44f774826
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2384855
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
1.Add cli_gesture sysfs node on mmi touch screen class,use this node to
notify which gesture type that user set.
2.Create another tap sensor named s-dt-gesture,use it to report CLI
touch gesture events.
Change-Id: I9e954a00a2a5f37ff54be08d99c0b904516a57b7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2381634
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@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
Because pinctrl names are same with another touch driver and GPIO pin
numners are not same,so make compatible for another pinctrl name.
Change-Id: I42ad2a1f39f108384ee64585b24c5855a34f59e7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2379912
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Added sysfs interface to set max PPS for FULL and PROLONGED
sequences. Also max PPS for 2.8 pitch has changed to 1800
Change-Id: I76d6a000f9b99c30727916368df940dd5ab163fe
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2377673
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
As HW requirement, 50W dock fan speed should be 4000 r/s. Or
there will be some problem for noisy or structure stability.
Change-Id: Ifd686225940fd37e313f5a7eeb2912c4d35768d5
Reviewed-on: https://gerrit.mot.com/2376077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the firmware and ini config file via request_firmware() and
write test result via procfs node.
Change-Id: I7fdfa40f454a6fcb9ce69d0e4a9cd1b7caf9a62b
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2375413
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Added handling for the following operations whether they time out
or come short, e.g. incomplete in some way or another:
1) initial position detection and transition to known
position if necessary
2) transition from one known position to another
In case (1) when initial position cannot be determined, enforce
withdrawal to COMPACT.
In case (2) when destination position is not reached at the end of
transition sequence, keep driving with max torque. Panic if high
torque transition recovery fails to allow for traces collection
Change-Id: I990888baa2f14919793934eb5dbf9d255d2e5c20
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2374097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Since some platforms don't have BOB power supply, if no BOB power
source, the BOB on schematic is stands for connecting directly to battery.
Most of WL286xC chip selects BOB as input power supply for LDO2~LDO7,
when software doesn't have shutdown handler, LD02~7's input power supply
is always there, there will be high risk of current leakage after phone power
off, so force disable all ldos before phone power off.
Change-Id: I576ae332befd8285896c1373262cfb464f8e0402
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2373662
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Pengfei Qiao <qiaopf1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Setting time out for a transition creates a noticible delay between
end of sequence and necessary corrective action. Instead driver will
maintain a flag to indicate whether position was properly detected
based on sensors data or not. Corrective action will follow
immediately upon sequence ends and flag still indicates that position
was not detected.
Change-Id: I894f7c0638760c79dc0780a42f46bda6aadc63c9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2367357
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key