Commit graph

430 commits

Author SHA1 Message Date
Ryan Lattrel
0f97da9d0e muc_uart: wake on wake_irq and attach
Wake up the system from suspend with either the
wake_irq or the attach_irq.

Change-Id: Ia635fdbc24d0bcc138f7416cfa52740175ef126c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:48 -05:00
Ryan Lattrel
50883b3ebb muc_uart: update sleep timeout to 500ms
Change the sleep timeout period from 5s to 500ms.
Before the timeout occurs the driver blocks the transmission
of messages in the tx queue.

Change-Id: Ib35d28c6e0586b1216bbf5cdd769074b6f4629de
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1262209
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:46 -05:00
Ryan Lattrel
e6fb59eb84 muc_uart: dont throw out message on bad magic
Don't toss the entire message on a bad magic number.
If there is a bad value in front, look for a valid
magic number in the rest of the data, then throw out
the bytes before it.  This is to eliminate any
random bytes that might show up before a valid message.

Change-Id: I70c395de146d7368d0d2a6433be329b8d69b5729
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:42 -05:00
Ravi Vembu
dab0198581 Revert "madera: Add ref clk for codec"
This reverts commit 987d71921e6d284257daff68be69375138ce3d56.
This is not needed anymore since the clk is always on 32K clk.

Change-Id: I7aedfd7d10d558ed1e780637f4b57dfdd3989faf
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1262244
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:10:37 -05:00
dengwei1
d688eb234b channel input update ilitek touch firmware block number.
update ilitek touch firmware block number
as vendor suggested

Change-Id: I1a30717b60714b36467589a80a1f2fc7f466ba70
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261966
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-10-29 04:30:11 -05:00
haojl2
ff7e3e1513 input: ets_fps_mmi: Add navigation support.
Add vertical direction navigation.
This is needed if screen in landscape mode

Change-Id: I68e4fd262575e0f4741a9d3f3beaad99a9ee163c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1248736
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-28 21:17:11 -05:00
Kenny Kessler
6aa80ba895 power: qpnp-smbcharger-mmi: Disable JEITA
Ensure the the SW JEITA is disabled in QCOM driver.

Also forcibly Disable the HW JEITA since the QCOM driver
will enable it when the SW JEITA is disabled.  The MMI
State Machine in this driver is superior.

Change-Id: Idfe42c08f720990a5edfd6cfb01491a89f5cf524
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-26 11:16:08 -05:00
Kenny Kessler
bc05412b1f muc_uart: Add VBUS Flag
Check the VOLTAGE_NOW property and if it is above 2 V
send back to MUC that VBUS is present.  This is needed
mostly for Factory test but might come in hPerry later on.

Change-Id: I16688520611e6087fb04a7cf8006db71496ec519
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259770
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-25 10:38:28 -05:00
haojl2
f55a8f0f0b himax_mmi: reset IC if get ESD event
If ESD occor, touch IC crashed.
Reset IC by trigger HW reset pin

Change-Id: I16e834d8f45e460405468dfe9f4d50cfb40f07e8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-25 06:29:48 -05:00
Weilong Wu
20aa119f30 dlkm: change the st21nfc driver path
Move st21nfc driver to directory st21nfc.
Suggest to creat independent directory for each nfc vendor.

Change-Id: I416aca0662189f3b045b1d28ad80df53ce6beb7b
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260591
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-10-24 22:03:27 -05:00
Weilong Wu
dbc30d7d48 dlkm: optimize st21nfc driver
1. Optional clk_req gpio requeset.
2. Allocate data buffer from Heap since i2c_transfer() is non-blocking call.

Change-Id: Ibcd10fdbce7ee8f622ac39887ce1989dcdd490ba
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255460
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-24 22:03:03 -05:00
lixp5
779a25c130 Add interface for AMPS connection test
This is for factory test.
Set gpio 35,36,136 as output.

Change-Id: Iacdcaf62fa75f46e8aeebff26d152ae9c6c87b95
Reviewed-on: https://gerrit.mot.com/1258547
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Moon Do Seo <moon@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-24 20:26:31 -05:00
Li Xu
b33af28110 ASoC: cs35l41: Use polling for mail box
Use polling instead of interrupt for DSP mail box
acknowledgement.

With interrupt method, the amount of time for mail box
acknowledgement can vary, and sometimes long.

