Commit graph

576492 commits

Author SHA1 Message Date
Skylar Chang
370d57077e msm: ipa: fix ioctl input param validation
Fix input parameter validation in order to avoid
device crash because of incorrect parameter in IPA driver.

Change-Id: Icbdb05aeb9211665420a872d3453dbbd24fd347b
CRs-Fixed: 1069060
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-26 11:05:07 -07:00
Sudheer Papothi
a5d2e8dce1 ASoC: msmcobalt: Fix MCLK routing on msmcobalt for WCD9340
MCLK TX widget has been added for WCD9335 for recording usecases,
but this results in failure of audio recording usecases on
WCD9340 as msmcobalt supports dynamic detection of codecs. Add
corresponding MCLK widgets based on codec selection for audio
recording usecases to work properly on both codecs.

CRs-Fixed: 1022917
Change-Id: I772e05990a796c99c3b6b6f50323d87b5894231b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 19:49:19 +05:30
Sudheer Papothi
03e7117725 ARM: dts: msm: Add dmic clock rate on ECPP path for msmcobalt
DMIC clock on ECPP(Echo cancellation Ping-Pong) path can
run at 1.2MHz. Change configures DMIC clock rate for ECPP
path in codec device node.

CRs-Fixed: 1022917
Change-Id: Ib846318dc3d359672314485d386a23fd8621bfda
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 07:07:20 -07:00
Ananda Kishore
48c3c0c102 ARM: dts: msm: add SLPI fw name property for msmcobalt
Add SLPI fw name property to support dynamic loading of SLPI
fw images based on the version info.

Change-Id: I69981b603526575758376695d7a5e9affd389dbe
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:40:13 +05:30
Ananda Kishore
8b2625febf sensors: ssc: add support to read SLPI fw name
Read SLPI fw name from device node to dynamically load the SLPI
fw image.

Change-Id: I9ecc0cc1b5de5e0bd47c658747463a4498123655
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:39:02 +05:30
Sarada Prasanna Garnayak
86ea96819d defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmfalcon
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I287761ce5b13dc139f59270dceac67cc9ae45cff
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:34:30 +05:30
Sarada Prasanna Garnayak
b5e9e70478 defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmcortex
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I6028d4a01ddfd8f8589a1de5322c2780d256d5bc
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:29:51 +05:30
Linux Build Service Account
5b7da25887 Merge "mdss: display-port: add support for hdcp 2.2" 2016-10-26 01:10:43 -07:00
Linux Build Service Account
c3b776a3ae Merge "icnss: Stay awake during recovery" 2016-10-26 01:10:40 -07:00
Linux Build Service Account
3319e8c1d7 Merge "ASoC: wcd934X: Update TX gain correctly after decimator enable" 2016-10-26 01:10:39 -07:00
Linux Build Service Account
49cc9d17a4 Merge "ASoC: wcd9335: Update TX gain correctly after decimator enable" 2016-10-26 01:10:38 -07:00
Linux Build Service Account
84072dbeee Merge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms" 2016-10-26 01:10:36 -07:00
Linux Build Service Account
22d4148b42 Merge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag" 2016-10-26 01:10:35 -07:00
Linux Build Service Account
9b87ed2468 Merge "lpm-levels: Change _WARN_printf to pr_err when residency < 0" 2016-10-26 01:10:34 -07:00
Linux Build Service Account
2d51941989 Merge "clk: Check for failure at clk_change_rate" 2016-10-26 01:10:33 -07:00
Linux Build Service Account
0ff93a3e06 Merge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2" 2016-10-26 01:10:32 -07:00
Linux Build Service Account
cf4ce23d22 Merge "msm: vidc: Update log level for power collpase" 2016-10-26 01:10:31 -07:00
Linux Build Service Account
d40c1c45da Merge "msm: vidc: Check ion_handle for errors" 2016-10-26 01:10:31 -07:00
Linux Build Service Account
ade6f4501d Merge "iommu/arm-smmu: on domain destroy invlidate domain cfg" 2016-10-26 01:10:29 -07:00
Linux Build Service Account
8a6107696c Merge "msm: camera: sensor: Update CSI PHY setting for msmcobalt" 2016-10-26 01:10:28 -07:00
Linux Build Service Account
7729df580a Merge "msm: camera: Restructure data handling to be more robust" 2016-10-26 01:10:27 -07:00
Linux Build Service Account
221e6dc71a Merge "msm: camera: AV timer support for HAL3" 2016-10-26 01:10:25 -07:00
Linux Build Service Account
3127c29d05 Merge "msm: sensor: Adding mutex for actuator power down operations" 2016-10-26 01:10:24 -07:00
Linux Build Service Account
7269d7991e Merge "msm_serial_hs: Add defensive checks due to sudden port close" 2016-10-26 01:10:23 -07:00
Lior Barenboim
1e0b8d4f59 soc: qcom: add support for fingerprint sensor driver
The QBT1000 driver provides an API for communicating
with trustzone applications and handles firmware event
interrupts.
The driver supports the following features:
 - loading and unloading trustzone applications
 - sending commands to trustzone applications
 - voting/un-voting for clocks before/after making
   a trustzone call
 - receiving firmware events, signalled by interrupts,
   and providing them to the driver client
 - sending a key event in response to firmware finger
   detect events

