Commit graph

576581 commits

Author SHA1 Message Date
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
Amit Nischal
0d9fffccf6 clk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon
The clock index used for registering the clock and
the index used by clients for clk_get does not match.
Fix the same by updating to the clock index used by clients.

Change-Id: I1b614cb70aa43087c122ce6c42305491e5f5b34b
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-25 18:52:59 +05:30
Shantanu Jain
4a643cd131 input: touchscreen: fix compilation errors for Goodix driver
Fix compilation errors for Goodix touch driver for msm-4.4
kernel after porting the driver. This includes replacing the
deprecated api(s) with proper ones and changing code for
proper compilation.

Change-Id: I2abd67a8ff647165ddedb385e80f8705d73d3100
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-25 16:49:09 +05:30
Purushottam Kushwaha
0d7846f7e6 cfg80211: Add support to configure a beacon data rate
This allows an option to configure a single beacon tx rate for an AP.

Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git
Git-commit: a7c7fbff6a408d00431c705bbe3dfc5f51e3f1c4
CRs-fixed: 1025311
Change-Id: I5f9627964d86c51cb8fb0c5c5f7c9f5f2e19b3e7
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
2016-10-25 15:05:04 +05:30
Gaurav Kohli
6d1dd1c4db ARM: dts: msm: Add support for Modem PIL on msmtriton
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I42a47e4386ca7a1bbbec428c8d2cbe307634cd1e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:07:09 -07:00
Gaurav Kohli
8800c8568a ARM: dts: msm: Add support for Modem PIL on msmfalcon
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I3e700bdae21b6e18b28cf5982e42e73d7ae953a5
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:00:53 -07:00
Gaurav Kohli
3ff1fcbead soc: qcom: pil-q6v5: Add support for qdspv62.1.5 reset
Update the reset sequence to support qdspv62-1-5 for MSMFALCON.
Also Enable one more memory bank during reset sequence for MSMFALCON.

Change-Id: Ib0d27c13c0ebdfac629c1469c9a91a0b84d03640
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:00:36 -07:00
Amit Nischal
76d0d08e11 clk: msm: Add COMMON_CLK branch memory flags
clk_set_flags would fail for clients using the
branch memory flags as the macros vary between the
COMMON_CLK_QCOM and COMMON_CLK_MSM. Fix the same by
adding the enum definitions.

Change-Id: I30cd3fb0435e085e76a60043b80b6ff7aded2819
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-25 10:04:39 +05:30
Syed Rameez Mustafa
5c647926d0 sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()
trace_sched_update_task_ravg relies on NULL pointers to ensure that
it doesn't access them. Make sure that when a task exits, these
pointers are set to NULL. Otherwise any call to update_task_ravg()
between sched_exit() and releasing the task structure will access
bogus pointers. In some cases those memory locations are unmapped
and cause a kernel panic.

Change-Id: I9eebb4fb35aca2c8424bfb29ae9d833650dc5ad4
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-24 18:44:02 -07:00
Osvaldo Banuelos
3dabb862f0 clk: osm: msm: allow WDOG status register to be enabled via debugfs
Enabling WDOG status register by default has power penalty.
Add support to allow the register to be configured via debugfs
instead.

CRs-Fixed: 1081757
Change-Id: I13156d82f544cd28a1579c23b18182c879c85767
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-10-24 17:39:33 -07:00
Vidyakumar Athota
b51f826e9f soc: qcom: use interruptible wait_for_completion API
Device suspend fails because of un-interruptible blocking read
function. Use wait_for_completion_interruptible API instead of
wait_for_completion to allow device suspend.

Change-Id: Ia537e776d0b322d56cd6003f95cdded5e695ceeb
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-10-24 17:03:40 -07:00
Yuanyuan Liu
0b2474a9bf icnss: Do top level reset when timeout to pull register state
When system timeouts to pull register state, we do wsi error
recovery, which causes an AHB bus hang. Fix this by doing top
level reset instead of wsi error recovery.

CRs-Fixed: 1080014
Change-Id: Ic5dbac9c2cd31f3193ede7cdc64249f7514e3e98
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-10-24 16:42:57 -07:00
Sudheer Papothi
d6a2581efd ASoC: wcd934x: Trigger codec DSP subsystem restart
When there is a fatal error on ADSP, audio subsystem restart(SSR)
gets triggered. As a part of audio SSR, trigger codec DSP
SSR to reset the codec DSP state.

Change-Id: Id9cbda04a4c36070e52919d3a34ebc871ac22a8e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 15:22:02 -07:00
David Collins
bb57d8b8e1 ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2
Enable VDD_GFX CPR aging adjustments for MSMCOBALTv2 parts with
CPR fusing revision greater than or equal to 2.  At most 15 mV
can be added onto the open-loop and closed-loop voltage as a
result of an aging measurement at runtime.  This maximum 15 mV
adjustment was previously accounted for in the fixed open-loop
and closed-loop voltage adjustments.  Therefore, remove 15 mV
from both the open-loop and closed-loop voltage adjustments for
all corners.

Change-Id: I44487bfcb4e21d76948cd836ad2dae18bc3d22f4
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-24 15:21:45 -07:00
Sudheer Papothi
80e0e34f04 ASoC: msmcobalt: Add independent clock support on codec
WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.

CRs-Fixed: 1022917
Change-Id: Ia02a1ffed911498dd6eb5df246e6da68a7802a92
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 15:21:19 -07:00