This is because interrupt handler reads all interrupt
status registers and masks, which can take long time,
especially on slow I2C bus.

Use polling to directly check for DSP mail box
acknowledgement reduces variability in amount of time
needed, because only 1 register is read.

Cirrus-JIRA-fixed: MMI-912
Change-Id: I21a223bbfdccb3593c61c7d04ae8355f2734c7a9
Signed-off-by: Li Xu <li-xu@outlook.com>
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259695
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-10-23 14:49:44 -05:00
caoyi1
5747e2389d ABOV sar sensor optimize debug log
ABOV sar sensor:
 optimize the debug log

Change-Id: Ib8bbdae62483f58915dcb4c8b9839c2942a0c1df
Signed-off-by: caoyi1 <caoyi1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1259280
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-23 01:36:32 -05:00
Yoon (Seungyoon) Lee
338a4245bf modules: cspl: move usecase switch checks to DSP
There is a corner case in separate earpiece and speaker system, where
speaker path isn't open (so DSP isn't enabled yet) when usecase switches
but AP consumes the event and doesn't send again to DSP when DSP enabled.
Send usecase switches to DSP everytime, let it decide to switch or ignore.

Change-Id: I014d4d607f5a134970c3f8e43d41c296b62b3a46
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259187
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-10-22 20:26:46 -05:00
Kenny Kessler
5bbd7c61d0 power: qpnp-smbcharger-mmi: Fix Dual SOC Report
The Dual battery design could lead to a filaure where it drops
the SOC to a value of 0.  This happens on error but also the
math could have been wrong.  Only allow a change in SOC if it
is within +/-2% of the current reported SOC.

Also still only update if it changes and bound check 0 and 100
as min and max.

Change-Id: Ie049f9edcf62371b75f1e6def29b1742a9798a88
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258474
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-19 16:13:34 -05:00
Kenny Kessler
fa24cffe57 power: qpnp-smbcharger-mmi: Add Dual Battery SM
Add a State Machine for Charging a Dual Parallel battery
device.  This State Machine requires independent battery
measurements with a singular charge controller.

Any other type of design might require a different SM.

Change-Id: Idd8fabc7b9af3ad853df8f7280d7e393787c1075
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258322
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
2018-10-19 14:43:10 -05:00
Kenny Kessler
54d94ccc5d power: max170xx: Fix CGAIN Conversion
If CGAIN is set to Max then the Sense Resistnace should
be doubled to account for 200% gain.

This will make hte reported Current Now data to be valid.

Change-Id: Iafad42d0470dd71ebfc16fb5135ff415f9d1f2b3
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1256824
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-19 14:43:07 -05:00
Konstantin Makariev
123b556efa synaptics_mmi: create power on sysfs entry first
With introduction DRM support, we need to make touch firmware
upgrade script waiting until driver becomes ready to perform
an upgrade. This change creates power on sysfs entry in the
driver's probe to indicate that firmware upgrade has to wait
until touch IC gets ready after it receives DRM framework
notification.

Change-Id: Ib5d8ed5f638890498fc4414c081dfaaa234063d7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1257955
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-19 11:07:46 -05:00
Paul Handrigan
b2037ea4b9 ASoC: cs35l41: Add mute for power up and power down
Unmute the device after it is powered up and mute it
just before power down.

Mot-CRs-fixed: (CR)

Change-Id: I85a7e17c48181b708e1ad68025fab31c7ca16f2b
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1258201
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-10-19 05:48:10 -05:00
chenyb1
f11a9d3019 TS: NOVATECK charger detection
Get feature enable info "novatek,usb_charger" from dts.
Registe power supply notify to detect the usb plug/unplug event.
Set appropriate config with the power supply event

Change-Id: Ice136f21475c59be59157c9da1b074e05d2bd1ac
Reviewed-on: https://gerrit.mot.com/1253918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-18 20:33:54 -05:00
Yoon (Seungyoon) Lee
3ce95b718f Revert "ASoC: wm_adsp: Add support for old DTS config"
We have River and Olson only in DLKM kernel so far and this is good
timing to transit to use new 'cirrus' node instead of old 'wlf' node
since we don't have lots of old products dt in this kernel branch yet.

(This reverts commit 05d11bc217e6a46f67be0c8d9c635feba9a45d78.)

