Commit graph

583850 commits

Author SHA1 Message Date
Arun Ks
1ff96f8075 Merge changes I933d5aa2,I887b33d2 into dev/msm-4.4-8996au
* changes:
  ASoC: msm: support 5 and 7 channel for TDM hw param
  ASoC: msm: add support for customized sound card
2017-03-30 02:27:27 -07:00
Arun Ks
77c7a89926 Merge "ASoC: msm: qdsp6v2: add route for TERT_TDM_RX_4 playback" into dev/msm-4.4-8996au 2017-03-30 02:25:46 -07:00
Arun Ks
38181dd87e Merge "ARM: dts: msm: Add support for speed-bin 2 for MSM8996v3" into dev/msm-4.4-8996au 2017-03-30 02:18:37 -07:00
Deepak Katragadda
8cb7e5735b clk: msm: clock-gcc-8996: Add additional frequencies for QSPI clock
Add support for additional frequencies for the qspi_ser_clk_src
on msm8996.

Change-Id: I4efa0ad4dc3f68a0c54bd4cf7ee77b4c78be4be1
CRs-Fixed: 994014
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-03-30 02:17:17 -07:00
Arun Ks
1419c3473b Merge "clk: msm: gcc-8996: Add pinctrl clk for ln_bb_clk" into dev/msm-4.4-8996au 2017-03-30 02:09:03 -07:00
Arun Ks
83eaf58c3c Merge "can: Add firmware flashing support" into dev/msm-4.4-8996au 2017-03-29 19:45:07 -07:00
Arun Ks
f7eda36e64 Merge "drm/sde: add bridge chip support for drm driver" into dev/msm-4.4-8996au 2017-03-29 19:27:14 -07:00
Honghao Liu
8c018dc7ef ASoC: msm: support 5 and 7 channel for TDM hw param
Add support for 5 and 7 channel for TDM hw param configuration.

CRs-fixed: 2021342
Change-Id: I933d5aa29c5c5578c884a3533772747db721fc0f
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:27:08 -07:00
Honghao Liu
bff1981f96 ASoC: msm: add support for customized sound card
Add support for customized sound card that uses customized
TDM slot mapping and DAI links for automotive platform.

CRs-fixed: 2020063
Change-Id: I887b33d23d2af8af61cf15b499d14afbc9544e37
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:26:44 -07:00
Honghao Liu
21808f11bb ASoC: msm: qdsp6v2: add route for TERT_TDM_RX_4 playback
Add route from Multimedia FE to TERT_TDM_RX_4 BE.

CRs-fixed: 2018097
Change-Id: I22de6c7059ae40956d82176edc130047bd2921f4
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:26:00 -07:00
Devesh Jhunjhunwala
1a5632ab55 clk: msm: gcc-8996: Add pinctrl clk for ln_bb_clk
Add the pinctrl clock for ln_bb_clk to the GCC driver
for MSM8996.

CRs-Fixed: 1063062
Change-Id: If85a0dbb26e350588cbd6614c032bf208a205be2
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2017-03-28 02:11:50 -07:00
Vikram Mulukutla
2a9b1acacc clk: msm: clock-cpu-8996: Allow interrupts during alt_pll set_rate
The CPU that is disabling the alternate PLL may also need to
handle CPR interrupts. Allow the CPU to handle interrupts
during the set_rate operation.

CRs-Fixed: 960701
Change-Id: I63d7ce3e3dd2b559c4db383b64faa9335c404576
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-03-28 02:08:28 -07:00
Vikram Mulukutla
d5fdefbeb5 clk: msm: clock-alpha-pll: Allow interrupts to be enabled during set_rate
Some PLL implementations depend on the CPU being able to handle
certain interrupts in order for the set_rate operation to
complete. Allow interrupts to be handled in the set_rate op.

CRs-Fixed: 960701
Change-Id: I6fda5ed9eb7d6f2e2cd91c58ebabfd7bc1c8a2fc
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-03-28 02:06:49 -07:00
Odelu Kukatla
40a717e7e7 ARM: dts: msm: Add support for speed-bin 2 for MSM8996v3
Add speed-bin 2 to support the fmax of 1.9GHz and 1.5GHz
for perf and power clusters respectively.
Also add speed-bin 2 to support the fmax of 560MHz for GPU clock.