Change-Id: I1d9d7a6b6bd2d3420a28a8c09868143bb9bd3b27
Signed-off-by: Lior Barenboim <liorb@codeaurora.org>
2016-10-26 10:43:09 +03:00
Vijayavardhan Vennapusa
71db2ab530 USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode
USB3 core expects pipe clock input for USB connection establishment
and functionality working. In case of maximum speed of USB3 core set
to HS/FS mode, it is required to disable pipe clock requirement and
instead use UTMI clock from HS PHY as clock input. Hence disable
this pipe clock requirement for the case, where maximum speed is set
to FS as well.

Change-Id: Ife9d6a16e1607b40c71eb1897947bf4645ac9561
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-10-25 22:03:59 -07:00
Subbaraman Narayanamurthy
ec38ffc845 leds: qpnp-flash-v2: fix safety timer configuration
Safety timer is using an offset of 1ms whereas it should use
10ms. Fix the calculation to configure safety timer properly.

CRs-Fixed: 1076402
Change-Id: If06c421c559277066cf9ffd86e71fe366ab7bf8d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 20:32:59 -07:00
Subbaraman Narayanamurthy
71d0b50560 leds: qpnp-flash-v2: fix ITARGET configuration
Currently, the code calculated to write to ITARGET based on the
brightness level or current is off by 2 bits. Fix it.

CRs-Fixed: 1079311
Change-Id: I58421ba7f784f7467015a5943aecc2dd0022145a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 20:32:58 -07:00
Linux Build Service Account
e76e6c8d93 Merge "coresight: tmc: skip tmc read if mem allocaiton failed" 2016-10-25 18:31:06 -07:00
Linux Build Service Account
4fc7d493eb Merge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()" 2016-10-25 18:31:05 -07:00
Linux Build Service Account
9f8e4e930a Merge "soc: qcom: use interruptible wait_for_completion API" 2016-10-25 18:31:04 -07:00
Linux Build Service Account
cdb01bf466 Merge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2" 2016-10-25 18:31:03 -07:00
Linux Build Service Account
8114dc9b37 Merge "ASoC: msmcobalt: Add independent clock support on codec" 2016-10-25 18:31:03 -07:00
Linux Build Service Account
6c6aeff205 Merge "ASoC: wcd934x: Update CPR register defaults" 2016-10-25 18:31:02 -07:00
Linux Build Service Account
a1989e62bc Merge "drivers: soc: Initialize return var to default value" 2016-10-25 18:31:01 -07:00
Linux Build Service Account
0861ec02cc Merge "soc: qcom: Use a deferrable timer base for the msm watchdog" 2016-10-25 18:30:59 -07:00
Linux Build Service Account
349ce03687 Merge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity" 2016-10-25 18:30:58 -07:00
Linux Build Service Account
6cc1473d14 Merge "USB: pd: Fix compilation issues for 32 bit support" 2016-10-25 18:30:57 -07:00
Linux Build Service Account
df72265f5a Merge "ASoC: wcd9335: Fix register sequence for CPE configuration" 2016-10-25 18:30:55 -07:00
Linux Build Service Account
e4fab74617 Merge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path" 2016-10-25 18:30:55 -07:00
Linux Build Service Account
82f8a0f9ac Merge "ARM: msm: dts: add second CPE session for msmcobalt" 2016-10-25 18:30:54 -07:00
Bhalchandra Gajare
06f5b93af0 ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online
During subsystem restart, when restart of the codec DSP is attempted,
the status is already moved to codec up whereas driver is checking
for codec down. This causes the initialization of components to be
skipped and codec dsp does not come back online. Change fixes the
condition check to make sure the correct sequence is followed.

