Commit graph

59 commits

Author SHA1 Message Date
Ryan Lattrel
6cf41b0c79 modules: create usbnet gadget module
Port the usbnet motorola gadget driver for
factory to a loadable module.

Change-Id: I6713b97d6e6c2e2dfb90b703a7a17694d44bdccb
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1147494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-25 13:26:02 -05:00
huangys
d648dbbb5f ospl: fix build error of header files absence
pippen and ali-shm2018 audo kernel directory is not same,
include differenct header file directory according directory
exist or not

Change-Id: I721fe66e659945caa3cae39d579c6f3a754dc0f7
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1167714
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-25 01:05:56 -05:00
huangys
eb96306f27 propagate ospl module from bomr1-8998 kernel branch
copy base from bomr1-8998: f2668732ab262c40c81286418aec9e8122aa690f

Change-Id: I25b4097dee29afce11121ef1211c7460c3980c1e
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1166270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-24 05:02:20 -05:00
huangys
4c11484538 report headphone plug as input event
Change-Id: I294e2646d7cf81bef6be9e2c96bb7bd74f62350d
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1166091
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-20 04:12:45 -05:00
huangys
1ae601bb04 correct MADERA_HP_DONE value
According CS47L35 spec and cirrus github code

Change-Id: I31678be931c4e30356ad45abdf72730e43da0c69
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1165494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-19 23:42:23 -05:00
Ryan Lattrel
1f97a5cf46 modules: tzlog_dump: write to mmi_annotate
Change module to write to the mmi_annotate space
instead of having a procfs entry to read.

Change-Id: I0931f7c1ef1305ebe23dfa2bb56fdb5a95948330
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1145135
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:32:09 -05:00
Ryan Lattrel
dbbb62ecaa modules: mmi_info: write to mmi_annotate
Write info to the mmi_annotate driver to save
information to be printed in the case of a
watchdog or panic.

Change-Id: I5681a1a2da18419e46d03b0dfe33b51a7f336019
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1144994
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:32:01 -05:00
Ryan Lattrel
f99876f575 modules: create mmi_annotate driver
Add a driver to replace the pstore annotated
region additions in the kernel.

Change-Id: If0fc6e46fe14562e846b8f356e6b75b71ae43307
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1132069
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:31:53 -05:00
guocx4
f90880f2f8 Add stm laser modules
1. Add vl53L0
2. Add vl53L1

Change-Id: Ib98cbddb95f1ec2ba2aaee79e215d0a5e0b7ffb4
Signed-off-by: guocx4 <guocx4@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1160804
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2018-04-11 21:42:39 -05:00
huangys
08e4828a96 update cs35l35 driver from Payton
the old came from github site of cirrus driver v4.9-cs35l35 branch

Change-Id: I182e2bb0d1e041c72307c6b9541a7b2755e64ad2
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1160165
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-09 01:20:41 -05:00
xiaoy3
fa3cc721ff tzlog_dump: support TZ_DIAG_LOG different version
support tzlogdump on shm2018

Change-Id: Idb3de736f4f3b8b8808f08da0fe7e4744b0e6db2
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1157390
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-04-08 01:23:07 -05:00
huangys
4296ab05d2 ASoC: add cs35l35 driver
Change-Id: I3675d255f6c472ff0d781981b9184a265d389596
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1159946
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-08 01:04:50 -05:00
huangys
5fdd35cce4 enable support CS47L35 dynamically.
Change-Id: I5720f102a0be1d71a573aec8565d98693c126afb
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1159925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-07 23:45:31 -05:00
Paul Handrigan
38c2d139aa ASoC: cs35l36: Update device tree checks for L37
Update device tree checks for cs35l37 12V.

Change-Id: Ic84f46a29d902522bf4faf9be331f1b1825313ca
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140353
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:56 -06:00
Brian Austin
accfca81ba SoC: cs35l36: K1/2 coeff update for performance
The defaults for Boost Coeff K1 and K2 values
are to be updated to give better performance

Change-Id: I1c8a757fc0358e9e7ad0a878307dbe192143adcb
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140352
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:53 -06:00
Brian Austin
2fe9ab40a5 ASoC: cs35l36: Correct mask for L37
Correct the mask to check for L37 12V

