Commit graph

575020 commits

Author SHA1 Message Date
Bingzhe Cai
24a8120f34 input: touchpanel: fix security issues in GT915 driver
There are multiple buffer overflow and input validation issues
in Goodix gt915 driver, fix these issues by adding data length
check and change file system node mode.

Change-Id: I5173fc1ca021fd45c939c7c8a4f460651330de5b
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:53:48 -07:00
Shantanu Jain
0ddb25d00e input: touchscreen: Add dynamic detection support to Goodix driver
Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.

gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.

Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:53:38 -07:00
Bingzhe Cai
90d5e14e32 input: touchscreen: modify report event according to MT protocol B
Multi-touch(MT) protocol B use input_mt_report_slot_state()
instead of send ABS_MT_TRACKING_ID event directly, so modify
the driver to follow the protocol and remove redundant protocol
A code.

Change-Id: I542e61fabaaa04fcf5fb7e454e10599511f18e39
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:52:59 -07:00
Shantanu Jain
c39dd15cf7 input: touchscreen: release all touches before suspend
Release all touches before going to suspend for goodix
gt9xx TS driver.

Change-Id: Ia3446f3c23be4fe29bfea5f85b22e8b903cffb9e
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:52:52 -07:00
Figo Wang
6ae8594368 input: makefile: Add makefile and kconfig for GT9xx CTP
Add Makefile and Kconfig to build Goodix GT9xx Touchscreen
Driver.

Change-Id: Ibbcdcbb4563bc022d6e4034c37bc633eb9b34315
Signed-off-by: Figo Wang <figow@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-13 11:38:59 +05:30
Gaurav Kohli
62dec45139 firmware_class: Add missing change during kernel upgrade
Add missing change for request_firmware_nowait so third party
drivers are able to load their firmware

