Commit graph

580119 commits

Author SHA1 Message Date
Linux Build Service Account
711ba9b4ec Merge "msm: rtb: record counter timestamp for every log record" 2016-12-23 03:55:26 -08:00
Linux Build Service Account
e82d67f799 Merge "usb: xhci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET" 2016-12-23 03:55:24 -08:00
Linux Build Service Account
753d9edb8a Merge "ASoC: wcd934x: Fix headset TX mode setting" 2016-12-23 03:55:22 -08:00
Linux Build Service Account
845d4badfd Merge "ASoC: wcd934x: Update class-H parameters based on headphone impedance" 2016-12-23 03:55:21 -08:00
Linux Build Service Account
25894fce14 Merge "ASoC: msm: decrement slim channel ref to set the property" 2016-12-23 03:55:20 -08:00
Linux Build Service Account
27e721b825 Merge "drivers: soc: qcom: Add error handling in function avtimer_ioctl" 2016-12-23 03:55:19 -08:00
Linux Build Service Account
b9a9185967 Merge "ARM: dts: msm: add devfreq nodes to msmfalcon target" 2016-12-23 03:55:13 -08:00
Linux Build Service Account
88a6ed6813 Merge "ARM: dts: msm: Add support for home hard key at QRD8998HB" 2016-12-23 03:55:12 -08:00
Linux Build Service Account
c38b5ff378 Merge "i2c-msm-v2:Synchronise runtime PM callback operations" 2016-12-23 03:55:12 -08:00
Linux Build Service Account
9721c27659 Merge "leds: qpnp-wled: Update WLED config" 2016-12-23 03:55:11 -08:00
Linux Build Service Account
a82ea635b1 Merge "defconfig: msm: Add support for CPU OSM clock" 2016-12-23 03:55:09 -08:00
Linux Build Service Account
81bd5027ae Merge "icnss: Add EXEC permission when assigning the MSA0 back to host" 2016-12-23 03:55:08 -08:00
Linux Build Service Account
7b5675f4ed Merge "clk: move check for CLK_ENABLE_HAND_OFF at unused tree" 2016-12-23 03:55:07 -08:00
Linux Build Service Account
85a244de87 Merge "clk: introduce CLK_ENABLE_HAND_OFF flag" 2016-12-23 03:55:07 -08:00
Linux Build Service Account
66fa9513e6 Merge "usb: phy: qusb2: Switch to SE clk from diff clk upon suspend" 2016-12-23 03:55:06 -08:00
Linux Build Service Account
c0949b8698 Merge "input: qpnp-power-on: Set ship mode in system_pwr_off" 2016-12-23 03:55:05 -08:00
Linux Build Service Account
87ffee40c5 Merge "msm: crypto: fix AEAD issues for HW crypto driver on msm-4.4" 2016-12-23 03:55:03 -08:00
Linux Build Service Account
1cb457387d Merge "msm: mdss: dp: fix handling of link training mutex" 2016-12-23 03:55:01 -08:00
Linux Build Service Account
37a1c6d1ab Merge "ARM: dts: msm: Update VA range for venus_ns and modify clock handle" 2016-12-23 03:55:00 -08:00
Linux Build Service Account
5d323d82ae Merge "ARM: dts: msm: Add TP device node into msm8998 interposer" 2016-12-23 03:54:59 -08:00
Linux Build Service Account
7cfca2bce0 Merge "msm: mdss: Move PP programming after mdp wait for ping pong done" 2016-12-23 03:54:55 -08:00
Linux Build Service Account
ab419b4fae Merge "msm: camera: Change %p into %pK" 2016-12-23 03:54:54 -08:00
Linux Build Service Account
de965d18f7 Merge "msm: sensor: correcting return value for get actuator info" 2016-12-23 03:54:53 -08:00
Linux Build Service Account
684de02b48 Merge "power: qpnp-fg-gen3: add SOC_REPORTING_READY property" 2016-12-22 18:50:47 -08:00
Linux Build Service Account
9481c431c4 Merge "msm: thermal: Update error handling of device offline" 2016-12-22 18:50:47 -08:00
Linux Build Service Account
a6bec25c9a Merge "spcom: abort any read() operation on SSR" 2016-12-22 18:50:46 -08:00
Linux Build Service Account
b649034edb Merge "ARM: dts: msm: Allocate memory for diag client for msmfalcon" 2016-12-22 18:50:30 -08:00
Linux Build Service Account
614d6508b4 Merge "ASoC: msm: add support for WCD interrupt config via LPI TLMM" 2016-12-22 18:50:25 -08:00
Linux Build Service Account
cc2de04539 Merge "ARM: dts: msm: Add kaslr offset IMEM entry for msm8998" 2016-12-22 18:50:24 -08:00
Linux Build Service Account
2e2825f85a Merge "ARM: dts: msm: Add support for new flash mode on msm8998 skuk board" 2016-12-22 18:50:23 -08:00
Subbaraman Narayanamurthy
a38365351b power: qpnp-fg-gen3: add SOC_REPORTING_READY property
Add SOC_REPORTING_READY property which indicates when the SOC
reporting is ready from FG driver. This can be read by healthd
daemon during its start.

