Stop repeatedly waveform playing when receive a stop command.
Also cancel the 120s timer when stopping vibrating.
When stopping waveform playing, the 120s timer to safely stop
vibrating also needs to be canceled because it becomes no use, and
it might disturb normal operation when it's triggered later.
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: I544ec1c8c391bf5468b22bdd0095a77b9d43d222
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611611
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1614428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Play those waveforms repeatedly with wave id higher than 200;
Stop the repeatedly playing after 2 minutes automatically to avoid
the problem when no stop command is received as expected;
As for the Code-Review-1 of missing propagation to branch(es):
bq-shm2018
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: Ic9201ffbe726de66a513b6ea501b4e3bf99beef1
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1577403
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1611551
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Adjust the way to identify factory bootloader to decide
whether SW is factory SW version.
When device in factory mode may be identified as factory version
in previous implementation.
Change-Id: I38b4fe9ea12d70b8e07416110c2d7e8a5bbf994a
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1616461
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
When frequently making a phone call and declining it, the waveform
playing sometimes would fail to work due to the limitation of i2c's
transmission speed.
Awinic provides this solution and it not only works fine but also has
been integrated to all their new software releases, even for aw8697.
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: I6fea17ac70b0781e4e395c3f3c4e9bd2859d6f66
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1616513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When stopping waveform playing, the 120s timer to safely stop
vibrating also needs to be canceled because it becomes no use, and
it might disturb normal operation when it's triggered later.
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: I5f5b65dfc930d252c89183c2bf22f7b8cae110aa
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1613915
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Stop repeatedly waveform playing when receive a stop command.
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: I3147d49c1d9d47dd8586250d9fd2155cd2ab0698
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611611
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Now we need ic_ver node to points out Product ID, Build ID and
Config ID for moto care, so add /sys/class/touchscreen/NVT-ts/ic_ver
for this requirement.
Change-Id: I9b481abb9c399077212739eb0f79e4f97b03ed84
Reviewed-on: https://gerrit.mot.com/1606735
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
CRs: (CR), Add a thermal sensors temperature monitor policy
it can listen to the specified thermal sensors and
report their temperature when the power supply was changed
NO_PROP_NEEDED: if needed.
Change-Id: I09ff63c12c9723a00b992018cc2d693d143bd26e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1424608
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1606687
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
- Now we need ic_ver node to points out Product ID, Build ID and
Config ID for moto care, so add /sys/class/touchscreen/NVT-ts/ic_ver
for this requirement.
Change-Id: I9637276ccd968008b40d5f10609c2d4a52f5e502
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1606371
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
If "mmi,enable-gestures" is not configured in dtbo, do not enter the
gesture_suspend function, so that prevent access to null pointer.
Change-Id: I689fecdd9bbf9f31e13dfa780d614d6c53774c5a
Reviewed-on: https://gerrit.mot.com/1600197
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add 1-second long vibration after waveform library load
as a boot-up vibration. This is distinct from the f0
calibration pulse.
Change-Id: Ic31062da9cbcd163f9af3882e7cdd2bcc389020c
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1593615
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Touchscreen class driver suspend/resume callbacks updated to properly
enter enter/exit suspend mode.
NO_PROP_NEEDED: this driver only used in Smith
Change-Id: I12e786077bebd08f3011e128b8df665d5ec9d53b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1596492
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
1. After in_susped is true, release all touch events to avoid receiving
touch events and not releasing them while the touchscreen is suspended.
2. Only release the finger when the suspend is completed, not in the
pre-suspend phase and the suspend phase, otherwise it will cause
multiple down and up events for one event.
Change-Id: I0b061468a4b22b7231c4e32785ba8c63041315f3
Reviewed-on: https://gerrit.mot.com/1595399
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When the release event is received, the value of the type should not
be modified to TS_COORDINATE_ACTION_NONE, it should always be
TS_COORDINATE_ACTION_RELEASE.
Change-Id: I871567c0a32ce30611f6e50d86e9c5af06353360
Reviewed-on: https://gerrit.mot.com/1597584
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Because sometimes the event of singe tap does not take long
enough for the upper layer to process, adding wakelock extends
the time for the system to enter sleep to ensure that every event
can be processed normally.
Change-Id: Ie01c83eb6d4331dc1ab38dd1d4e33fc3aae3a50f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1594839
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The wake lock is initialized too late if we boot up with the
charger attached. The phone will still charge, but there might
be unintended side effects of trying to sleep while attached
to the charger.
Additionally, re-run aicl in this case to ensure the current
is correct.
Change-Id: Ic18c6581a3ffa9e172d24d97604f7d93baaea516
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1590031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add dummy function so we no longer get "Invalid sensor class
delay handle" errors
Change-Id: I7b3fd34e485ffff58736b3b58e660bdb276085ad
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1585831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Let touchscreen class do some gesture work before vendor driver code
repot event.
To accomplish some gesture algorithm, touchscreen class need report
touch events and skip vendor's events report.
Change-Id: I42fe9df4c0190449b0052a9f18623db1d2514285
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1567169
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Import a new gesture, poison slot.
When the report point is in this supression area, and the Y-axis
coordinate changes in little range over a period of time.
This is considered to be a point caused by the user's grip at edge.
Temporarily close all events report function for this slot from driver,
until this slot receives a release event or touch screen suspend.
Change-Id: Id7541aab8314e611d6943ed081f07776e5939f1b
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1584617
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Clean up focaltech_0flash_8756_mmi because it's not really used
in any of our products now.
Change-Id: I585df913007e0bd3fc190a9a2851008e0a388109
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1583839
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Per discussed with vendor, we don't need to wait until the init code
of display is downloaded to start the touch resume work, so change
the corresponding event when touch resume.
Change-Id: I4dbc09feaad4e2022366cbd6c5f8cfdb118d6374
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1581976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
According to Astro audio calibration statistical data in ODM
Ontim factory, set 7.3 as speaker default impedance value.
If aw_cali.bin is not exist, use 7.3ohm for aw882xx speaker
protection algorithm.
NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.
Change-Id: Icc2b8cd24b2fd6547b8244a6c987122c1648d7c1
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1582361
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Play those waveforms repeatedly with wave id higher than 200;
Stop the repeatedly playing after 2 minutes automatically to avoid
the problem when no stop command is received as expected;
As for the Code-Review-1 of missing propagation to branch(es):
bq-shm2018
NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.
Change-Id: I1398e0017240b6ea70a7e05b73f65776172f2250
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1577403
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
When upgrading from a firmware that does not support this function
to a new firmware, reading data will fail, so set the default value.
Change-Id: Ic15b5d227b2d90d86a3d96cd8c21ccb94d69294a
Reviewed-on: https://gerrit.mot.com/1572762
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When the FPS is in the monitoring state, the baseline is not updated
when touchscrenn resume.
Change-Id: I115403a961504a7a73b625f32a8c1c64e90d99a5
Reviewed-on: https://gerrit.mot.com/1572727
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
ts_mmi_touch_event_handler is running in irq context.
Do not wait mutex for long time.
If mutex can not get, just enable update baseline next time.
Change-Id: Ib943dfbebbd29e521c66360ff97d46ccc9dcb99f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1572687
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Update the flip registers after the reset has been performed
and the global dev has been set, otherwise they will not get
set until a flip is performed.
Change-Id: Iabb1290adcdc292fffe25fe427c1a5635958b09b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1569226
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Turn off the sensing before updating for flip open/close.
It is possibly leading to random lockups.
Change-Id: I09b48a36adc7ca0d0514e9af4d8ef881c118d6b8
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1568380
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add a generic adaptive charging module to be used with qcom
chipsets. This should function independently of any
charging module that might be used.
Change-Id: I556c672e9f1d68df2163749099d2ef2fb2e2d479
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1552136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
input_unregister_device and input_free_device should not call twice.
And after device be freed.
And devm_kfree is no need call after device freed.
Change-Id: I23fc92c196b33b029c6da0924cb468f2c63a3597
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1570151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add general configuration commands to the list of chemid commands that
are executed in order during fg_update_bqfs(). Add temporary function
for writing CC_Gain, as the i2c are not documented and require bqstudio
to generate.
NO_PROP_NEEDED
Change-Id: I0ff796ea263af664aadedc692946d20035c71dc5
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1564812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Make driver reporting full firmware version info in the kernel log
on probe and upon firmware update.
Change-Id: Ide1ea8dabd2fbfc804cc3043e56fb2a56f9db5da
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1564546
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
FOD sensor will depend on touch event to trigger fingerprint
authentication.
When device is waken up, and user put finger on FOD area just when touch
IC is resuming, IC will update baseline and set current finger on screen
as touch baseline. In this situation, no touch event will report.
To fix this issue, touchscreen class will disable touch IC baseline
update function by FPS working status.
If FPS is working, delay baseline update to FPS stop working or get
touch up event.
Change-Id: I16b964c71bf1adc71832a8d25c74b7734dd88d20
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Control IC baseline update by driver code.
This is useful to fix no response issue that finger is already
on screen before IC resume.
Change-Id: Ic23d169d0fb14472ab29d3bc93f1a4be827f18f9
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549505
Reviewed-by: <litong20@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add fingerprint notifier chain in kernel module.
When fingerprint sensor is in working mode, HAL will set dev enable
status, and driver will broadcast this info to FPS notifier chain.
Change-Id: I075cf59aaf031d491f6e7edbe11ed509786e73aa
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551681
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiuliang Cheng <chengql2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
External hardware triggering was being enabled, leading to
occasional errant vibrations
Change-Id: I227564de70e9e9a036b8cebca6129255591bc194
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key