Commit graph

893 commits

Author SHA1 Message Date
chenlj2
6c231e0ffe DLKM/sar:reduce kernel log foot print
optimise the log output mechanism to reduce kernel log foot print.
Limit number of print messages in run time. If necessary, debug
messages can be truned on dynamically through kernel debug interface
echo "file filename.c +p" > /d/dynamic_debug/control,
such as abov_sar_mmi.c

Change-Id: Ibff358b0c6db949b9dacfa3fbe14f4fe574eef6d
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1455180
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-11-14 23:52:05 -06:00
liuyc20
4f663041e8 vl53l1: fix xtalk calib data abnormal.
customer.algo__crosstalk_compensation_plane_offset_kcps = -1907257729
Sometimes get a huge xtalk_calib data. it maybe because glasses are too wonderful.
The data will recovery after retry xtalk_calib test.
For this situation.Setting a default golden data to xtalk calib.

Change-Id: I6d3d2b35ed7ef56502ce13e9446682d94ea36bcc
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1456036
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiu Du <duqiu2@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-14 22:30:40 -06:00
Ryan Lattrel
2cd4360288 p938x_charger: disable wls on usb insert
Disable the wireless charger when usb is inserted,
and turn it back on when removed.

Change-Id: I6ffb42ebc63c3a7d4b365351ce36e93ad7a60445
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451620
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-14 09:34:06 -06:00
zhouwl
252f409602 ASoC: add APIs to access digital volume in tas25xx algo
In order to implement speaker volume ramp feature, Ti ask us to
adjust the digital volume in algorithm, add API functions.

Change-Id: I3e27bf5be4c11bc79a06fc9dd286f7e3dd75dfea
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1450740
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-13 19:55:42 -06:00
Dharmesh Patel
7c1ccc6b4f DLKM/Sar: optimise the log output mechanism
Change-Id: I67a251b3916380f394cf2b8d27ea723a11263717
error: sx933x_sar.c:1151:5: warning: too many arguments for format
fix: for now removing __func__
Reviewed-on: https://gerrit.mot.com/1454846
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-13 11:22:53 -06:00
cmsantos
0de5255283 power: bq_27426_mmi: FG driver port
First port of BQ27426 FG driver, based on Defender project.
This version handles two different FG IC's.

Change-Id: I0f06b90ffafd35780c067d995d9a7738d48db567
Signed-off-by: cmsantos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447519
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-13 10:11:52 -06:00
chenlj2
2cc02b784d DLKM/Sar: optimise the log output mechanism
add error log output when driver work  abnormal
add log output when the driver is loaded

Change-Id: I1ce2f4f4221f22ad41a4a8a6af42effeaaf976d6
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1453215
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-11-13 02:12:47 -06:00
Ryan Lattrel
d86bd726b8 p938x_charger: fix tx mode conflicts
When entering tx_mode the system reports it is charging,
fix this by forcing dc_in_en to be off and also set
dc_suspend.

Additionally, do not allow entrance into tx mode when
attached to a charger, and force tx mode off if a charger
is attached while it is on.

Change-Id: I2732db6cdcadc613fddaa6e29679ba3f35a728fe
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450499
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-11 13:23:11 -06:00
Ryan Lattrel
65e562459f qpnp-smbcharger-mmi: fix wireless charging state machine
State machine doesn't work with wireless charging because
it does not trigger the charger_present variable.

Account for this by also checking for wls online.

Change-Id: Ib7ce5d3ec1374df614c196329820b766032ad5bf
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451157
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-11 10:50:24 -06:00
Konstantin Makariev
94adf3d4bf sec_mmi: make Racer_turbo using stubs
Bringup Samsung LSI touch in Racer_turbo

Change-Id: Icbe102dd1eb9da96e518d6fb77eaeca17315d69c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451123
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-07 15:58:12 -06:00
Haijian Ma
20ee02bc1d mmi: fixed build error
fixed build
error

