Commit graph

580395 commits

Author SHA1 Message Date
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
Tirupathi Reddy
d78eb55dee defconfig: Compile GFX LDO regulator driver for msmfalcon
GFX LDO regulator driver powers GPU subsystem in msmfalcon. This
LDO regulator is CPR managed. Enable GFX LDO regulator and platform
specific MMSS CPR regulator to be compiled for msmfalcon.

CRs-Fixed: 1068294
Change-Id: I2111fe55c9335d57ac91f18f4a4fb3689d80660d
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-12-23 16:52:27 +05:30
Tirupathi Reddy
485a3c90cd regulator: cpr4-mmss: Add mmss CPR platform specific driver for msmfalcon
The MMSS CPR in msmfalcon requires a slightly different configuration
than the existing cpr3 based MMSS CPR instances. Create a new platform
specific mmss cpr file for capturing the falcon specific configuration.

CRs-Fixed: 1068294
Change-Id: I779074d0aba35827e1a8264385149967cb9973f3
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-12-23 02:08:05 -08:00
Xiaogang Cui
e4aff446e0 ARM: dts: msm: Add initial support for msm8998 QRD SKUK EVT3 board
Add initial device trees for msm8998 QRD SKUK EVT3 board.

Change-Id: I476397d88e0f9d2b32ae375afc6f15eca4b9ec95
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
2016-12-23 01:56:10 -08:00
Ashay Jaiswal
babcc512ba ARM: dts: msm: add support of PM3FALCON based MSMFALCON platform
MSMFALCON platform can support either PM2FALCON or PM3FALCON PMICs,
add support for the same.

CRs-Fixed: 1104886
Change-Id: Ic44359e224e0f9070238748bd9b16eed35974ba6
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-12-23 14:34:02 +05:30
Sarada Prasanna Garnayak
cd753f0c13 ARM: dts: msm: update icnss device node for msm8998-interposer
1. Status enabled for icnss platform driver probe.
2. Added smmu sid for wlan copy engine.
3. Added vadc and adc_tm voltage regulator entry for wlan
   calibration data.

CRs-Fixed: 1104976
Change-Id: Ic8c9657752271026d796ecd6c3b9f9f46f831f37
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-12-23 14:25:41 +05:30
Vevek Venkatesan
73b5dafa88 input: misc: fix heap overflow issue in hbtp_input.c
Add the boundary check for ABS code before setting ABS params,
to avoid heap overflow.

Change-Id: I6aad9916c92d2f775632406374dbb803063148de
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
2016-12-23 12:30:38 +05:30
Liangliang Lu
d2d4c44628 RM: dts: Update SD card Detect GPIO for msmfalcon
Update SD card detect gpio for msmfalcon.
Remove wrong pin mux on GPIO_54 and change
cd-gpios to GPIO_95.