Change-Id: I4ffb47940f1169e7d1d5667718ab9146d246775c
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140351
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:50 -06:00
Brian Austin
9492d0299c ASoC: cs35l36: remove regpatch for fixed boost
With the L37 now 12V we have to fix the boost based
off of that. Remove the default reg_patch call in
bus probe to utilize the newer method of handling
this case

Change-Id: I1f7db9c7c5335297b374be60e17693770739cfd3
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140350
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:47 -06:00
Brian Austin
66d3a850b9 ASoC: cs35l36: Move OTP PAC call to B0
We should do the PAC OTP trim kickoff if
we are only B0, so place the call where
we determine it is in fact B0

Change-Id: Ida17815c68f8a5785b6cc1f802903c40659ead8f
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140349
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:38 -06:00
Brian Austin
6f876f892e ASoC: cs35l36: adjust 10V/12V part distinction
Decided it would be best to check in bus probe
and print out what the real part number is.
Also, eliminate function and just hit the
test space in codec_probe

Change-Id: I2d02c8b57c1651cc2656d7f2561aee338d602025
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:33 -06:00
Brian Austin
e347400993 ASoC: cs35l36: Add revB 10v and 12v support
CS35L36 comes in 2 flavors for B0
10V L36 and 12V L37
If L36, clamp down certain boost features
for safety purposes

Change-Id: I8bd69815dbf7097393c77216239d644547d4fc22
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140347
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:28 -06:00
Paul Handrigan
bec5057733 ASoC: cs35l36: Add a switch that enables BOOST and CLASS H
Add a switch that enables boost and class h.  By default they
are off.

Change-Id: I68efd2ac2fa0c6837415287a97d720d8776a9acd
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140346
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-02-26 19:26:23 -06:00
Brian Austin
ea2b640cb6 ASoC: cs35l36: Add boost control for external supply
If supplying boost voltage externally you have to
put the device in specific setting or damage may occur

Add DAPM_POST events to setup the correct up/dn
Add DT boolean to specify external or internal boost

Change-Id: I449b18601757127d6570d6e5bca1db3f2c7938ae
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140358
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-02-26 19:25:40 -06:00
Konstantin Makariev
dd32b850b7 input: synaptics_mmi: fix rmmod
This change allows successfully perform rmmod of Synaptics touch
driver modules: synaptics_mmi, synaptics_dsx_fw_update and
synaptics_dsx_rmi_dev

Change-Id: Ieb11465697165d2d096417311e51470b9749227a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1130510
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-12 15:26:27 -06:00
Jason Knopsnyder
182d3dc4b9 modules: mmi_sys_temp: Add system temperature module
Add mmi system temperature module.

Change-Id: I68cf431c4a693ce54cd07e9a248cbb09be7f9082
Reviewed-on: https://gerrit.mot.com/1133749
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-12 14:42:09 -06:00
Konstantin Makariev
d269f977a0 input: ldc2114: run config in workqueue
Apply config work is done in workqueue now. Same thread is used to
schedule polling and irq works. Added sensor detection to support
PCB w/o inductive keys flex connected.

Change-Id: Ied612528513ea14aed15c2b8df0ae18ec7dcfd2e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1131383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-12 09:46:38 -06:00
Kenny Kessler
1193121550 modules: misc: Include Subfolders
Need the Android.mk files from subfolders as well.

Change-Id: I97fb12df4732da9798e8e403cbaa72d60fedfd1d
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1132962
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-02-08 16:36:45 -06:00
Ryan Lattrel
a1d4d757ef create mmi_info module
Convert mmi_ram_info mmi_soc_info mmi_storage_info
and bootinfo into a single loadable module.

Change-Id: I8de7933904f66573b0d5c70c8a7dd154911f354e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1114526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-08 09:30:02 -06:00
Ryan Lattrel
bd7e15a394 modules: moto_f_diag: add tty diag module
Add module to override the f_diag gadget module
with tty calls for factory mode.