Change-Id: I9bc547b0f8a2f2c7cad04ec8c967ed580755ae75
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-28 02:04:31 -07:00
Dilip Kota
97426ed6d5 devfreq_spdm: Handle spurious interrupts during bootup
Terminate the interrupts triggered before the intitalisation
itself.

Change-Id: I7c005134ecbdae38b58e4312f9e294f5b59c2510
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-03-28 02:02:34 -07:00
David Collins
af74638ad6 ARM: dts: msm: add speed bin 1 CPU clock boost frequency for msm8996pro
Update the frequency plan for the MSM8996-Pro CPU clocks in order
to include the new 1996.8 MHz power cluster boost frequency.

Change-Id: I289f5910d21bd0e97ceff39d6ca09ba8b5f2aea4
CRs-Fixed: 1010722
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-03-28 02:00:21 -07:00
Odelu Kukatla
c236a642c3 msm: msm_bus: fix the memory leak issue
Client name allocated dynamically during the registration
is not freed at the time of unregistration. This is
leading to memory leak issue. This patch fixes the issue
by freeing up the client name during unregistartion time.

Change-Id: I0fe75ce71fdf0ee9a1268d52ac244047cc3413d7
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-28 01:57:50 -07:00
Odelu Kukatla
fc49a00f1f msm: msm_bus: initialize the local variable
Initialize the local variable 'ret' which is returned
from the function.

Change-Id: Ie82e74ce55b622db924e353a6ea98323c7642fa6
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-28 01:55:01 -07:00
Alex Yakavenka
0cd8ae5ea9 can: Add firmware flashing support
Modifications are required to support new ioctls
and send them using messages over spi.

CRs-Fixed: 1025945
Change-Id: Ibc41a1f0a8a7d0bd929209069869ae65fba75c70
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
Signed-off-by: Bruce Wu <brucewu@codeaurora.org>
2017-03-28 15:09:35 +08:00
Tony Truong
40a081e38b msm: pcie: add the checking of userspace input length
Add the checking of the input length from userspace so kernel
space will not copy any content outside the input buffer.

Change-Id: I114ac005f5305d863bfc0d0fc2db7b5e6d683834
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-03-27 06:04:22 -07:00
Srivatsa Vaddagiri
2017b8a733 Merge "ARM: dts: msm: Add blsp2_qup2 to list of bypass wakeup interrupts for 8996" into dev/msm-4.4-8996au 2017-03-27 04:55:13 -07:00
Srivatsa Vaddagiri
53fc61a8d8 Merge "ARM: dts: msm: Update the interrupt list with camera irq" into dev/msm-4.4-8996au 2017-03-27 04:54:18 -07:00
Srivatsa Vaddagiri
1c6030169b Merge "ARM: msm: dts: Add camera interrupts as bypass for msm8996" into dev/msm-4.4-8996au 2017-03-27 04:53:34 -07:00
Srivatsa Vaddagiri
f63246188b Merge "ARM: dts: msm: Map MPM pins for DP&DM to hs_phy_irq for msm8996" into dev/msm-4.4-8996au 2017-03-27 04:51:49 -07:00
Srivatsa Vaddagiri
1f192a3faa Merge "leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs" into dev/msm-4.4-8996au 2017-03-27 04:20:01 -07:00
Srivatsa Vaddagiri
5d73b258df Merge "net: rmnet_data: Add support to configure custom device name" into dev/msm-4.4-8996au 2017-03-27 04:18:03 -07:00
Srivatsa Vaddagiri
8a7668835a Merge "ARM: dts: msm: Push C4 with PSCI to 11.5ms for MSM8996" into dev/msm-4.4-8996au 2017-03-27 04:14:55 -07:00
Mohammed Khajapasha
bad940053a ARM: dts: msm: Add use_32bit_app_setting in bootargs for msm8996
Enable 32 bit app settings, using bootargs, for msm8996
and msm8996pro to set app specific settings.

Change-Id: I9537e8022fb550e94fcba21709572372d024a701
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:10:01 -07:00
Imran Khan
93466ced5d arm64: Modify support for 32bit app specific settings
Change support for 32bit app specific settings. The
change made earlier was not correct for 8996pro devices
so correct it to include all variants of 8996.