CRs-Fixed: 1100528
Change-Id: I1fd7b7e7324b79544608a9d9ce73aa53608d1f3e
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2016-12-23 14:05:33 +08:00
Srinivas Ramana
0e39e5e314 ARM: dts: msm: set rcu_expedited for msmfalcon and msmtriton
The commit b093be62e8 ("ARM: dts: msm: set
rcu_expedited for msm chisets") enables rcu_expedited
to mitigate performance issues. Enable this for msmfalcon
and msmtriton as well.

Change-Id: Ic64d89b960c5effada93118d67a30cc051640be2
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-12-23 11:34:17 +05:30
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
Zhen Kong
6f19ae8828 smcinvoke: support listener service request
Make change to support listener service request from mink object.

Change-Id: I9a707d953a85c16c9c5be82fd36960b49da36e3c
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-12-22 18:11:30 -08:00
Zhen Kong
c9153d1ae8 qseecom: support listener request for smcinvoke
Add a new kernel API to support listener service for smcinvoke.

Change-Id: Ifeed957b99d2becd986629f60e145d6fdb717244
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-12-22 17:54:34 -08:00
Linux Build Service Account
7aa1be4147 Promotion of kernel.lnx.4.4-161222.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1103705   Id95a65cefc25174eaf2bcd9b3d97fd8d3e632adb   iio: rradc: Update charger die temperature coefficients
1103814   If51734ae27add47a856ca378faf11e54b81e4dcf   ARM: dts: msm: Enable context aware and quirks for A512
1104081   I2a17d95328bef91c4a5dd4dde418296efca44431   sched: Fix out of bounds array access in sched_reset_all
1102981   I69001073af6b72875f6d023a1eb754fe0a0e00a1   ARM: dts: msm: Enable camera for msmfalcon.
1059232   I92ace85ee7fd40c3f33f1b9f7bdd32469d990d84   USB: dwc3-msm: Add support for voting for PM_QOS_LATENCY
1103251   I604a94ed28cb8df389eea8815ba0b279c7b7603c   ARM: dts: msm: Update Venus PIL clock voting for MSMFALC
1088153   I3499b2ee5bb1ddb74fc94fa55d3f5a8170d72b98   ARM: dts: msm: Modify BT node for QRD interposer msm8998
1097836   I175d76cd193d649f8b91cdab5000f6e1c66de15e   cfg80211: Define macro to indicate support for update co
1085388   I2f083a399b0d433ac7e8fd358f75ec0778d0396a   ARM: dts: msm: Disable clock gating on msmfalcon
1094763   Ib132eaa99e0632807124f44c8dd3bc90cf6710b0   ASoC: msm: Add routing controls for hfp, port mixer
1099759   Ib8fc3ed96e4704e71d9224a067fd8d9e88373cf0   drivers: mfd: clean up bootup info logs
1096945   I8fc3f646a0127ec705239be6a7de858a4f805acc   wil6210: Block write ioctl to the card by default
1059232   I40a86a062910253401dc4a59f7ae84c518eebb5e   ARM: dts: msm: Allow only wfi based on USB irq load for
1102504   Ia995e60b8d8d335239be0a35876d1becfd9a0f3c   soc: qcom: glink_pkt: Remove BUG_ON in glink_pkt_write
1088153   Ibc1d54ca18c57a83c08e8a1eafc63e6aeb95f7c4   ARM: dts: msm: Enable blsp1_uart3_hs for QRD interposer
1086571   I70c5ec050f88e23c1d09fe0d19ac34a4a56977a1   ARM: dts: msm: Add battery profile for FG in qrd8998 int
1068294   I510c2fe7f763c8d44c67794c889c687df60398d7   regulator: gfx-ldo: support voltage based regulator oper
1100789   I84a936f834101ba2ad9e354c4d8df6d3c051a2f7   soc: qcom: glink_ssr: Add rx done for received packets
1094973   I98e443e894d81bcd815418f2a79723db14d87ce4   msm: ADSPRPC: Add channel for compute/modem DSP
1097863   Ib55302c8fc9dbf2a4114a793e17f9b2dc9ade37c   nl80211: Use different attrs for BSSID and random MAC ad
1096083   I22bc2803d1cfa57777dda41c6d635b60f2740fad   ARM: dts: msm: configure wled for mdss on falcon interpo
1097836   I184b8e13bc5f7e2ed21e5337673c6ba82cd2f4fe   cfg80211: Add support to update connection parameters

Change-Id: I9b9d04bbef27f5576bd29dde1fe8f9bbcd9c419f
CRs-Fixed: 1094763, 1100789, 1103814, 1103705, 1097863, 1096083, 1094973, 1097836, 1085388, 1099759, 1059232, 1096945, 1103251, 1102504, 1068294, 1088153, 1104081, 1086571, 1102981
2016-12-22 17:53:42 -07:00
Tony Truong
9edb4da273 msm: pcie: add mutex for PCIe enumeration
PCIe bus driver supports a few ways for clients to
trigger enumeration. To prevent race conditions,
add a mutex to secure the enumeration process.

Change-Id: Ifa4f6d2b4edee85e750e6e44626c89ec0de966cf
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-12-22 15:51:18 -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
Dinesh K Garg
812ba4c42a msm: mink: Send full buffer size to TZ for smcinvoke
Currently, smcinvoke driver sends actual content size instead of
size of actual buffer. As per new requirement, TZ needs full
buffer size.

Change-Id: I9e051d8825ff753f801155d1ea941034fa5e1e12
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2016-12-22 11:55:08 -08:00
Girish Mahadevan
6d97e2ef40 spi: spi_qsd: Don't restrict first transfer in FIFO mode
In FIFO mode before putting the core in run state the driver currently
only writes a word of data if the payload size is more than the FIFO
size.
Instead always write FIFO worth of data before moving the core to
run state.

Change-Id: I47db9f66c95846dbff882f631b915655c33c3d55
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2016-12-23 00:41:35 +05:30
Sridhar Ancha
baa5a76ae4 msm: ipa3: Fix to release IPA clock during ap suspend
When AP is going to suspend, there is a possibility that
IPA clock is released twice due to sps_release_resource being
called from 2 contexts. Make a change to protect
sps_release_resource to make sure IPA clock is released
only once.

Change-Id: I39a806ee6c5c836928bc07295d17e12108836709
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-12-22 10:41:14 -08:00
Prakash Kamliya
a088541fb5 msm: kgsl: Do a midframe sampling of power stats if enabled
Currently we sample power stats at the expiry of
cmdbatch. In cases where cmdbatch takes a long time
to finish the job, it delays power stats sampling,
in effect it delays DCVS decision for changing the
frequency. Do a midframe power stats sampling and
feed it to DCVS if it is enabled.

Change-Id: I547d792b38649aa1d60525b0dc335791b37989fd
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
2016-12-22 20:55:12 +05:30
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
Raviteja Tamatam
b2dcc0a3b1 ARM: dts: msm: add mdss node for msmfalcon target
Add mdss node for msmfalcon target which is used by
display driver.

Change-Id: I49efddea0228e3129d36eabc102d6df0fcd53d12
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2016-12-22 17:11:40 +05:30
Linux Build Service Account
ba4fdd9852 Merge "msm: ADSPRPC: Add channel for compute/modem DSP" 2016-12-22 03:33:54 -08:00
Sandeep Panda
f9bf3dd7e9 clk: qcom: add MDSS PLL support for msmfalcon
Add the msmfalcon compatible string to MDSS PLL driver dt
table list so that MDSS PLL driver initialization takes place
for msmflacon platform.

Change-Id: I806456737485dfcbca8a71d59db0927bbd843708
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-12-22 16:58:02 +05:30
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
Chandana Kishori Chiluveru
c2e31d922c usb: gadget: f_qc_rndis: Fix double-free in qcrndis_free_inst
qcrndis_free_inst function can double free f_qc_rndis pointer.
Hence fix this memory bug in qcrndis_free_inst function.

Same bool RNDIS flag is used for USB_CONFIGFS_RNDIS and
USB_CONFIGFS_QCRNDIS. Add bool Change in Kconfig to differentiate
these two different configs.

Change-Id: I8e7c4be090107618cd6cbac394a57f109f8a1ced
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-22 16:38:43 +05:30
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
Chandan Uddaraju
d8f07093fc mdss: display-port: add support for multiple resolutions
Remove the "down stream" registration during EDID
initialization so that all the support resolutions
are exposed to the framework.

Change-Id: I9dcc89d75f97d2c88563af6389a3f87a7982b155
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-12-21 23:39:24 -08:00
Aravind Venkateswaran
77ac4bf704 msm: mdss: dp: fix compilation issues for 32-bit architectures
Commit 4216b747aa5d6ac0171ab584237cdaec1044e4e7 ("mdss:
display-port: add support to configure transfer unit attributes")
incorrectly handles 64-bit integer divisions which may lead to
errors while compiling for 32-bit target architectures. Fix these
errors.

CRs-Fixed: 1086278
Change-Id: I1ae86f2ee72b85c78d34d5fa8a09e5c467bcde86
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 23:37:27 -08:00
Chandan Uddaraju
cbe07adbf2 mdss: display-port: add support to configure transfer unit attributes
Add code to calculate transfer unit parameters that change depending
on the DP monitor/Sync resolution. Use these parameters to configure
the transfer unit registers.

CRs-Fixed: 1086278
Change-Id: If2978d3721c7ac6910379f3d31342f820062e3c6
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-12-21 23:37:26 -08:00
Aravind Venkateswaran
1c8ee2be72 msm: mdss: dp: add support for downstream device power management
Implement the necessary programming sequence to configure the
uPacket RX of a connected downstream device in power save mode.
Add a new sysfs node to trigger the configuration as follows:

To enter power save mode:
   * echo 1 > /sys/class/graphics/<fbi>/psm

To exit power save mode:
   * echo 0 > /sys/class/graphics/<fbi>/psm

where fbi is the framebuffer node corresponding to the display
port device.

CRs-Fixed: 1076516
Change-Id: I306ff4451d56dfa7edcff93fe26842ae9af71b69
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 23:23:40 -08:00