Change-Id: I6bbd5dff34ed09f5f35a836954a71f31b3017f16
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450773
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-07 05:07:05 -06:00
Haijian Ma
3ab7cf9976 mmi: disable usbin OV irq in factory mode
pmi632 trigger usbin OV irq frequent in factory mode, so disable
OV irq in factory mode.

Change-Id: I7dce3ce91bb57f25ff68b8e3b2c210b4e49ac1cf
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450689
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-07 03:42:17 -06:00
litong
0648d2d328 Add racerl to Target product
TP:
Add racerl to Target product to finish
bring-up of sec_mmi touch screen

Change-Id: Ib2e4cce43916f278263f19fcb69fd8389182fd01
Reviewed-on: https://gerrit.mot.com/1450086
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-07 03:37:05 -06:00
wengjun1
d8f62a4f2b DLKM: touch: Improve novatek 0flash driver
- Add interface for RF desense test.
echo 0 > /proc/nvt_monitor_control,touch keep in active (Normal Active)
echo 1 > /proc/nvt_monitor_control,touch keep inactive + doze (Normal Idle)
Press power keep or let phone enter into suspend, touch keep in sleep or power
Off  Mode,

Change-Id: I20d6103a605c4f8775b6f0c5a3eb60c1e2ef29d2
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-07 02:59:36 -06:00
liaohj
10de9bfaa9 tas2562:fix complie fail.
sofia_row:audio:add ti2558 brown protection function
fix complie fail.

Change-Id: I872af492dcb1a576d0316ed57e65e664a50d0e75
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1450637
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-07 01:00:11 -06:00
liaohj
fb5e35ab7b audio:ti2558:add brown protection function
add ti2558 brown protection function
1. currently just have limit voltage setting:
a.ti,lim_th_max is the start limit voltage, when
voltage less than the voltate,
smart pa will decrease gain step by step.
b.ti,lim_th_min is the immediately limit voltage,
when voltage less than the voltage,
smart pa will decrease the min gain .

ti,lim_th_max & ti,lim_th_min defined at product dts.

2.how to enable.
we can set TAS2562 BROWNOUT PROTECT ENABLE On to mixerpaths.

3.when HW test the voltage ,we will set in dts and enable by mixer_paths.

4.If HW need to adjust the min gain, need add more code .
if there are the request ,need to achieve in the future.

fix some no function.
1.fix tas2562_codec_read & tas2562_codec_write no function.

2.fix Amp Output Level no useful.

Change-Id: I6e4be083063f009246d3a4a478c22fa6aee8467f
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1435926
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-06 23:59:45 -06:00
Ryan Lattrel
9d2273b8d9 p938x_charger: replace atomics with bits
Replace all atomic flags with bits, and ensure that
no one can call __pm_stay_awake twice with out a
__pm_relax first.

Change-Id: Ibabbd2991b7db3b3e4a08bfee621f8465f01c0bb
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450299
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-06 14:43:46 -06:00
Ryan Lattrel
96aabd67e1 p938x_charger: update on attach, increase voltage
Update power supply changed on attach to alert the
qpnp-smbcharger-mmi driver.  Also add getters so
smb5 driver can get wls current voltage.

Additionally, increase the EPP/BPP maximums to the
real expected max.

Change-Id: Ic03e51d6de74d1c2b8caffe4d00eed488f791519
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442838
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-06 14:43:42 -06:00
Ryan Lattrel
7904c427af qpnp-smbcharger-mmi: add wireless charging
Add wireless charging recognition to the smbcharger module.
When a wireless supply is attached indicate a normal
charging rate.

Change-Id: Iea39f5af9924b8759bd80e55b04b9d66de0a3557
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-06 14:43:37 -06:00
wangyq13
2188d41c89 nova_0flash_mmi: increase the size of fwbuf
Increase the size of fwbuf, there are some dummy bytes when do
spi read and write, cause kasan errors.