Change-Id: I415e322e99bacd61c4e9ac921643d87d3eec4b3e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-22 15:10:43 -08:00
Subbaraman Narayanamurthy
5207bf3492 power_supply: Add SOC_REPORTING_READY property
Add SOC_REORTING_READY property to indicate if the SOC is ready
to be reported.

Change-Id: I53ac153ba9f7ae81bb0657b17e0e798fd3fe4f48
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-22 15:10:42 -08:00
Santosh Mardi
2e89457a54 ARM: dts: msm: add devfreq nodes to msmfalcon target
Add devfreq DCVS nodes mincpu, cpubw, memlat to msmfalcon
target.

Change-Id: I29572841624c1cb96d85e2dcfe620b455867d41e
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2016-12-22 18:03:43 +05:30
Linux Build Service Account
ba4fdd9852 Merge "msm: ADSPRPC: Add channel for compute/modem DSP" 2016-12-22 03:33:54 -08:00
Amir Samuelov
90b10dc700 spcom: abort any read() operation on SSR
Abort any read() operation to unlock the channel mutex.
On channel remote-disconnect notification, the local side should close
the channel.
However, open()/close()/read()/write() operations locks the channel mutex.
The glink rx-abort notification happens only after the remote-disconnect
notification, not as originally expected.

Change-Id: I77f8e6de6f1b5c447a3516380c51db9c7129d2f3
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-12-22 03:13:04 -08:00
Manoj Prabhu B
f095154643 ARM: dts: msm: Allocate memory for diag client for msmfalcon
This patch enables allocation of 5MB for new diag client
of memshare.

CRs-Fixed: 1100632
Change-Id: Iab69062336966e61683117a17974f46cd8f513aa
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-12-22 15:32:41 +05:30
Shrey Vijay
1ee08ea3dd i2c-msm-v2:Synchronise runtime PM callback operations
During system wakeup from suspend by connecting USB cable,
runtime PM framework transitions from enabled to disabled
state during i2c transaction. This causes asymmetric increment
and decrement of device's usage counter which blocks runtime
PM suspend callback.

To avoid this, remove rumtime PM status check on suspend path
to make it symmetric with the resume path. This takes care
of unaccounted increment/decrement of device's usage counter.

Change-Id: I47cfe2cd7d93ba5db57365cf250c600dac22bab1
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2016-12-22 01:46:01 -08:00
Laxminath Kasam
7227e02735 ASoC: msm: add support for WCD interrupt config via LPI TLMM
Configure LPI interrupt registers inorder to setup
WCD interrupt triggered via LPI TLMM as direct apps interrupt.

Change-Id: Ifd41990058f8bbce8ba488770ffbfcd9b6067ad6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-12-22 14:08:39 +05:30
Jin Fu
647124958f ARM: dts: msm: Add support for home hard key at QRD8998HB
Configure the button under the display panel as
a home key for QRD8998HB.

CRs-Fixed: 1103939
Change-Id: I03e4a8e10452ef53d8e35e7cee44bdf51f53483b
Signed-off-by: Jin Fu <jinf@codeaurora.org>
2016-12-22 15:50:27 +08:00
Taniya Das
44aa223a3e clk: move check for CLK_ENABLE_HAND_OFF at unused tree
The commit 04a0136aeea5 ("clk: introduce CLK_ENABLE_HAND_OFF flag")
assumes that the first time clock client calls a clk_prepare &
clk_enable, the clocks from that point of time could be on their own.
But there could be use cases which could have impacts due to this
handling. Moving the handoff counts for prepare and enable at unused
tree level.

Change-Id: I7d527571c2eb4d53d58d82126989bd673de12e2d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:42:24 +05:30
Michael Turquette
d8d0e55ed1 clk: introduce CLK_ENABLE_HAND_OFF flag
Some clocks are critical to system operation (e.g. cpu, memory, etc) and
should not be gated until a driver that knows best claims such a clock
and expressly gates that clock through the normal clk.h api.

The typical way to handle this is for the clk driver or some other early
code to call clk_prepare_enable on this important clock as soon as it is
registered and before the clk_disable_unused garbage collector kicks in.