Change-Id: Id6afad04ad316dd7a41743821b7cfd513db227e5
Signed-off-by: Imran Khan <kimran@codeaurora.org>
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:09:05 -07:00
Imran Khan
9d7f377c60 arm64: Add support for 32 bit app specific settings
Add support to enable app specific settings, whenever
a 32 bit application is running.

Change-Id: I0cf40e8ea6e3f9e62258a44ccdd959e9eae09d88
Signed-off-by: Imran Khan <kimran@codeaurora.org>
2017-03-27 03:07:55 -07:00
Zhiqiang Tu
bff1ef9f13 defconfig: arm64: Enable app specific setting for MSM8996 on automotive
Enable support for app specific setting on MSM8996. This
is required for providing an interface so that app specific
settings can be applied / cleared.

Change-Id: I2dc533aae99b3898db2d61f99c4c99877eb575d0
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:07:08 -07:00
Srivatsa Vaddagiri
856f969d44 Merge "arm64: Add support for app specific settings" into dev/msm-4.4-8996au 2017-03-27 03:06:00 -07:00
Sergio Frades Ruiz De Sola
e85928ef9c ethernet: device tree and defconfig changes for neutrino
This change is needed to initialize the power rails
and GPIO configuration for neutrino driver.
fix the conflict.

Change-Id: Ib2bb328c4e657232e75724a0cd9673a8d9b8ba06
CRs-Fixed: 1003103
Signed-off-by: Sergio Frades Ruiz De Sola <csfrade@codeaurora.org>
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
2017-03-27 02:59:53 -07:00
Maulik Shah
e15b1696c1 defconfig: msm: Enable config for SPM and Event timer
Enable L2 spm and event timer config.

Change-Id: I643797e3de5c43e6d111ea099b476c82c0f827c3
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-27 02:58:10 -07:00
Srivatsa Vaddagiri
53efa18c0d Merge "rh850: Add filters support" into dev/msm-4.4-8996au 2017-03-27 02:56:17 -07:00
Alex Yakavenka
3e12942fa7 rh850: Add filters support
Add data buffering and receive filters support
Resolve build failure by fixing code style
issue.

CRs-Fixed: 1013185
Change-Id: I926de382d6e813c288fb7e9388f42585a4ce4670
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
2017-03-27 02:41:35 -07:00
Sriharsha Allenki
5fe5778d71 arm: boot: dts: Fix incorrect IRQ numbers for MSM8996 ADP
The interrupt numbers in the usb3 node of MSM8996 ADP dtsi
file mismatches with the msm8996 SOC dt file. Hence fix by
removing all the hs_phy_irq and pwr_event_irq from usb3 node
in MSM8996 ADP dtsi file.

Add extcon phandle to support extcon based VBUS and ID detection
for MSM8996 Automotive kernel v4.4.
Move the pmic_id_irq to usb_detect label to support ID detection
using extcon framework. The interrupts cell of pmic_id_irq
requires 4 attributes according to the updated interrupt-cells
in spmi_bus node.

Change-Id: I4c77efa923ac1ae4a1f55a6729738e48852c7c15
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-27 10:40:21 +05:30
Sriharsha Allenki
a2552776b9 platform: msm: Support ID detection using extcon framework
Support ID detection for dual role USB port on 8996 automotive
kernel v4.4 using extcon framework.

Change-Id: I3f523f9a52dc8e2e8458c661ff11c93156e1c232
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:58:11 -07:00
Sriharsha Allenki
0257146bf5 platform: msm: Support VBUS detection using extcon framework
The 8996 automotive using kernel v3.18 supports gpio based
VBUS detection using Power supply object framework. In kernel
v4.4 the VBUS detection is supported using extcon framework.
The 8996 automotive is being ported to kernel v4.4.
Hence add support for gpio based VBUS using extcon framework.