Change-Id: Ic6b842a717bde9c2bc50a7c7845c7c50ac05be25
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-09-12 22:32:22 -07:00
Linux Build Service Account
087b488761 Merge "net: rmnet_data: Define the skb recycle handler for transports" 2016-09-12 21:29:53 -07:00
Linux Build Service Account
8250f066ca Merge "clk: msm: clock: Register the mnoc_maxi_clk after the vmem_maxi_clk" 2016-09-12 21:29:53 -07:00
Linux Build Service Account
04326fd5ee Merge "qcom-charger: smb-lib: support input limited state property" 2016-09-12 21:29:52 -07:00
Linux Build Service Account
7b1570056f Merge "ARM: dts: msm: Add VADC node for ICNSS in msmcobalt" 2016-09-12 21:29:51 -07:00
Linux Build Service Account
12d6cb4e73 Merge "icnss: Add support of sending athdiag read/write messages" 2016-09-12 21:29:50 -07:00
Linux Build Service Account
d1dac36062 Merge "memshare: Synchronize memory allocation and free operations" 2016-09-12 21:29:49 -07:00
Linux Build Service Account
d8ff4b6468 Merge "input: Makefile: include ITE tech touch driver for compilation" 2016-09-12 21:29:48 -07:00
Linux Build Service Account
d8cee129cd Merge "ext4 crypto: use dget_parent() in ext4_d_revalidate()" 2016-09-12 21:29:47 -07:00
Linux Build Service Account
09f3b62937 Merge "ext4 crypto: don't let data integrity writebacks fail with ENOMEM" 2016-09-12 21:29:47 -07:00
Linux Build Service Account
975231176d Merge "clk: msm: clock: Vote on MX rail on behalf of MM PLLs on MSMCOBALT" 2016-09-12 21:29:46 -07:00
Linux Build Service Account
643a59d98b Merge "ASoC: wcd9335: Fix kctl_put and get functionality for SLIM RXX MUX" 2016-09-12 21:29:45 -07:00
Linux Build Service Account
bff6b51c07 Merge "diag: Use correct bridge index while sending data" 2016-09-12 21:29:44 -07:00
Linux Build Service Account
88701f0bc9 Merge "msm: kgsl: Change the shrinker to not free reserved pages" 2016-09-12 21:29:43 -07:00
Runmin Wang
c568eb7aca Merge branch 'tmp-bab1564' into msm-4.4
* tmp-bab1564:
  ANDROID: mmc: Add CONFIG_MMC_SIMULATE_MAX_SPEED
  android: base-cfg: Add CONFIG_INET_DIAG_DESTROY
  cpufreq: interactive: only apply interactive boost when enabled
  cpufreq: interactive: fix policy locking
  ANDROID: dm verity fec: add sysfs attribute fec/corrected
  ANDROID: android: base-cfg: enable CONFIG_DM_VERITY_FEC
  UPSTREAM: dm verity: add ignore_zero_blocks feature
  UPSTREAM: dm verity: add support for forward error correction
  UPSTREAM: dm verity: factor out verity_for_bv_block()
  UPSTREAM: dm verity: factor out structures and functions useful to separate object
  UPSTREAM: dm verity: move dm-verity.c to dm-verity-target.c
  UPSTREAM: dm verity: separate function for parsing opt args
  UPSTREAM: dm verity: clean up duplicate hashing code
  UPSTREAM: dm: don't save and restore bi_private
  mm: Export do_munmap
  sdcardfs: remove unneeded __init and __exit
  sdcardfs: Remove unused code
  fs: Export d_absolute_path
  sdcardfs: remove effectless config option
  inotify: Fix erroneous update of bit count
  fs: sdcardfs: Declare LOOKUP_CASE_INSENSITIVE unconditionally
  trace: cpufreq: fix typo in min/max cpufreq
  sdcardfs: Add support for d_canonical_path
  vfs: add d_canonical_path for stacked filesystem support
  sdcardfs: Bring up to date with Android M permissions:
  Changed type-casting in packagelist management
  Port of sdcardfs to 4.4
  Included sdcardfs source code for kernel 3.0
  ANDROID: usb: gadget: Add support for MTP OS desc
  CHROMIUM: usb: gadget: f_accessory: add .raw_request callback
  CHROMIUM: usb: gadget: audio_source: add .free_func callback
  CHROMIUM: usb: gadget: f_mtp: fix usb_ss_ep_comp_descriptor
  CHROMIUM: usb: gadget: f_mtp: Add SuperSpeed support
  FROMLIST: mmc: block: fix ABI regression of mmc_blk_ioctl
  FROMLIST: mm: ASLR: use get_random_long()
  FROMLIST: drivers: char: random: add get_random_long()
  FROMLIST: pstore-ram: fix NULL reference when used with pdata
  usb: u_ether: Add missing rx_work init
  ANDROID: dm-crypt: run in a WQ_HIGHPRI workqueue
  misc: uid_stat: Include linux/atomic.h instead of asm/atomic.h
  hid-sensor-hub.c: fix wrong do_div() usage
  power: Provide dummy log_suspend_abort_reason() if SUSPEND is disabled
  PM / suspend: Add dependency on RTC_LIB
  drivers: power: use 'current' instead of 'get_current()'
  video: adf: Set ADF_MEMBLOCK to boolean
  video: adf: Fix modular build
  net: ppp: Fix modular build for PPPOLAC and PPPOPNS
  net: pppolac/pppopns: Replace msg.msg_iov with iov_iter_kvec()
  ANDROID: mmc: sdio: Disable retuning in sdio_reset_comm()
  ANDROID: mmc: Move tracepoint creation and export symbols
  ANDROID: kernel/watchdog: fix unused variable warning
  ANDROID: usb: gadget: f_mtp: don't use le16 for u8 field
  ANDROID: lowmemorykiller: fix declaration order warnings
  ANDROID: net: fix 'const' warnings
  net: diag: support v4mapped sockets in inet_diag_find_one_icsk()
  net: tcp: deal with listen sockets properly in tcp_abort.
  tcp: diag: add support for request sockets to tcp_abort()
  net: diag: Support destroying TCP sockets.
  net: diag: Support SOCK_DESTROY for inet sockets.
  net: diag: Add the ability to destroy a socket.
  net: diag: split inet_diag_dump_one_icsk into two
  Revert "mmc: Extend wakelock if bus is dead"
  Revert "mmc: core: Hold a wake lock accross delayed work + mmc rescan"
  ANDROID: mmc: move to a SCHED_FIFO thread

Conflicts:
	drivers/cpufreq/cpufreq_interactive.c
	drivers/misc/uid_stat.c
	drivers/mmc/card/block.c
	drivers/mmc/card/queue.c
	drivers/mmc/card/queue.h
	drivers/mmc/core/core.c
	drivers/mmc/core/sdio.c
	drivers/staging/android/lowmemorykiller.c
	drivers/usb/gadget/function/f_mtp.c
	kernel/watchdog.c

Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Change-Id: Ibb4db11c57395f67dee86211a110c462e6181552
2016-09-12 18:25:49 -07:00
Sivanesan Rajapupathi
653339dbcd crypto: msm: qce50: allocate iovec out of cacheable memory
iovec memory for each pipe is only accessed by crypto and BAM drivers from
the CPU. It won't be accessed by crypto device. Change allocation of iovec
from coherent memory space to kernel memory space to improve performance.