Mot-CR-fixed: (CR)
Change-Id: Ideed9b83314f06fb0058af7d2cb311b1347dec75
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255127
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Patrick Gries <patgries@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-10-15 14:34:21 -05:00
Konstantin Makariev
d42550f3bd synaptics_mmi: protect drm api with config option
Newly added DRM support utilizes API only available when CONFIG_DRM
declared. This change ensures driver can still be used with FB framework
and fixes some synchronisation issues found in the originl DRM support
implementation

Change-Id: Ic314c62e0f8693348b5ea631bc30905217810d77
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1243348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-15 13:38:49 -05:00
Ravi Vembu
85680c7e90 extcon: madera: Make hsdet gpios writeable
export gpios as writeable for Factory tests to work

Change-Id: I5fdcc9090a0c1829ac9bb407f17115c2fa969a97
Signed-off-by: Ravi Vembu <raviv@motorola.com>


Mot-CRs-Fixed: (CR)
Change-Id: I5fdcc9090a0c1829ac9bb407f17115c2fa969a97
Reviewed-on: https://gerrit.mot.com/1255841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-10-15 11:47:01 -05:00
Kenny Kessler
1727ea0026 power: qpnp-smbcharger-mmi: Block SM in Factory
No need to run SM in Factory mode.

Check for factory mode and skip the Charge SM if true.

Change-Id: I62a32a7dbe45cf0bdc6695e5c98e33852b97f9e8
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255777
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-15 10:41:36 -05:00
Kenny Kessler
a3771bcf7d power: qpnp-smbcharger-mmi: Charge SM Compile Fix
Fix some errors with new compilers.
Other products have broken builds so init some variables better.

Change-Id: I92b74f8389bea5fe4125c51b076f529699dfd0ba
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255118
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-12 14:18:49 -05:00
Ryan Lattrel
b7e0a5bea3 muc_uart: add muc fw to boot mode
Add the muc fw version to the boot mode parameters.
Version is passed in as module parameter.

Change-Id: I4c040ba22c756e67ab174a909f9b86e523d332a9
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1254562
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-12 13:58:17 -05:00
Kenny Kessler
70eec688af power: qpnp-smbcharger-mmi: Add Basic Charge SM
Basic Charge State Machine to handle Temperature and Step
Charging of a Single battery.  Kernel DTS must be updated
for the correct profile to be loaded.

Change-Id: Ie86c01dfa97003f01504d62a85c3c5a52ff26001
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1254237
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-12 11:53:29 -05:00
Wen Xie
d7054a4e81 ASoC: Tas2560: Open tas2560 codec part of debug info
Open tas2560 codec part of debug info
for debug tas2560 issue.

Change-Id: I00ad26cdd0a338319b1eb75ebeb369e409b697e3
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1254926
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-10-12 04:38:26 -05:00
xuwt2
c0f0e1e1ca power: bq2597x: free irq and gpio resource when rmmod
-1,free irq resource when remove this module
-2,free gpio resoure when remove this module
-3,free regulator resource when remove this module

Change-Id: I38b2e86498eb3c5d4fb68cbed5d057b2637a599c
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254130
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-12 03:58:22 -05:00
xuwt2
a6a71c1ebd mmi_pl_manager: support dynamic balance power with pps
-1, use circle array to record pps result for detecting some unstable
chargers.
-2, use the software algorithm to dynamic balance pps charger power.
once this charger can't balance power by itself

Change-Id: Ic30125ab6601b26d9da05617e9b0bbd81a02538f
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254186
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-12 03:58:11 -05:00
gongsc1
9989da4a10 Add some sysfs for power and volume keys test
The keys of olson are haptic, so key test need to add
some vibration sysfs nodes for test.

Change-Id: I687b0c70d465eae26161c1592c2166b909b7c9cd
Reviewed-on: https://gerrit.mot.com/1246114
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-11 08:24:06 -05:00
xuwt2
50429d1e4c mmi_pl_chg_manager: support charging limit under factory sw
Factory SW support to disable battery charging once the capacity larger
than 75%, and re-enable charging when the capacity lower than 60%.
the mmi_pl_chg_manager is the manager of parallel charging,
when the main charging path was disable by factory sw policy,
and the slave charging path was also to be disable.