This patch introduces a formal way to handle this scenario that is
provided by the clk framework. Clk driver authors can set the
CLK_ENABLE_HAND_OFF flag in their clk data, which will cause the clk to
be enabled in clk_register(). Then when the first clk consumer driver
comes along and calls clk_get() & clk_prepare_enable(), the reference
counts taken during clk registration are transfered (or handed off) to
the clk consumer.

At this point handling the clk is the same as any other clock which as
not set the new CLK_ENABLE_HAND_OFF flag. In fact no changes to any
clock consumer driver are needed for this to work.

Change-Id: Ib5247f6bceb1f555c03103f061af089755b2de62
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Patch-mainline: patchwork.kernel.org @ 02/11/16, 9:19
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:41:12 +05:30
Taniya Das
9ae68a63d8 defconfig: msm: Add support for CPU OSM clock
CPU OSM clock is required to be enabled for cpu to be able to scale
frequencies for the CPU.

Change-Id: I5680dc5333c9664e1316c29a91e29231f15eb4f1
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:29:22 +05:30
ansharma
20da6a6d27 leds: qpnp-wled: Update WLED config
Update WLED configuration to enable HVG_PULL_SWITCH bit to
temporarily pull up Hvgate with larger switch(for pm2falcon)
and enable DEBOUNCE_BYPASS_ILIM bit to remove debouncing for
Ilim. This guarantee stable operation of WLED.

CRs-Fixed: 1102641
Change-Id: I39a1266f4158e71238f374b6cba49e1a8c2b1a3b
Signed-off-by: ansharma <ansharma@codeaurora.org>
2016-12-22 10:28:35 +05:30
Taniya Das
79871232a8 clk: qcom: Support CPU clock for OSM for common clock framework
Following list of changes have been made
- Update the clock osm to register to common clock framework
- Update clock ops as per common clock framework
- cleanup unused function (clk_osm_setup_osm_was)
- Fix tabs for macro definitions
- Add clocks ids for power and perf clock for clients

Change-Id: I389cc9e93a26a434be752cf74444d6c0985ff36d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 09:09:20 +05:30
Fenglin Wu
4569877e35 input: qpnp-power-on: Set ship mode in system_pwr_off
Set ship mode in qpnp_pon_system_pwr_off() API if it has been requested
previously.

CRs-Fixed: 1092969
Change-Id: I6e315eec256f01c143ffc8b463279f2b30e64610
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-12-22 09:36:13 +08:00
Hemant Kumar
7c2b101e73 usb: phy: qusb2: Switch to SE clk from diff clk upon suspend
Upon out of XO shutdown due to remote wakeup, as soon as XO gets
restored refclk is supplied to phy before even refgen current
is stabilized. USB3 controller asserts suspend_n signal asynchronously
for remote wake-up scenario solely based on utmi_linestate switching
from J state(suspend) to K state(resume). As a result phy attempts to
lock PLL since all prerequisites are met but, PLL lock attempt fails
and phy gets stuck. Since GCC_RX1_USB2_CLKREF_EN which was supposed to
control differential(CML) clock output to QUSB2 is a no-op, hence switch
to SE clock by PHY CSR controlled mux upon suspend. This prevents refclk
output to go directly to phy upon XO restore and prevents premature phy
pll locking. Phy PLL actually gets locked when phy driver switches back
from SE clk to diff clk.

Change-Id: Ie5474c42ccdd88df4c101b2113ca8d924eddf037
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-12-21 17:21:26 -08:00
Aravind Venkateswaran
5f41a670d1 msm: mdss: dp: fix handling of link training mutex
Remove the additional unbalanced unlock being called for the
link training mutex. This fixes random crashes seen while
running Display Port connection/disconnection tests.

Change-Id: I2fce80cec72e3bd8b1561fd46fa1a1520cddd294
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:46 -08:00
Aravind Venkateswaran
c23be78397 msm: mdss: dp: fix calculation of link rate
If the calculated link rate based on sink's capabilities exceeds
the maximum supported link rate, do not error out. Instead, cap
the link rate at the maximum supported rate. This fixes instability
issues seen when connecting to sinks at 4K resolution.

Change-Id: I214bb19385f855af61da628fdf1cf7efc5dd08d6
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:37 -08:00
Tatenda Chipeperekwa
c76f7c2f3f msm: mdss: dp: add support for PHY compliance tests
Add support for PHY compliance tests by parsing requests
from the reference sink and generating the requested
PHY test patterns from DP PHY.

CRs-Fixed: 1076516
Change-Id: I290ec786bbe5c45873265ea74290eefcd3d16cb1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-12-21 16:25:28 -08:00
Linux Build Service Account
e379f786aa Merge "wil6210: Block write ioctl to the card by default" 2016-12-21 15:48:16 -08:00