Change-Id: I97162c00c37716be8b9a20393f67bda8da41e99d
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Sivanesan Rajapupathi <srajap@codeaurora.org>
2016-09-12 16:12:52 -07:00
Venkat Gopalakrishnan
98e5fbba6a scsi: ufs-qcom: configure ufs clocks core memory
Configure the ufs clocks core and peripheral memory state when
turned off. This configuration is required to allow retaining
ICE crypto configuration (including keys) when ice_core_clk is
turned off, and powering down non-ICE RAMs of host controller.

Change-Id: I93584851fd50c7006ccd48979087d707ab4c6408
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-12 16:00:53 -07:00
Linux Build Service Account
b7bf6d2b63 Merge "icnss: Add support of suspend_noirq/resume_noirq" 2016-09-12 14:42:28 -07:00
Linux Build Service Account
e8afdbad3e Merge "ASoC: msm: Add Buffer overflow check" 2016-09-12 14:42:27 -07:00
Linux Build Service Account
a1bf0348c4 Merge "input: touchscreen: add support for IT7260 touch controller series" 2016-09-12 14:42:27 -07:00
Linux Build Service Account
023310d9d6 Merge "input: touchpanel: enable protocol B for skuf CTP driver" 2016-09-12 14:42:25 -07:00
Linux Build Service Account
0ac10439ff Merge "input: touchpanel: Add FB notifications support to GT9xx" 2016-09-12 14:42:24 -07:00
Linux Build Service Account
bfb9253e65 Merge "USB: usbfs: fix potential infoleak in devio" 2016-09-12 14:42:24 -07:00
Linux Build Service Account
f1a35480ec Merge "clk: msm: clock: Update the supported frequencies for hmss_ahb_clk_src" 2016-09-12 14:42:22 -07:00
Linux Build Service Account
50af22ee1c Merge "clk: msm: gcc-cobalt: Add support for gcc_aggre1_ufs_axi_hw_ctl_clk" 2016-09-12 14:42:22 -07:00
Linux Build Service Account
43f14d2d08 Merge "msm: mdss: enable VBIF write_gather for WB2" 2016-09-12 14:42:21 -07:00
Linux Build Service Account
fdc80ae02b Merge "ARM: dts: msm: use QCOM replicator for msmcobalt" 2016-09-12 14:42:20 -07:00
Linux Build Service Account
172717f1c7 Merge "coresight-tpda: add support to generate FREQTS packets" 2016-09-12 14:42:19 -07:00
Linux Build Service Account
dfad0f9a64 Merge "coresight-tpda: skip writing '0' to FREQREQ_VAL register" 2016-09-12 14:42:19 -07:00
Subash Abhinov Kasiviswanathan
6d58572de9 net: rmnet_data: Define the skb recycle handler for transports
rmnet_data currently frees incoming memory when de-aggregating
large incoming aggregated packets. This may introduce additional
overhead in the memory allocator. Add a handler as part of the
rx_handler_data to recycle the skb's. This handler needs to
defined within the specific transport driver. If the recycle
handler is not implemented by the transport, rmnet_data will
free the skb (default behavior).

CRs-Fixed: 1048396
Change-Id: I14b929d78c87ced26cff3c32876d2eec5de33350
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-09-12 14:05:12 -06:00
Deepak Katragadda
56a1dc1746 clk: msm: clock: Register the mnoc_maxi_clk after the vmem_maxi_clk
Registering the vmem_maxi_clk after the mnoc_maxi_clk leads to it
being added to the handoff list after its FSM clock. This results
in the mnoc_maxi_clk being stuck ON when it's disabled as part of
clock_late_init. Hence, change the order of registering these clocks.

CRs-Fixed: 1065813
Change-Id: If076545f9557f1be2633f72fca5b9e8096b6501b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-12 11:32:06 -07:00
Venkat Gopalakrishnan
77c50a22e8 scsi: ufs: dump hw regs on link failures
Dump host state, power info and host/vendor specific registers
on link failures. This provides useful info to debug the failures.