Change-Id: If3b5b978aa47900e11a3abc15ffcfefd1a5dec20
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254012
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-11 04:18:38 -05:00
Ryan Lattrel
c888a8ef52 mmi_muc_uart: clean up logging
Increase the time to wait for an ack from the muc.
Number of credits appears to remain at 100 with
timeout increase, where before it would lose a
couple on each boot.

Add IPC logging to prevent the muc_uart driver from
spamming the console. Remove timing messages, as
they are no longer useful.

Change-Id: I03b485905482bb25feddd23207db96bbea240920
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1250793
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-10 11:20:01 -05:00
Jiyue Cui
6749966631 Revert "add DLKM capsense sx933x for lake"
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
2018-10-10 05:23:32 -05:00
wengjun1
8af782013d DLKM: Improve ili9881h touch driver
- Release all touch points when suspend.

Change-Id: I84b4af0dab62e25ece17eeca9fda5d3ac06fae4c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253138
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-10 02:38:06 -05:00
Li Xu
ae431b8af0 ASoC: cs35l41: Add out of bound check for mixer
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
2018-10-10 00:47:29 -05:00
Li Xu
e5e452b839 ASoC: cs35l41: Make OTP memory precious
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>
2018-10-10 00:47:23 -05:00
Li Xu
c9b322018c ASoC: cs35l41: Make temperature result reg volatile
Make temperature result register volatile,
so updated results can be read by driver.

Mot-Crs-fixed:(CR)

Change-Id: Ife5f92fa76419af3d3908b4591b654952e3208d5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253048
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/1253078
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:47:17 -05:00
Adam Brickman
7c64e606ae ASoC: cs35l41: Use same frame sync for ASP RX/TX
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>
2018-10-10 00:47:13 -05:00
David Rhodes
56f9ee3a80 ASoC: cs35l41: Make Stream Arbiter highest priority
Workaround for race conditions due to
shutdown sequence.

Mot-Crs-fixed:(CR)

Change-Id: I306ddd7a0fb39302132d134e67ee8b5b0a900e40
Signed-off-by: David Rhodes <david.rhodes@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253046
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/1253076
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:45:59 -05:00
Li Xu
4223359397 ASoC: cs35l41: Add slot selection for DSP A mode
Add mixer control for selecting audio slot in DSP A
audio stream.

SQA-1109

Mot-Crs-fixed:(CR)

Change-Id: I523d2a5a17dd1950fb8476e5a98fbb5208d164b5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253045
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/1253075
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
2018-10-10 00:45:39 -05:00
Li Xu
cc135373aa ASoC: cs35l41: Rename TDM to DSP A mode
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>
2018-10-10 00:45:17 -05:00
huangys
9936a27a1f Revert "(CR): ASoC: cs35l41: check cspl cmd input value"
This reverts commit 5d73b1617d2335a1e27f5f66d13547978665e1ea.

Mot-Crs-fixed: (CR)

Change-Id: I3626c44b9bb75adeb67f62cd673c0f2765463c2f
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253082
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-10-10 00:44:33 -05:00
dengwei1
46d7631628 channel: input add ilitek touch support
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
2018-10-09 21:29:45 -05:00
Weilong Wu
3bf0f70f32 DLKM: fix drv2624 vibrate for too long issue.
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
2018-10-09 04:25:20 -05:00
haojl2
0b2b44e095 himax_mmi: fix rmmod cause crash issue
1. Disable and free irq when rmmod.
2. Remove proc dir after all entries removed.

Change-Id: Ie06eac3537ca703acbb52393d4d9ce63ae1bd9d3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1252558
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-09 02:54:37 -05:00
Kenny Kessler
d9939227e2 power: qpnp-smbcharger-mmi: Add Reverse Boost Fix
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
2018-10-04 14:16:58 -05:00
Ravi Vembu
7877ed440c extcon-madera: Export Headset Detection GPIOs
Needed for Factory Test. Exported GPIOs can be found under
/sys/class/extcon/extcon4/

Change-Id: Ibb22fa2ad66a36715908ae2ce6d19733122af4f1
Signed-off-by: Ravi Vembu <raviv@motorola.com>

Mot-CRs-Fixed: (CR)
Change-Id: Ibb22fa2ad66a36715908ae2ce6d19733122af4f1
Reviewed-on: https://gerrit.mot.com/1250211
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-10-03 13:27:24 -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