Change-Id: I208dcebdf00e629847b4ed3b7e597f968cb324ae
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1128711
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-08 09:29:28 -06:00
Vlad Karpovich
8d6c6a5296 ASoC: madera: Add Cirrus Logic audio drivers
The following drivers are included and modyfied to be run
as DLKM:
Core madera drivers,
extcon driver,
CS47L35 and CS47L90 codec drivers,
CS35l36 AMP driver,
CS40L20 haptic driver.

Change-Id: I7a285d434244e08635a2cfdcd3f21f45c3d8c0f6
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1131231
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-07 16:23:31 -06:00
Ryan Lattrel
919125f54c modules: cyttsp: fix memory leak
Fix a memory leak in the cyttsp capsense module.

Change-Id: Ie8441cc9593bbc2d05be8438725c0ab903e63258
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1129408
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-05 14:32:46 -06:00
Konstantin Makariev
299d64680b utags: add utags support driver
Moving UTAGs driver from kernel to DLKM

Change-Id: Idfd4c3629434bc9b334092463478f7f6af7ed51e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1125046
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-01 16:08:01 -06:00
Konstantin Makariev
0e8c506758 input: ldc2114: fix rmmod
DLKM was not properly unloading in response to rmmod command.

Change-Id: I23b958727cd245edccdf477adbb43183e927abff
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1128638
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-01 15:25:17 -06:00
Konstantin Makariev
10574190fb input: ldc2114: make key reporting optional
Report keys only if buttons map is provided in DT. Otherwise IRQ
handler won't be registered and driver will only be responsible
for applying normal and LPM configuration.

Change-Id: I8444b50940635bbd6a6177b7abc356f461870e75
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1127687
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-01-31 17:06:16 -06:00
Konstantin Makariev
b975a98a31 fixup! (CR) input: ldc2114: add new features
Adding static to global variables declaration

CRs-fixed: (CR)

Change-Id: I2be149d407fd1d6e6c68780d3ce20258da31de72
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1127670
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-01-31 17:05:51 -06:00
Konstantin Makariev
35054c46d3 input: ldc2114: add new features
Following features have been added to LDC2114 kernel driver:
 1) DT configurable settings with versioning support
 2) control of LPWM pin
 3) reboot notification callback
 4) conditional polling and DT config debug messages

Change-Id: I828e73bc049961204f71fe5a41b40ab6af7a16cf
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1123709
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-01-31 09:20:50 -06:00
Ryan Lattrel
d36bb898a0 tzlog_dump: make tzlog dump a module
Functionality was previously in the tz_log.c driver
provided by qualcomm.  Move to a module to avoid
tainting vendor kernel code.

Change-Id: I034bf341e781ecc0321df1b8871ce58daec9f379
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1108569
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-01-24 09:44:22 -06:00
Ryan Lattrel
4c6901d0a6 watchdogtest: add module to test watchdog
Convert the watchdog test to a lkm.

Change-Id: Ifa83ce4790a52865ed82d67f1a304b8804c9bf64
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1111988
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Submit-Approved: Jira Key
2018-01-24 09:24:33 -06:00
Ryan Lattrel
0ee3f8162a cyttsp_sar_mmi: fix flashing issues
The maximum frequency to bit-bang at is 7 MHz. This
puts us right on the edge.  Slow down writes by
changing writel_relaxed_no_log to writel_relaxed.

Additionally, DeviceAcquire is given a single retry.
It sometimes fails the first time, but I have not
seen it fail twice.  The hssp protocol for the
cypress chip is a little iffy so this gives us a better
shot at being successful everytime.

Also includes various other fixes.

Change-Id: I94cc3496b74174ca14680299a5bd7020d5d88336
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1119584
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-01-19 15:23:03 -06:00
Konstantin Makariev
b29e74c8c1 input: synaptics_mmi: avoid put for regulators
Regulators requested with devm_regulator_get, regulator_put is done
automatically as part of resources release procedure.

Change-Id: I8940ca3adf5a3953b58d313edd95cc8a264bd37a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1116100
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-01-10 17:09:44 -06:00
Konstantin Makariev
1263484020 input: ldc2114: read status in irq work
Sometimes reading STATUS register once in IRQ handler is not enough
to clear interrupt source. Thus start reading status as part of IRQ
work.

