something worng in sx933x_sar DLKM ko
need revert this befor fixed the error
This reverts commit fe4ce396d7c7029467e08e83c90fe58a61ff5314.
Change-Id: Iad3ff050a58ec04f7b61b2efe6e6d1851c3cda1c
Reviewed-on: https://gerrit.mot.com/1248677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Program such as nanomix allows out of bound input
to mixer, which may crash kernel.
This issue is found by Google test (LENOVO-848).
Add out of bound check for mixer to prevent
kernel crash.
Mot-Crs-fixed:(CR)
Change-Id: I4c0437cfd2d2570a9c9489db500cffc513f27c43
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253083
Make OTP memory precious.
OTP memory should not be read while DSP firmware is running,
according to Design Team (XIAM-55).
By changing to precious, OTP memory can only be read by
driver, but not by debug sys file system.
Mot-Crs-fixed:(CR)
Change-Id: Ie394373cb73bc443a1f1fc97e9b626c997d8a4fa
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253049
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253079
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Distortion can occur if the RX and TX paths do not use the same
frame sync signal. This forces the FS1 and FS2 signals to
use the same frame sync signal and also ensures common sample
rates between the RX and TX paths.
SQA-1135
Mot-Crs-fixed:(CR)
Change-Id: Id7f1dbbcca6247f0ad22b631fc6d499fc7e9827b
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253047
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253077
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
cs35l41 supports both DSP A and TDM 1.5 modes.
To distinguish between the 2 modes, rename TDM to DSP A mode,
which is currently used by driver.
SQA-1109
Mot-Crs-fixed:(CR)
Change-Id: I0636c067ec1845a1180e40891c08d9818f7f7b08
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253044
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253074
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
as ilitek vendor suggested, here we extend the g_flash_block_info to 6.
and this will compatible the other products.
Change-Id: Ic33de3d3f32b43a7ee9f5f80c1070d93bf7d44ab
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253027
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Vibrator HAL will set activate as 1 after set the duration.
If we cancle the hrtimer, it will cause vibrator can't stop as the expected time
until vibrator HAL turn off the vibrator.
Change-Id: I2d5635c766ef0b30d14170c1dd82a25d6c2481aa
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1251886
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When Charger is removed the Switcher can reverse boost back
out the USB port. Add a check for voltage on the USB port
so that this state can be cleared.
Change-Id: Ib20d8d91a08d1f40ce5ba3bc3ec41ffa8e930c85
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1250814
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
After bq25997x is removed, mmi_pl_charger driver will still
access bq25997x power supply pointer, which will cause panic.
To avoid this situation, get the power supply before use it
at any time.
Change-Id: Ia1672fc458dce3c86647b8e31c57ac283b910fa2
Signed-off-by: yanyh2 <yanyh2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1247691
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
As for the vibrating fail issue is difficult to reproduce, add debug
codes from awinic to find more if it's reproduced by user.
Change-Id: I588875a1baa201fb2088f0fdc0ac4dc27e0537a7
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1247441
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
SoC now supports autodisable muxes so we can use these instead
of the handcrafted version inherited from older kernels.
Mot-Crs-fixed: (CR)
Change-Id: Idbd97fbc9d99a2b18e8ca6b14f20bf20b29b4c05
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Reviewed-on: https://gerrit.mot.com/1246554
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 6a4aa23a4a72bacab39fd23749937683ca6db2a9)
Reviewed-on: https://gerrit.mot.com/1246647
pre_finger_mask is overwritten to 0 when all finger leave.
So input_mt_report_slot_state will not called in himax_finger_leave func
Use old_finger instead.
Change-Id: Ic2db89273ea8fd91e88d1ce0dd9774f6b276d051
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Get the DC Power Supply and then check the PSY
for POWER_SUPPLY_PROP_PRESENT. This will signal
to the MUC that the AP is seeing DCIN.
Change-Id: I9048b6f935af68783c927bdc6c420e929857b50e
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1245816
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
put sensor_class.ko and sx933x_sar.ko to TARGET_OUT_VENDOR
default will put in system
Change-Id: If5e8d483f8f78137f4caa60d7e49a2dedb1800d3
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1245176
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Master Yoda
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Add new flag enter_sw_loop to ensure enter switch charge loop after
quit bq2597x charging.
To prevent unstable switch between the parallel charging and pmic
charging.
Change-Id: I24e7ea365eb2a2f3b30eaeab351f0282c544adb8
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1244541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
WHY:Initial value of 0x11 need to be changed and sleep for 1000ms
HOW:Change with new implementation
Change-Id: I6de5a138b78400c47cb1b99e9eca65ddc7448c1d
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1244373
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
-solve Capsensor insmod fail issue
disagrees about version of symbol sensors_classdev_register
disagrees about version of symbol sensors_classdev_unregister
Change-Id: I1785ccb317a24e04fc23f3a091844f05f00c13dc
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1244372
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Yi Cao <caoyi1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This is propagation of the patch submitted under (CR)
into DLKM utags driver
Change-Id: Ia0321e9560f0afddd19f31326008da0714304afa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1243363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Switch from a tty interface to a char device
so that we can implement message based reads
instead of a stream.
Change-Id: I23e7cb9bedcb51d857c3159b64b81f30574c132d
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1238344
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Master Yoda
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
TFA9871/74 doesnt provide a linear digital volume control, it has 2 levels,
the first is I2S Input Level(INPLEV) in Register 02H,it can be set 6dB or
0dB(default). The second is I2S gain attenuation(TDMSPKG) in Register 61H,
it's the gain of the Class-D output can be amplified btw +6dB and +21dB,
contains 16 steps.
Change-Id: I64f0426cac3829b0419c2e52358b043e749f2625
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1237458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
With DRM signaling, on bare board level a dummy primary panel still
exist and thus probe and enable status reported. This patch is
adding panel name comparison to distinguish dummy and real panels.
Driver will not be doing HW init if it detects a dummy panel.
Change-Id: I347c53ed481a9b4c0d35668118d0ab9e56af5105
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240533
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Make the log info can be configable and printf the info which vendor needed
Change-Id: I1df779d7bd2092c441644fc868ceb7bc0e67dd60
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241013
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
MMI version of qpnp-power-on that uses KPDPWR Bark.
Works with qpnp-power-on so there is no need to disable
its config in the base kernel.
Change-Id: Ied2d04db1ec1687a5cf37be7ef908ad1382d14d9
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
This change adds support for DRM signaling of touch IC probe and
suspend/resume
Change-Id: I8a237216c492ed79b259314b064f9bb4281272e1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key