CRs-Fixed: 1080392
Change-Id: I05345b8f5d108e59863ee4e37ed75fd32a284ee5
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-25 18:05:07 -07:00
Bhalchandra Gajare
0fa1d41b8a ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence
Enabling only the required memory for codec DSP helps reduce power
consumption with codec DSP is not used. Update the memory enable/
disable sequence such that the switchable memory domain is enabled
only when the codec DSP is being used.

CRs-Fixed: 1075303
Change-Id: I0552bf8a48c214b89e160fe4df145973f02c2788
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-25 17:47:18 -07:00
Olav Haugan
95ceec13f7 sched: Fix compilation issue with reset_hmp_stats
reset_hmp_stats was moved to another file and when CONFIG_CFS_BANDWIDTH
is enabled there is code still referencing this in the original file
causing compilation error.

Change-Id: Iab7fc8551b628c443ce751026b06c5ff4ebba39a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-25 13:13:09 -07:00
Olav Haugan
6812bb69d0 sched/fair: Fix compilation issue
Code does not compile with CONFIG_CFS_BANDWIDTH.

Change-Id: Idb74e9df4fcb55085ac869f5ba273cef4a3eb9eb
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-25 10:40:11 -07:00
Subbaraman Narayanamurthy
7a1b6d0276 leds: qpnp-wled: Fix configuration of AVDD TRIM and OVP registers
Currently the AVDD TRIM registers are being configured incorrectly.
Update the sequence to configure the TRIM register and the OVP
register based on predetermined values mapped to the target voltage
specified in the device tree. Also add support for performing
masked writes to the wled registers.

CRs-Fixed: 1082047
Change-Id: I4c99b598d5f484368712eab239f7de70b727c2aa
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 10:17:06 -07:00
Subbaraman Narayanamurthy
73518d1b29 leds: qpnp-wled: add a secure write API
Currently, for doing a secure write to the peripheral register,
secure access is acquired at the call site before writing to the
register. Optimize this by adding an API to do secure writes.
When a secure write is attempted, it should be atomic and not
raced with normal write. Add a mutex lock to synchronize the
normal and secure writes. While at it, fix the data parameter
passed to qpnp_wled_write_reg() as that doesn't really need a
pointer.

CRs-Fixed: 1082047
Change-Id: I6a678d9133b06dda2de1c6cfe4bbafacc594f299
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 10:07:19 -07:00
Subbaraman Narayanamurthy
0fec3cabfe leds: qpnp-wled: add support to read pmic revid
There are some features which needs to be enabled based on the
PMIC. PMIC information such as subtype, revision can be obtained
from revid peripheral. Hence add support to read pmic revid.

CRs-Fixed: 1082047
Change-Id: If0646f5ae111f75ababc405cbd2f7bcea899360e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 10:06:42 -07:00
Alex Sarraf
c38f93d110 input: misc: hbtp_input: Add support for multiple AFE
Add support for both HI04 and JDI/Rohm with DDIC
synchronization.

Change-Id: Ib6bddd5f43b41660304d240db39f4e273ede3af0
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-10-25 10:00:15 -07:00
Anirudh Ghayal
e8267988c3 platform: qpnp-revid: Add REVID details for PM/PM2FALCON
Add PMIC subtype details for PMFALCON and PM2FALCON.

CRs-Fixed: 1082022
Change-Id: Iad90353f66cf5ad7f83e3fc252d82cec45abce60
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-10-25 19:29:30 +05:30