Change-Id: Ia0652ceaf7ebf141075260fce768938a64676c54
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1108028
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2017-12-21 14:27:39 -06:00
Konstantin Makariev
d504473e3b motorola: dlkm: inductive keys driver
Adding LDC2114 driver to DLKM area

Change-Id: Ifb5bf37b55a83e94e08c14910b54a0d670bb09d0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102621
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2017-12-21 14:27:27 -06:00
Ryan Lattrel
c090df6a23 cypress: cyttsp_sar_mmi: fix interrupt problems
-Prevent the reset line from going into HiZ mode.  HiZ
mode results in the chip getting stuck in reset on
this chipset.

-Disable interrupts when a device tries to flash.

-Fix system crash on removal of the module due to
the wrong IRQ getting freed.

Change-Id: I1a0bcd32b570507703d6847a7372251ec0272b5f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1104822
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2017-12-19 08:57:50 -06:00
Konstantin Makariev
bd24670ac0 motorola: dlkm: synaptics touch driver
Moving Synaptics touchscreen driver from kernel to DLKM

Change-Id: Ia72f58cd400fb2c51b6170a8e0b43ceb16c72c94
Signed-off-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102121
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2017-12-18 15:59:11 -06:00
Shiyong Li
5b026089e1 fs/exfat: reduce log spam
Switch to debug prints for some spammy errors.

Change-Id: I847d21fcaa4a66b0521e43c62fe7d7b6c1e140d7
Signed-off-by: Igor Kovalenko <c(CR)@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102185
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:59 -06:00
Shiyong Li
9e75018bbf fs/exfat: do error check for d_splice_alias return
This patch adds error check in case a defect exFAT SD cards is inserted.

Change-Id: I37f6b8716abd556908aad72b18fcc7ac5719766e
Signed-off-by: Min Shi <e13386@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:30 -06:00
Shiyong Li
f961c72ccb fs/exfat: fix every bio only has one block
This patch fix the bug that exfat fs cannot write
continuous blocks in one bio.
This will cause every request submit in block layer
only contains one block, cause write speed slower.

Change-Id: Ia548a7d8051defc1498d2d11d39e069bf683fdff
Signed-off-by: haojl2 <haojl2@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102183
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:22 -06:00
Shiyong Li
5b326dd273 fs/exfat: send uevnet from workqueue
We can not send uevent directly because it might be called
from atomic context.

Change-Id: I384a7f197b22b1fcb8d068c98908e4fa5a1d3b82
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102182
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:16 -06:00
Shiyong Li
5b7325a279 fs/exfat: support readonly uevent
Change-Id: Iba732aa27cce07133bdbc085bee10182f5796298
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102181
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:08 -06:00
Shiyong Li
251b18ea98 fs/exfat: use correct length for utf conversion
when call utf16s_to_utf8s, last parmater 'maxout' will be reduced
with the returned value of utf32_to_utf8, the value reflects the
size of one utf character, it could be 1~max charset size(3), so
maxout should use MAX_NAME_LENGTH * MAX_CHARSET_SIZE
when call utf8s_to_utf16s, the inlen will be reduced with the
the returned value of utf8_to_utf32, so it should use
MAX_NAME_LENGTH * MAX_CHARSET_SIZE or the lenghth of p_cstring whose
max value is MAX_NAME_LENGTH * MAX_CHARSET_SIZE.

Change-Id: Icbea02ece4b1a5b015037a6a54178ee8e08d4325
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:35:02 -06:00
Shiyong Li
a77212a42c fs/exfat: avoid setting 0 over buffer uniname
utf8s_to_utf16s could return -EINVAL(-22), then uniname[i] =
uniname[-22] = '\0' will corrupt other local variable.
uniname is a local variable having different address everytime
when call nls_cstring_to_uniname. so uniname[-22] could corrupt
some different addresses.
and also when filename reaches at maximum length, need to leave
last one space in buffer for '\0'

Change-Id: I44bbdd3249150ad5617c7cd13207cfa37b102a77
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-12 12:34:55 -06:00