Change-Id: Ifab4c686c4b056ed2327c6b43c446f49be94b27a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1449952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:33:52 -06:00
haojl2
968871325d nova_0flash_mmi: enable irq by gester status
TP:
resture irq based on gesture function status, not by sensor flag.
This can make sure TP works normal all the time.

Change-Id: I095413b29d63319dda300c3b5f3c24e9e703416f
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit 920337119a66daba4413d7eade7dc1885b2ec8f7)
Reviewed-on: https://gerrit.mot.com/1448176
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:33:47 -06:00
haojl2
1b609ecc23 nova_0flash_mmi: notify firmware when usb connected
TP:
When USB connected, notify this info to firmware.
This will help firmware to handle ghost touch issue.

Change-Id: I86ac9a721eb6fdca3cb3a9c38d1b55290f6b8175
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:32:54 -06:00
haojl2
ac8b973dac nova_0flash_mmi: update fw in thread
TP:
When TP resume, update firmware in thread.
This will increase screen on time

Change-Id: I956ac5c40337e0d635974e274d334c7098d42dc5
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit a00b905f2606315cba8928d7d24ac1fb10013b07)
Reviewed-on: https://gerrit.mot.com/1448174
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:32:46 -06:00
huangjq9
decf93e1ba stylus_pen: enable interrupt handler after wq inited
- enable hall's interrupt handler need after workqueue inited;
   - fix the stylus_pen probabilistic cause of the kernel panic
     at startup.
- optimize the hall drivers's destruction process;

Change-Id: I02f455465e089e7822dca7f663c12fe955ea7603
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449781
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-05 23:55:14 -06:00
Konstantin Makariev
11e9474c93 aw8697: add vendor suggested kernel driver
Awinic 8697 has unique features and is incompatible with existing kernel
drivers.

Change-Id: I1507b1e0a43c1c52a8c7663189d878f5d7cdd98f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447947
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-04 12:49:19 -06:00
Konstantin Makariev
791693adc8 msm_drm_notify.h: keep in dlkm area
MMI drivers use DRM notifications, so keep include files in DLKM
area.

Change-Id: Ie631ef2c7bcea77d2960a280eac51eb0aa159596
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key
2019-11-04 08:21:13 -06:00
yanyh2
5ab076b7d2 add PM7250B_SUBTYPE definition
Add the PM7250B_SUBTYPE definition in case Kernel qpnp-revid.h
does not define it in some platorms.

Change-Id: I7e32ff332dfb13ac0fc0387a42dc5ae596bf4d00
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447619
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-11-01 03:10:20 -05:00
yanyh2
f74a17a92a correct the charging state enumeration
There is no FAST_CHARGE_V5 for PMI632/PM8150B/PM7250B
so remove it from the definition.

Change-Id: I6b77ad9e947e6dec83059787e78b995c83e14d21
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-11-01 02:10:21 -05:00
yanyh2
868208ff28 support PM7250B
Add PMIC subtype PM7250B for battery charging
on SM7250 platform products.

Change-Id: I35d3c3a7aa7144b8ca3cd68dce4b75dce4b539e8
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
2019-11-01 02:10:13 -05:00
wangyq13
bd87473f10 himax uses two firmwares: daily use and factory
himax_v2:
Himax uses two firmwares: daily use and factory.
Daily use firmware includes more effect and gestures, so it's bigger.
We cannot merge daily use firmware and factory firmware,
it exceeds IC sram limit.

Change-Id: Icf2574bc9fbb7e20558b17dee3e898b7a96da0c3
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1447041
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-31 04:27:00 -05:00
wangyq13
a67591eff9 himax: merge patches from vendor, fix some potential errors
- set diag_cmd to 0 when resume, because when use adb to read rawdata,
  diag_cmd may set to other values, cause tp no function when resume
  if not set to 0.
- Delete FAKE_POWER_KEY_SEND, becuase we use single tap, and not send
  power key event.