Change-Id: Ic63b5f84d57d18325cc6c8db24157d835284257f
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:53:45 -07:00
Srivatsa Vaddagiri
1fa2159a4c Merge "fb: msm_dba: fix issue in dba driver" into dev/msm-4.4-8996au 2017-03-26 21:52:29 -07:00
Sriharsha Allenki
f291f04217 defconfig: arm64: msm: Enables host only mode on 8996 automotive
Enables host only mode USB 2.0 controller on 8996 automotive kernel
v4.4 by enabling CONFIG_NOP_USB_XCEIV in the msm-auto_defconfig and
msm-auto-perf_defconfig.

Change-Id: I528ebd6a900da8bce97790047b8c01936d09631c
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:49:16 -07:00
Srivatsa Vaddagiri
82bda7ef28 Merge "video: fbdev: msm: build msm driver when dba is enabled" into dev/msm-4.4-8996au 2017-03-26 21:46:41 -07:00
Girish Mahadevan
160f12765b ARM: dts: msm: Add blsp2_qup2 to list of bypass wakeup interrupts for 8996
Add blsp2_qup2 to the list of bypass wakeup interrupts in the MPM
pin mappings to allow msm8996 to enter deep sleep.

Change-Id: I4187a59116ca9d278017e81e815e5bbcd3a921e2
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Signed-off-by: Atul Raut <araut@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:39:39 -07:00
Shubhraprakash Das
1ece4aba83 ARM: dts: msm: Update the interrupt list with camera irq
Add missing camera irq to the interrupt list without which
the system does not go into shutdown.

Change-Id: I86450b3626d6ed9580b91b2e71f2a320e6df5b3a
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:38:57 -07:00
Mahesh Sivasubramanian
93482a1df4 ARM: msm: dts: Add camera interrupts as bypass for msm8996
When camera subsystem is active the system wouldn't enter XO shutdown and
is safe to mark as bypass so as to allow system to go int XO when camera
isn't active.

Change-Id: Iac7b4f8f4791e9f7dfadf920f24f65ad122e25c3
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:38:23 -07:00
Vijayavardhan Vennapusa
461b1b44a0 ARM: dts: msm: Map MPM pins for DP&DM to hs_phy_irq for msm8996
MPM driver supports mapping multiple MPM pins to single irq for remote
wakeup. Hence map both MPM pins for DP and DM line state changes to
hs_phy_irq.

Change-Id: I018e4258cf0820328c6b77cd32e0d32a0de57582
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:37:13 -07:00
Mahesh Sivasubramanian
39e1ef6095 ARM: dts: msm: Push C4 with PSCI to 11.5ms for MSM8996
C4 with psci overhead is four times that of C4 without psci state.
Based on power profile across system wide usecase, C4 with psci
proves to be costly as the number of pre-mature wakeups from
fpc is huge.
This change pushes C4 with psci state to 11.5ms breakeven point. The
idea is to exercise C4 without psci till that point and allow C4 with
psci only for D4 case.

Change-Id: I81902ac2ff0a0e99efc21d169be472952dcfd3e2
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Girish S Ghongdemath <girishsg@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:36:38 -07:00
Subash Abhinov Kasiviswanathan
d64bd3ead7 net: rmnet_data: Add support to configure custom device name
rmnet_data assigns device name by the order they are created.
This causes problems which multiple processes are trying to
create devices and leads to random device names.

Assign device name as specified by user.

CRs-Fixed: 2018785
Change-Id: Iab8e053c6ccacbeedaa7763e760d0c12e756b5d0
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-03-25 20:10:29 -07:00
Ankit Sharma
ac6a873dba leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs
Fix UAF where two threads can open and close the same file. Second
open will cause the private data for the first file to be overwritten.
When the first file is closed and the private data is freed, this makes
the now-shared private data OOB for the second thread.

CRs-Fixed: 1109763
Change-Id: I1c4618d5be99e140abf0f3ea0d7f485897db5ab2
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
2017-03-24 12:00:03 +05:30
Sarangdhar Joshi
e7ec709374 arm64: Add support for app specific settings
Add support to provide an interface that can be used from
userspace to decide whether app specific settings need to
be applied / cleared when particular processes are running.

CRs-Fixed: 981519 997757
Change-Id: Id81f8b70de64f291a8586150f4d2c7c8f8b4420f
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[satyap@codeaurora.org: trivial merge conflict resolution and pull
fixes for CR: 997757]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-24 11:32:52 +08:00