Change-Id: I76a4ea56f3aee6a51a5930381ad8d12ca8b43551
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-12 11:30:36 -07:00
Venkat Gopalakrishnan
b1fe3eedb2 scsi: ufs-qcom: dump additional testbus registers
Change testbus default config, dump additional testbus
registers and ufs phy regs along with other debug vendor
specific registers. These additional info are useful
in debugging link related failures.

Change-Id: Icfa44def6d461a5782f7f57cefb78ed5e57a50d0
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-12 11:30:27 -07:00
Venkat Gopalakrishnan
fc8a047e31 phy: qcom-ufs-qmp-v3: add ops to dump phy regs
It's useful to dump phy registers on failure to debug
link issues. Export a new ops for the ufs driver to invoke
during link failures.

Change-Id: Id3a9c9085375b783d97e7f2ffd3e11ec469aedb9
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-12 11:19:39 -07:00
Yuanyuan Liu
d44c09c2b9 icnss: Add support of monitoring vph_pwr
Add support of monitoring runtime phone power. Driver configures two
threshold values and receives notifications when phone power
crosses either high or low threshold. Driver then sends indication to
WLAN FW, which will vote for different regulator power mode based on the
indication.

CRs-Fixed: 1050198
Change-Id: I0614286f1b2a3446d40ad4d82e24a6e8f91069e1
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 10:04:37 -07:00
Yuanyuan Liu
cc9afa974c ARM: dts: msm: Add VADC node for ICNSS in msmcobalt
Add VADC node in ICNSS for reading and monitoring
runtime phone power.

CRs-Fixed: 1050198
Change-Id: I94278e4a972e4a1a2cdb162482a589743992ca3c
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 10:00:00 -07:00
Yuanyuan Liu
2e1727bdb4 icnss: Add debugfs entries for register read/write
Add debugfs entries for reading/writing WLAN hardware registers.
This is for runtime debugging enhancement.

CRs-Fixed: 1058506
Change-Id: Ib49adaa407d2a5d7765401fee4c8652f235c5f33
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:56:48 -07:00
Yuanyuan Liu
1947a834f5 icnss: Add support of sending athdiag read/write messages
Add support of sending athdiag read/write commands through QMI.
This enhance the runtime debugging of WLAN Hardware.

CRs-Fixed: 1038933
Change-Id: I6639ecce6c24d8b9757a98757bcc3f0cd4b2e9b2
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:55:52 -07:00
Yuanyuan Liu
b56e6e2c96 icnss: Add support of suspend_noirq/resume_noirq
Register suspend_noirq and resume_noirq for WLAN driver.
This could make sure that no wake up is pending from FW
and if initial wake up is received then failing suspend_noirq
should trigger resume.

CRs-Fixed: 1060667
Change-Id: Ib233ce66ad21819d2d62155072f0bf985a12837b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:51:38 -07:00
Rama Krishna Phani A
64380f7fe6 ARM: dts: msm: Add SPS node for msmtriton
Add SPS module to device tree. SPS (Smart Peripheral System)
enables the support of all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: I9fcf626fbbaaa4a15d88983de23910e02a9b57e8
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2016-09-12 18:00:51 +05:30
Linux Build Service Account
9c8924dbaa Merge "input: synaptics_2.6: add pinctrl support for Synaptics 2.6 driver" 2016-09-12 05:16:04 -07:00
Linux Build Service Account
bc7a35be18 Merge "ASoc: msm: qdsp6v2: Fix timestamp glitch during gapless transition" 2016-09-12 05:16:03 -07:00
Linux Build Service Account
5872e6e3e8 Merge "ARM: dts: msm: Add missing glink_pkt devices for MSMCOBALT" 2016-09-12 05:16:02 -07:00
Bingzhe Cai
4bf592770b input: touchpanel: enable protocol B for skuf CTP driver
Skuf use touch panel protocol B for touch event recognition that
needs enable this protocol in driver.

Change-Id: Ic855ed4fb0277a9bc5996bcb310db67b8ccf5c03
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 05:03:53 -07:00
Bingzhe Cai
ed6a734b04 input: touchpanel: Add FB notifications support to GT9xx
Add support for FB notifications to trigger suspend/resume
based on FB blank/unblank events.

Change-Id: I61803e3a731e047d0641e3b1ccbae58b9bd1bd89
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 05:03:47 -07:00