Change-Id: I01c97ccb5b8734694695fd1f6e2acb2ab9e565bf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1446449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-31 04:26:55 -05:00
liuyc20
9a990d58ea vl53l1 driver-version update to 13.1.1.2129
change list:
update vl53l3 tuning setting

Change-Id: I71c6d85efec5bb6b565fa320bdaabab9c3f2b994
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1427656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-30 22:07:18 -05:00
Konstantin Makariev
b50e5b65f8 goodix_gtx8_v1430_mmi: fix kernel panic
There are 2 failure cases when core data structure gets released
and external modules have no knowledge of it. Kernel panics
attempting to address memory that was released already. This
change ensures core data pointer of external modules structure
only valied when device probed successfully.

Change-Id: I4d2ddbb9c8010aba113afd5bff56a1496502bcd1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1446705
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-30 16:04:39 -05:00
Konstantin Makariev
5e5e732df9 Revert "(CR) goodix_v1430: load external modules only when probe succeeds"
This reverts commit b5745152b3a6f696506c7c28ad3431b0a9c6078e.

Mot-CRs-fixed: (CR)
Change-Id: I24feaadc62c435ffc60280a654abe7c97f7d3b00
Reviewed-on: https://gerrit.mot.com/1446704
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-30 16:04:18 -05:00
Konstantin Makariev
d6815c52e9 goodix_v1430: load external modules only when probe succeeds
Driver loads external modules asynchronously and keeps loading them even
when touch IC not present. This change will flag to insert routine
whether to keep loading modules or not depending on probe results.

Change-Id: Iade575c85d9760a4f76b21f18752f6c2535c0146
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444591
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-30 08:25:25 -05:00
Haijian Ma
bc7bd5087b power: revert "add work for charger type correction"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c
so revert it in dlkm

Change-Id: I28f058fb2b074b52b40bf3df614b88cbbe03d3ab
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445264
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:42:49 -05:00
Haijian Ma
6b50e2ea72 Revert "(CR): charging: fixed multiple rerun apsd"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit a0c71ac3b034f0cbb6a600047851455da65b9b1f.
Change-Id: Ie312ace3d33bbf384abea29c51de6949888d894d
Reviewed-on: https://gerrit.mot.com/1445263
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:54 -05:00
Haijian Ma
050bd692b6 Revert "(CR): charging: fixed logic error"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit b1102eb24c2caa51f8c5138aadb1ac3b2b7225a9.
Change-Id: Ieaec244e6036d9a9522290171635082f9339fb88
Reviewed-on: https://gerrit.mot.com/1445262
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:23 -05:00
Ryan Lattrel
0d96780b08 p938x_charger: return chip values with 0x
Return chip values with an 0x prefix so that the bash
init script can compare hex values with > and <.

Change-Id: If3c1ef37acf550433d114718a66b248d7b1e5e32
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442938
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-10-28 13:23:39 -05:00
Curtis Porter
6218ed77dc power: fix wrong charger presence detection
L(CR) (CR) we need to make sure to set intval
to 0 at the end of chrager presence detection because
it can report incorrectly while in sink mode(aka otg cable)

Change-Id: Ib7b93ec77929d4c738498fe3fee2e78d556661ce
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438655
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 0a86b47264b81c699ac20613b3dbbd7a643708a2)
Reviewed-on: https://gerrit.mot.com/1444680
2019-10-28 09:36:35 -05:00
cuijy2
9e562a85c2 factory:add sx9331 interrupt line test for doha
add sx9331 interrupt line check node int_state
tcmd_send 009b03

Change-Id: I4187bfac87e829d2e3e2b9f19e84cbb8cd6dac65
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445145
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-10-27 22:20:36 -05:00
haojl2
b30cf6743b goodix_gtx8_v1430_mmi: support DRM notification chain
TP:
In new qcom platform, LCD send notification though DRM chain, not fb.
Register DRM notification chain for TP suspend/resume.

