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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Add support to enable/disable fpsimd_settings at runtime through
kernel command line.
fpsimd.fpsimd_settings=0 should disable it.
Change-Id: I14bf5f20e36ec4547aad45382cfffc91666a2ff4
Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
Enable FP(Floating Point) and SIMD settings required
during execution of AArch32 processes.
Change-Id: I935d91778954937a7fd7cb5a959290a147220a06
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
Enable FP and SIMD settings for the MSM8996 during the execution
of the AArch32 processes and disable these settings when you switch
to the AArch64 processes.
This commit also adds CONFIG_ENABLE_FP_SIMD_SETTINGS to support
FP and SIMD settings.
CRs-Fixed: 952837
Change-Id: If9537ca7390d8f08a6b48fb8865d1b349a93bcee
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
Bitrate config can be read for all
channels of RH850 and sent down to device
Change-Id: Id3f28f9fd024f7768fb04faef6a31efb8bfb85b2
CRs-Fixed: 1018330
Signed-off-by: Sergio Frades Ruiz De Sola <csfrade@codeaurora.org>
Add PHY init sequence based on new settings so that PCIe
PHY can be brought up on MSM8996 agave.
Change-Id: Iece881346523cf3f5b06314f38fc65d5afdb2986
Signed-off-by: Tony Truong <truong@codeaurora.org>
Link state L1 and L1ss is not supported on MSM8996 AUTO
platforms. Thus, disable L1 and L1ss for all PCIe cores
on these platforms.
Change-Id: Ifd95e1bba9c895ea35e50545bd6ad93e42fca5e6
Signed-off-by: Tony Truong <truong@codeaurora.org>
Add memset of adm open v5 and v6 structure before
value assignment to avoid warning of uninitialized stack.
CRs-fixed: 1112462
Change-Id: I18681f6b191e96118fde9ae774d105dc6b677858
Signed-off-by: Derek Chen <chenche@codeaurora.org>