Change-Id: Ib34bc796553cc3aa3411788de88049296f0a9bd7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-24 20:42:19 -05:00
yangjq
fb9df75ed8 aw8695: Use vzalloc instead of kzalloc
Sometimes memory is scarce, especially those continuous memory,
so use vzalloc to have more chance to allocate memory successfully.

Change-Id: I374d9009092701ba1c3d609ad05271af0739fd35
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1436053
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit c3499d1140811a8c1e8edfc3ef715170f8f98a1d)
Reviewed-on: https://gerrit.mot.com/1442611
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2019-10-24 02:16:26 -05:00
wengjun1
909586fb5f Sofiap: touch: Pen status notification to touch
- Because now we are using stylus on sofiap and this will keep
touch always on high sensitive mode which will easy to lead to
the problem such as ghost touch , residue points etc. So we add
a pen notifier to touch and then the firmware of the touch can adjust
the mode according to the status of the pen.

Change-Id: Idb333c38a2af08d8d9a7038b9a8c87f80bdefed7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1441556
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-24 00:38:07 -05:00
huangjq9
5379d3d0f3 sensor: fix incorrect event report for stylus_pen
For the EV_SW type event, only the event value of 0/1 will be reported,
and other values are reported as value 1 reported.
If the status is unstable, the status of the report will be inconsistent
with the actual status.
Remove unnecessary events that reported value 2.

Change-Id: I304dc9632f026a8417d2ac87cf19be6e31f05ca4
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-23 20:27:50 -05:00
Ryan Lattrel
7626f5344e p938x_charger: fix todos and clean up
-Fix registers for the mode and the interrupt handler
-Add extra fields to assist in firmware flashing
-Update power_supply fields to the correct values
-Clean up debug messages
-Add initial BPP/EPP mode voltages and currents
-Add wakeup source to keep awake when charging
-Add sysfs hook to enable/disable tx_mode
-Remove unused code leftover from p922x driver

Change-Id: Ieaf95cf8a93440761e236c75443e730c9c89da0f
Reviewed-on: https://gerrit.mot.com/1436652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Submit-Approved: Jira Key
2019-10-23 10:28:41 -05:00
Konstantin Makariev
5942749eed sec_mmi: use stubs for unavailable functions
For bringup purpose adding stubs for the functions from other DLKM
not available at the moment.

Change-Id: I91c42f0c4472db606b871b10a1c64217fd3fd635
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1441361
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-22 15:32:40 -05:00
Donghua Yan
64ef700824 input: misc: add dvdd flag for non-kungpow device
For device without kungpow, KPDPWR bark irq is recommended to
halt the kernel. But since this is a hard reset, a dvdd flag
(reuse the kungpow bit flag) is needed to indicate this is
an intended HW reset by s1 timer, even if s2 is not fired. In this
way, bootloader is able to detect correct power up reason (0x100000).

Dependency: BL need to detect this bit flag for power up reason
amendment.

Change-Id: If4f2cffc87bd75fd03fcb5cbf87cd90664eb71bf
Signed-off-by: Donghua Yan <a18317@motorola.com>
Reviewed-on: https://gerrit.mot.com/1439390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2019-10-21 08:59:28 -05:00
wengjun1
8bf9ed035b Sofiap: Pen status notification to touch
- Because now we are using stylus on sofiap and this will keep
touch always on high sensitive mode which will easy to lead to
the problem such as ghost touch , residue points etc. So we add
a pen notifier to touch and then the firmware of the touch can adjust
the mode according to the status of the pen.

Change-Id: I328fbe973d960e0decc60b86e4d16140e66e2cb9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438179
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
2019-10-20 21:07:29 -05:00
Weilong Wu
4c12252a36 dlkm: optional vibrator feature
Optional the feature of vibrator amplitude reduce
feature, use an dts configuration to decide whether
enable this feature on factory mode.

Change-Id: I12d5ad326ce2b666563eb0a5aadc6e0145445918
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1437337
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-16 02:34:58 -05:00