OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoqcom-charger: show correct battery status while charging via wireless
Harry Yang [Tue, 28 Jun 2016 00:58:51 +0000 (17:58 -0700)]
qcom-charger: show correct battery status while charging via wireless

POWER_SUPPLY_STATUS shows 'Discharging' when DCIN is the only charging
input, because current input online report is solely based on USB.
DCIN is included to fix the issue.

CRs-Fixed: 1034899
Change-Id: I58b8ca712a7900caf37bf79f5281fb3b6dab80f2
Signed-off-by: Harry Yang <harryy@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: Fix FE id check in routing driver
Ben Romberger [Tue, 3 May 2016 22:37:18 +0000 (15:37 -0700)]
ASoC: msm: qdsp6v2: Fix FE id check in routing driver

Modify FE ID check to use > instead of >= since
MSM_FRONTEND_DAI_MM_MAX_ID is defined as
MSM_FRONTEND_DAI_MULTIMEDIA16 which is a valid
FE ID.

Change-Id: I0ba4d62e3723841c3dfccdca210c80cd220f78f7
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
8 years agoARM: dts: msm: Add initial device tree files for falcon RUMI
Venkatesh Yadav Abbarapu [Wed, 29 Jun 2016 12:59:08 +0000 (18:29 +0530)]
ARM: dts: msm: Add initial device tree files for falcon RUMI

Adding the device tree files for RUMI platform.

Change-Id: I980e39b8c072fc2ec35d84b8698c40c770f7f041
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
8 years agomsm: vidc: Remove forced-setting of layer-wise bitrate for HP
Praveen Chavan [Thu, 2 Jun 2016 06:00:33 +0000 (23:00 -0700)]
msm: vidc: Remove forced-setting of layer-wise bitrate for HP

Layerwise bitrate with predefined distribution table is applied
if HP is enabled. This is wrong (since client may configure
custom distribution) and unnecessary (client may not configure
layerwise distribution and use cumulative).

CRs-Fixed: 1023504
Change-Id: I053587ae85b36ce0b08fdb5918c0f6b9d678dd24
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
8 years agoqseecom: make change for unload TA
Zhen Kong [Wed, 6 Apr 2016 20:08:51 +0000 (13:08 -0700)]
qseecom: make change for unload TA

When unloading a TA, the operations to check ref_cnt,
scm_call to unload TA, free app list entry should be
within one critical section. Otherwise, if another
thread comes in and tries to load TA, TA status will
be out-of-sync. so move __qseecom_cleanup_app()
and __qseecom_reentrancy_check_if_no_app_blocked()
to the beginning of qseecom_unload_app(), as these
functions may release app_access mutex for a short
period.

Change-Id: I3e961f4fe1728a32314a3acf7af719374c90d01f
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
8 years agodefconfig: arm64: msm: Disable qtaguid and net activity stats
Bryse Flowers [Thu, 7 Jul 2016 17:45:42 +0000 (10:45 -0700)]
defconfig: arm64: msm: Disable qtaguid and net activity stats

Temporarily disable modules while stability issues are resolved.

Change-Id: I6bab3370caf776de25316da58ca48fcd9fbc4b5e
CRs-Fixed: 1035969
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoASoC: msmcobalt: Fix slimbus tx channel configuration
Sudheer Papothi [Wed, 6 Jul 2016 15:59:18 +0000 (21:29 +0530)]
ASoC: msmcobalt: Fix slimbus tx channel configuration

Slimbus tx channel configuration is not updated properly in
msmcobalt machine driver. Fix slimbus tx channel configuration
for proper functionality of audio recording usecases.

Change-Id: I96010edabd04fef0eeb3cbb0b8f1a11d178d99b5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoarm64: defconfig: msm: enable MODULE_SIG for msm chipsets
Satya Durga Srinivasu Prabhala [Wed, 6 Jul 2016 18:17:55 +0000 (11:17 -0700)]
arm64: defconfig: msm: enable MODULE_SIG for msm chipsets

MODULE_SIG is needed to check modules for valid signatures upon load.

CRs-Fixed: 1018761
Change-Id: Idc368aff7090bcb52ae598faae9f95c1ffe1d4cf
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
8 years agodriver: thermal: Configure ARM threshold instead of low
Ram Chandrasekar [Fri, 3 Jun 2016 21:01:19 +0000 (15:01 -0600)]
driver: thermal: Configure ARM threshold instead of low

LMH DCVSh will retain the mitigation till it clears the Low
threshold. With mitigation happening at 95C, configuring the
low threshold as 65C will hold the mitigation till it clears 65C,
which will impact the performance.

Instead of configuring the low threshold, configure the ARM threshold
from HLOS and low threshold will be configured 2C less than the
high threshold in the trust zone.

CRs-Fixed: 1024370
Change-Id: Ifb303d7266c98eb94c5eb6f806b7c5e1d95236d3
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agomsm: sde: Correct rotator irq enable mismatch
Alan Kwong [Wed, 6 Jul 2016 16:11:44 +0000 (12:11 -0400)]
msm: sde: Correct rotator irq enable mismatch

This corrects rotator irq enable mismatch by moving enable/disable
sequence to resource allocation/deallocation time.  This will
eliminate race condition between regdma start and wait for done,
which causes unacknowledged rotator interrupt to continuosly trigger
MDSS main interrupt handler, ending in watchdog reset.

CRs-Fixed: 1035411
Change-Id: I597b58b478a35e9c3e3afb1a2ddd20ad87961c1a
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
8 years agomsm: sde: Updating linear format definition for v4l2 rotator
Benjamin Chan [Wed, 22 Jun 2016 18:54:08 +0000 (14:54 -0400)]
msm: sde: Updating linear format definition for v4l2 rotator

Providing additonal linear format support for v4l2 rotator in mdss 3.x
hardware.

CRs-Fixed: 1032294
Change-Id: Ie8a19341831d4ffaea36898a80c71ab25f5daf3c
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
8 years agoARM: dts: msm: Add dts entry mpm2-sleep-counter for MSMCOBALT
Runmin Wang [Sat, 2 Jul 2016 00:38:40 +0000 (17:38 -0700)]
ARM: dts: msm: Add dts entry mpm2-sleep-counter for MSMCOBALT

Add dts mpm2-sleep-counter node which is used by the boot_stats driver.
This dt node gives imem offset to read boot stats written by the
bootloader.

CRs-Fixed: 1037982
Change-Id: I4f8ec495ae02908d1d8cd7e86148a6d4bd38b198
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agomfd: qcom-i2c-pmic: add option to skip irq control
Nicholas Troast [Fri, 1 Jul 2016 19:53:14 +0000 (12:53 -0700)]
mfd: qcom-i2c-pmic: add option to skip irq control

Some MFD PMIC configurations do not support interrupts. Make the interrupt
controller optional to support these PMIC configrations.

Without an interrupt controller this driver simply passes a regmap to
its children.

CRs-Fixed: 1037797
Change-Id: I52b909dd226494987c79ed106ffdf9892d966ef1
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agoARM: dts: msm: create a separate dtsi file for msmcobalt qrd
Runmin Wang [Thu, 30 Jun 2016 00:27:05 +0000 (17:27 -0700)]
ARM: dts: msm: create a separate dtsi file for msmcobalt qrd

Following the convention like MTP and CDP, create a separate dtsi file
for msmcobalt qrd platform.

CRs-Fixed: 1036660
Change-Id: I8ccbbc9ef0795397614ad0644fd1f2b5e31e3780
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agoARM: dts: msm: Update MPM interrupt mappings for cobalt
Archana Sathyakumar [Tue, 14 Jun 2016 20:07:10 +0000 (14:07 -0600)]
ARM: dts: msm: Update MPM interrupt mappings for cobalt

Update MPM interrupt mapping to bypass some of the interrupts as per the
HW specification.

CRs-fixed: 1032455
Change-Id: I60c60470a649eecd5bacf0b39b20dff58c910897
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
8 years agoARM: dts: msm: configure default CMA region for msmcobalt
Liam Mark [Fri, 3 Jun 2016 18:07:36 +0000 (11:07 -0700)]
ARM: dts: msm: configure default CMA region for msmcobalt

Configure the size of the default CMA region in DT.
Configuring the default CMA region in the DT is cleaner than using
CONFIG_CMA_SIZE_MBYTES since it is easier to configure per target
and the alloc ranges can be specified in DT.

CRs-Fixed: 1024204
Change-Id: I7d999382dcb6223d84424173a1726c250520ad04
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agoARM: dts: msm: return unused pIMEM Vault memory for msmcobalt
Liam Mark [Fri, 3 Jun 2016 17:39:37 +0000 (10:39 -0700)]
ARM: dts: msm: return unused pIMEM Vault memory for msmcobalt

Not all of the pIMEM Vault memory carveout is being used in msmcobalt.
Return unused portion of the pIMEM Vault carveout memory to HLOS.

CRs-Fixed: 1024170
Change-Id: Ie0cfab09192ca6b09ec4fe171aaf544e3fb5f08f
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agosound: usb: Add support to share iova with remote processor
Hemant Kumar [Tue, 22 Mar 2016 23:35:16 +0000 (16:35 -0700)]
sound: usb: Add support to share iova with remote processor

ISOC data transfer for audio device is offloaded to remote
usb audio driver entity. This requires remote entity to access
device context info, event ring, transfer rings and transfer
buffers allocated by APPS XHCI device. Hence add a platform
device which maps the XHCI device physical memory to virtual
memory and shares with remote processor's iommu. All the memory
info is then sent over QMI to remote entity.

Change-Id: I1abc80652a167cefa667b914b3a80a87326c3d44
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agosound: usb: Add support for usb audio qmi service
Hemant Kumar [Thu, 28 Jan 2016 19:41:42 +0000 (11:41 -0800)]
sound: usb: Add support for usb audio qmi service

Upon usb audio device enumeration remote entity
communicates with usb audio qmi server to enable
or disable particular audio stream on usb audio
device. This off loades ISOC data transfer
operations to remote entity and allows APQ to go
to power collapse more frequently for better
power saving.

Change-Id: I2c9b0ba0837f8fec5c320e3117aa3b2f553db6b2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoARM: dts: msm: add proxy vote for DSI supplies for msmcobalt
Aravind Venkateswaran [Wed, 22 Jun 2016 19:19:28 +0000 (12:19 -0700)]
ARM: dts: msm: add proxy vote for DSI supplies for msmcobalt

When continuous splash screen feature is enabled, the display needs to
be kept alive during the kernel boot up. Add proxy vote for all the
regulator supplies needed to keep the display panel alive over the DSI
interface until the display driver hand off can be executed.

CRs-Fixed: 1037857
Change-Id: I95544aaf607887ae34eace8a9b1f18a1375c5c6d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
8 years agoclk: msm: clock-mmss-cobalt: Add display port clock support
Deepak Katragadda [Mon, 29 Feb 2016 22:33:20 +0000 (14:33 -0800)]
clk: msm: clock-mmss-cobalt: Add display port clock support

Add support for the DP link and crypto clocks on MSMCOBALT.

CRs-Fixed: 1028725
Change-Id: I6cdb366499f9589dff9a42491c7ff357e98d65c5
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoARM: dts: msm: Add regulator node to flash-led for pmicobalt
Devesh Jhunjhunwala [Fri, 27 May 2016 09:46:12 +0000 (02:46 -0700)]
ARM: dts: msm: Add regulator node to flash-led for pmicobalt

The flash-led switch node must vote on the pmicobalt BoB
regulator. Hence, add this regulator node to that.

CRs-Fixed: 1024187
Change-Id: Ic4ec03e4fd545d44118c2225a3f8e26901ca1d81
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add regulator support
Devesh Jhunjhunwala [Thu, 2 Jun 2016 18:59:58 +0000 (11:59 -0700)]
leds: qpnp-flash-v2: add regulator support

Add support to control regulators required for
flash-led. The pmicobalt_bob regulator is one
such regulator required by the flash-led device.

CRs-Fixed: 1024187
Change-Id: I1515fba2fb04c0b4d21828af3cea6d322262ab14
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add callback for max current query
Chun Zhang [Wed, 6 Apr 2016 06:36:54 +0000 (23:36 -0700)]
leds: qpnp-flash-v2: add callback for max current query

Flash LED is a high energy aggregator from system as it is capable
to provide current up to 3750mA for illumination. Therefore, it
should be used with caution especially when battery state of charge
is low. Therefore, add a function which can be used by clients like
camera to query the flash current limit before using flash LED. This
protects the system from a possible UVLO condition.

CRs-Fixed: 964855
Change-Id: I17fa4f28cc151e3a3ad89d284995a3fa770bec68
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add support for strobe configuration
Chun Zhang [Thu, 17 Mar 2016 00:24:17 +0000 (17:24 -0700)]
leds: qpnp-flash-v2: add support for strobe configuration

Flash LED module supports various kinds of strobe support. Strobe
type can be hardware or software, active high or low, and level or
edge trigger. Add support for configuring strobe type through
device tree properties.

CRs-Fixed: 1024187
Change-Id: Ief6a610c82b7f645966c596f543a1d30f7a40dcc
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agomsmcobalt: Add delay to check ADSP state during SSR
Shiv Maliyappanahalli [Wed, 6 Jul 2016 19:19:55 +0000 (12:19 -0700)]
msmcobalt: Add delay to check ADSP state during SSR

During SSR(subsystem restart), add a delay when ADSP state
is not yet ready. This will avoid excessive logging when
ADSP state is not ready.

Change-Id: I7e127d97cdd22409d4e70788a7cf2013593d3bfe
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agoASoC: qdsp6v2: Fix apr registration failure in q6core
Shiv Maliyappanahalli [Wed, 6 Jul 2016 19:11:12 +0000 (12:11 -0700)]
ASoC: qdsp6v2: Fix apr registration failure in q6core

It is possible that core service can register with APR in
different contexts and may result in apr_register returning
EALREADY error while core service gets a NULL handle.

Avoid the race condition by holding command lock to ensure
that apr_handle does not get overwritten.

Change-Id: I8863185651fde8d29b5b8d8f183544bf0f215dbe
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agomedia: videobuf2: Increase max buffers
Shubhraprakash Das [Wed, 6 Jul 2016 00:42:45 +0000 (17:42 -0700)]
media: videobuf2: Increase max buffers

Increase the maximum video buffers to 64 as with camera 64
buffers are allocated and used.

CRs-Fixed: 1039456
Change-Id: I37d91c4f7e5d98333cf6be3c75168e134ae78060
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
8 years agomsm: ipa3: fix the double ipa3_pre_init issue
Skylar Chang [Wed, 22 Jun 2016 23:28:29 +0000 (16:28 -0700)]
msm: ipa3: fix the double ipa3_pre_init issue

With smmu enabling, ipa3_pre_init is actually
probed twice and causing the crash, the fix
is to do only once.

Change-Id: I20bd718c8cb70029c4dd46c52dbece326b90ef80
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agoARM: dts: msm: Change camera mount angle for msmcobalt
Viswanadha Raju Thotakura [Wed, 1 Jun 2016 23:25:47 +0000 (16:25 -0700)]
ARM: dts: msm: Change camera mount angle for msmcobalt

Change rear camera mount angle to fix inverted preview
for msmcobalt MTP design.

CRs-Fixed: 1021009
Change-Id: I31a49465545e4b9a562b66bff7353d91817205f2
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
8 years agodrivers: soc: set apr handle to NULL on glink_open error
Shiv Maliyappanahalli [Fri, 8 Jul 2016 20:00:23 +0000 (13:00 -0700)]
drivers: soc: set apr handle to NULL on glink_open error

After sub system restart, opening glink channel while
lpass transport is not up results in failure and returns
error pointer. APR glink client although returns error for
the first glink command, does not set the apr handle to NULL
and incorrectly assumes err pointer as a valid handle when
opening the channel again.

Fix this by updating the apr handle to NULL when glink_open()
fails.

Change-Id: I53a219b1ebed5bc3593d500d80d580aac6431ab5
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agomsm: vidc: add ion_handle checking before mapping buffers
Abdulla Anam [Sat, 25 Jun 2016 11:25:55 +0000 (16:55 +0530)]
msm: vidc: add ion_handle checking before mapping buffers

Compare ion handles in driver instead of matching fds
to check if a buffer is already mapped or not.

Bug: 28747768

CRs-Fixed: 1026885
Change-Id: Ifd18d8689351c4a6a22c988d359fb413be19e142
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
8 years agomsm: vidc: update the check to ignore extradata plane in dqbuf
Praveen Chavan [Thu, 16 Jun 2016 22:49:59 +0000 (15:49 -0700)]
msm: vidc: update the check to ignore extradata plane in dqbuf

userptr may or may not be a null-value. Checking for this field
to qualify a plane as extradata has no merit. Ignore that check.

Bug: 28747768
CRs-Fixed: 1026885
Change-Id: I08d85ef462f09003aaa17f6ebc5d27de7083796f
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
8 years agoiommu/iommu-debug:: initialize variables before use
Shiraz Hashim [Mon, 4 Jul 2016 09:35:35 +0000 (15:05 +0530)]
iommu/iommu-debug:: initialize variables before use

Initialize return values to their default before being
used.

Change-Id: Ie4dd908657573e5110bce65931d5507125da4c40
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agoiommu/io-pgtable-fast: validate data before use
Shiraz Hashim [Mon, 4 Jul 2016 09:35:14 +0000 (15:05 +0530)]
iommu/io-pgtable-fast: validate data before use

Return error on data allocation failure to prevent use
after free case.

Change-Id: I9d173756e277c9006220c02c209309167f179609
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agomsmcobalt: enable audio over HDMI
Shiv Maliyappanahalli [Wed, 29 Jun 2016 00:42:40 +0000 (17:42 -0700)]
msmcobalt: enable audio over HDMI

Add HDMI audio back end and associated apis to
configure channel, format and sample rate to
enable audio over HDMI.

Change-Id: Ieef8a2658f9730a9268041ac93ea3958489f2eae
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agoARM: dts: msm: enable audio over HDMI for msmcobalt
Shiv Maliyappanahalli [Wed, 29 Jun 2016 00:41:29 +0000 (17:41 -0700)]
ARM: dts: msm: enable audio over HDMI for msmcobalt

Add device tree entries to enable audio
over HDMI.

Change-Id: Ie9bb609f9681580d90e5ec35b89e587758c272d4
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agowil6210: fix chan check in wil_p2p_listen
Maya Erez [Thu, 9 Jun 2016 06:07:50 +0000 (09:07 +0300)]
wil6210: fix chan check in wil_p2p_listen

In wil_p2p_listen chan is checked to protect against NULL
pointer access only before setting channel = chan->hw_value.
Add a global parameter check to cover all accesses to chan.

Change-Id: Ib975c99b3b87998c357251a37f4862cbbf68697d
CRs-Fixed: 1026286
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agowil6210: add module parameter for alternate interface name
Hamad Kadmany [Mon, 28 Mar 2016 20:21:02 +0000 (23:21 +0300)]
wil6210: add module parameter for alternate interface name

Add a module parameter alt_ifname that when set, will name
the primary network interface wigig<N> instead of the default
wlan<N>. This helps platforms such as android where we need to
clearly separate the WIGIG interface from the default wireless
interface.

Change-Id: Ie1cd3ccf777e84665075bc3b6d9fffa7d897de49
CRs-Fixed: 982931
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agoASoC: wcd9335: Fix traversing of source dapm widgets
Sudheer Papothi [Thu, 30 Jun 2016 17:48:20 +0000 (23:18 +0530)]
ASoC: wcd9335: Fix traversing of source dapm widgets

Parsing of audio routing in ASoC core has been changed in
kernel 4.4 to use new variables. Update the codec driver
to traverse to source dapm widget using new variables.

Change-Id: I8c545248f23c73ff9fb470705f1c17175a8e4e0b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agomfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using it
Meng Wang [Fri, 13 May 2016 05:57:10 +0000 (13:57 +0800)]
mfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using it

During SSR, wcd9xxx_res irq lock is destroyed as part of resource
cleanup. If driver tries to access wcd9xxx_res irq lock before it's
initialized, it could cause crash. Check if wcd9xxx_res irq is 0
before using it to avoid crash.

CRs-Fixed: 1003482
Change-Id: I959caf7b305e965b84e8204168194bbfda72dc52
Signed-off-by: Meng Wang <mwang@codeaurora.org>
8 years agoASoC: msm: Dynamic allocation of loopback sessions
Surendar karka [Wed, 30 Mar 2016 07:00:47 +0000 (12:30 +0530)]
ASoC: msm: Dynamic allocation of loopback sessions

Allocate looback sessions dynamically and add support
for multiple loopback sessions.

CRs-Fixed: 986695
Change-Id: I4a0b0ed4f6679da016b1b460cb597bc7fa2afa12
Signed-off-by: Surendar karka <sukark@codeaurora.org>
8 years agodefconfig: Add initial 32-bit defconfig for msmfalcon
Srinivas Ramana [Tue, 5 Jul 2016 06:28:41 +0000 (11:58 +0530)]
defconfig: Add initial 32-bit defconfig for msmfalcon

Add initial defconfig file for booting msmfalcon

Change-Id: I6935c6de9009532570e1becad4ef1c1ee095d7c4
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
8 years agoARM: dts: msm: add Tri-color RGB LEDs on pmicobalt
Subbaraman Narayanamurthy [Tue, 5 Jul 2016 18:32:01 +0000 (11:32 -0700)]
ARM: dts: msm: add Tri-color RGB LEDs on pmicobalt

Add RGB LEDs that are present on pmicobalt. These LEDs are used
for applications like notification of charging indicator and
other user defined applications.

Since LPG channels 3,4 and 5 are assigned for Blue, Green and
Red LEDs on pmicobalt, keep them enabled in device tree.

CRs-Fixed: 1037821
Change-Id: I1a40bbe46e689d8c98f31cfef3a6743856288127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agoarm64: topology: Export arch_get_cpu_efficiency API
Trilok Soni [Fri, 10 Jun 2016 21:49:06 +0000 (14:49 -0700)]
arm64: topology: Export arch_get_cpu_efficiency API

Export arch_get_cpu_efficiency API since it can be called
by the modules. Update topology header file too.

CRs-Fixed: 1038542
Change-Id: Ie2ab84b02a8fb4070a0e86f09f52db9aa4163003
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Fix safety timer configuration
Devesh Jhunjhunwala [Thu, 16 Jun 2016 20:04:05 +0000 (13:04 -0700)]
leds: qpnp-flash-v2: Fix safety timer configuration

The mask and enable values being used are incorrect for the
safety timer. Fix it. Also take this opportunity to update
all relevant macros to use the GENMASK(h,l)/BIT(x) macros.

CRs-Fixed: 1024187
Change-Id: Ibdd139c98aa289f1d6b8545b953e79a1187284e9
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoARM: dts: msm: Add current property for flash-led for pmicobalt
Devesh Jhunjhunwala [Tue, 14 Jun 2016 18:52:02 +0000 (11:52 -0700)]
ARM: dts: msm: Add current property for flash-led for pmicobalt

Add the qcom,current-ma property which is used to specify the
default current value to be used for the flash and torch devices.
This property is used by clients of the flash device.

CRs-Fixed: 1024187
Change-Id: I3670eaa65efc9d1efb29fb30500fb9067885b446
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Add operational current property
Devesh Jhunjhunwala [Thu, 30 Jun 2016 00:48:12 +0000 (17:48 -0700)]
leds: qpnp-flash-v2: Add operational current property

Add the qcom,current-ma property to specify the operational
current for the flash led. Also limit the minimum flash current
to 25mA since currents below this value cause unstable flash
operation.

CRs-Fixed: 1033071
Change-Id: Ia133b6c0cf0c21484f61631f04cba0d1112c9d48
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoARM: dts: msm: remove VMBMS feature for msmcobalt
Meng Wang [Wed, 6 Jul 2016 03:01:55 +0000 (11:01 +0800)]
ARM: dts: msm: remove VMBMS feature for msmcobalt

VMBMS is used for accuracy improvement during voice call. It is
not supported on msmcobalt. It is moved to FG driver,
VMBMS is not needed anymore. Remove it from msmcobalt device tree.

CRs-Fixed: 1038038
Change-Id: Ib01b649633ef8d7e15791fa9b1bd0d7a3fbffc5d
Signed-off-by: Meng Wang <mwang@codeaurora.org>
8 years agousb: phy: qusb-v2: Add USB QUSB PHY for newer platform
Mayank Rana [Thu, 21 Apr 2016 17:25:19 +0000 (10:25 -0700)]
usb: phy: qusb-v2: Add USB QUSB PHY for newer platform

This change adds USB QUSB PHY v2 driver which is compatible
for USB QUSB PHY having major revision as 2.

Change-Id: I1751352ebbe38d4b8c7886085d15043c2e5244f5
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
8 years agoARM: dts: msm: Add torch nodes to flash-led for pmicobalt
Devesh Jhunjhunwala [Fri, 3 Jun 2016 19:38:49 +0000 (12:38 -0700)]
ARM: dts: msm: Add torch nodes to flash-led for pmicobalt

Add support for torch mode by adding torch nodes to the
flash-led device for pmicobalt. Also update the dt-bindings
documentation accordingly.

CRs-Fixed: 1024187
Change-Id: I640106abcf05949f2570efd42f925f1f73bdaa81
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agomsm: camera: Return HAL buffer to fix drain issues
Hariram Purushothaman [Tue, 29 Mar 2016 21:05:56 +0000 (14:05 -0700)]
msm: camera: Return HAL buffer to fix drain issues

Return the HAL buffer to avoid drain issue
and provide the get buf by index interface so clients
can get buffer based on index.

CRs-Fixed: 1018651
Change-Id: I20329a6834f5f1498388c39b1dd95db2896b3239
Signed-off-by: Hariram Purushothaman <hariramp@codeaurora.org>
8 years agoqcom-charger: qpnp-smb2: expose AICL settled current through USB psy
Nicholas Troast [Wed, 29 Jun 2016 20:48:20 +0000 (13:48 -0700)]
qcom-charger: qpnp-smb2: expose AICL settled current through USB psy

There is a requirement to expose the settled input current limit via a
power supply property. Add it.

Change-Id: I1a7b77e3a64da245afd0c4f73c8d04627a061ada
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agousb: xhci: Add helper APIs to return xhci dma addresses
Hemant Kumar [Wed, 23 Mar 2016 02:34:20 +0000 (19:34 -0700)]
usb: xhci: Add helper APIs to return xhci dma addresses

dma address of secondary event ring, transfer ring and
device context base address are required to pass to
remote entity. Remote entity uses these addresses to
program xhci controller registers.

Change-Id: Ie0756d646a396a11b41b93e886bca9aff636ee5d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agousb: xhci: Add support for secondary interrupters
Hemant Kumar [Tue, 22 Mar 2016 20:41:59 +0000 (13:41 -0700)]
usb: xhci: Add support for secondary interrupters

Implement APIs to dynamically allocate and free secondary
event rings based upon interrupter number. Also add exported
APIs in usb core layer which allows secondary event ring
management via remote processor entity.

Change-Id: I5ee7d44d6cad8e35e22d3c1a027a1eec5d208585
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agosound: usb: Add helper APIs to enable audio stream
Hemant Kumar [Mon, 7 Mar 2016 22:46:31 +0000 (14:46 -0800)]
sound: usb: Add helper APIs to enable audio stream

Adding helper API to find usb substream context information
using card number, pcm device number and direction. This usb
substream is used to enable/disable by issuing SET_ALT
command to device. Also add disconnect call back to perform
any clean up required.

Change-Id: I252f5171bd94b5ab096eb1a2f053f29a8c049c3b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoASoC: pcm: Update RX shutdown sequence
Phani Kumar Uppalapati [Tue, 9 Jun 2015 07:41:11 +0000 (00:41 -0700)]
ASoC: pcm: Update RX shutdown sequence

Update RX shutdown sequence so that codec
path gets tear down first followed by cpu dai.
This will avoid slim port underflow/overflows
when slim data protocol is changed.

Change-Id: I6e3582fa010d18d4e0ccfde319dfc4d81af1351f
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
8 years agoASoC: core: Fix possible NULL pointer de-reference
Bhalchandra Gajare [Mon, 26 Oct 2015 23:25:44 +0000 (16:25 -0700)]
ASoC: core: Fix possible NULL pointer de-reference

Fix the soc_find_component function to make sure either the of_node or
the name is provided to compare against the registered components to fix
possible NULL pointer de-reference.

CRs-fixed: 925138
Change-Id: Ic1f02c341c06cadcfe6de638ff6c86e51845e59f
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agoicnss: Add support of enable HW debug from module parameter
Yuanyuan Liu [Fri, 1 Jul 2016 23:38:31 +0000 (16:38 -0700)]
icnss: Add support of enable HW debug from module parameter

Add support of enable HW debug feature from ICNSS module parameter.
The setting will be passed to WLAN FW through QMI during subsequent
WLAN enable.

Change-Id: I02036d79fca38ff9ac71c70de8aa144b9cfb2f59
CRs-Fixed: 980027
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
8 years agomsm: mdss: hdmi: fix deep color enable and audio clock
Tatenda Chipeperekwa [Tue, 5 Jul 2016 21:25:44 +0000 (14:25 -0700)]
msm: mdss: hdmi: fix deep color enable and audio clock

Enable deep color only for msmcobalt platform. Furthermore,
adjust the pixel clock reported to the audio driver when
deep color is enabled so that it matches the clock configured
when the interface is turned on.

CRs-Fixed: 1034047
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Change-Id: I48a767f7673defe60156c305e39f1ce4aa44306b

8 years agomsm-core: Move get_user out side critical section
Maulik Shah [Tue, 28 Jun 2016 11:26:54 +0000 (16:56 +0530)]
msm-core: Move get_user out side critical section

get_user is not needed inside critical section. Move
it outside to avoid kernel crash due to sleeping
function called from invalid context.

Change-Id: I29a54dca6620dc75356067ce6ff9a0931b4d0724
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
8 years agomsm: mdss: dsi: update ULPS entry/exit sequence
Aravind Venkateswaran [Wed, 29 Jun 2016 22:23:36 +0000 (15:23 -0700)]
msm: mdss: dsi: update ULPS entry/exit sequence

Disable low power receiver and contention detection receiver
(LPRX and CDRX) along with lane LDOs when entering ULPS.
Similarly, enable LPRX, CDRX and the lane LDOs when exiting ULPS.
This fixes some issues where ULPS exit was failing resulting in
the display panel becoming unresponsive.

CRs-Fixed: 1035315
Change-Id: I3ed7eeb463aff6c77962d4f1d46b27e7fb5dd103
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
8 years agomsmcobalt: fix channel configuration for SLIMBUS
Shiv Maliyappanahalli [Thu, 30 Jun 2016 20:12:09 +0000 (13:12 -0700)]
msmcobalt: fix channel configuration for SLIMBUS

Channel count for SLIM_RX_6 port cannot be set
since get_port_idx() returns invalid port id which
resulting in invalid channel configuration for headset
usecase. Fix by adding SLIM_RX_6 case in get_port_idx().

Change-Id: Iadd3e995d044198c711f744c11b62cec2f7902c0
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agomsm: mdss: dsi: enable LPRX and CDRX only for logical data lane 0
Aravind Venkateswaran [Wed, 29 Jun 2016 19:33:42 +0000 (12:33 -0700)]
msm: mdss: dsi: enable LPRX and CDRX only for logical data lane 0

The low power receiver (LPRX) and contention detection receiver (CDRX)
need to be enabled only for the physical data lane corresponding to the
logical data lane 0. Modify the code to implement this while accounting
for any possible data lane swap configurations.

CRs-Fixed: 1035315
Change-Id: I0082109fc3c0a56af3f181ae0b063c56aa7095f2
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
8 years agoARM: dts: msm: Add node for QSEE IPC IRQ bridge for msmcobalt
Arun Kumar Neelakantam [Thu, 26 May 2016 10:48:42 +0000 (16:18 +0530)]
ARM: dts: msm: Add node for QSEE IPC IRQ bridge for msmcobalt

Add the device for bridging an Inter-Processor Communication(IPC)
interrupt from a remote subsystem directed towards Qualcomm Technologies,
Inc. Secure Execution Environment(QSEE).

CRs-Fixed: 1021749
Change-Id: Ib86b3f70a71f222f0ddc1ea49c75cd7d94c47546
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
8 years agoARM: dts: msm: add jdi landscape panel for msmcobalt
Ingrid Gallardo [Fri, 10 Jun 2016 21:57:50 +0000 (14:57 -0700)]
ARM: dts: msm: add jdi landscape panel for msmcobalt

Add required settings for command mode and video
mode jdi lanscape panels in msmcobalt CDP/MTP. Add
panels to the list of supported panels so they can
be selected at runtime from kernel command line.

Change-Id: Iae1361997653784c4248b0d2ed2a7deac3bc4d4b
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agoARM: dts: msm: configure display 5v panel supply GPIO for msmcobalt
Ingrid Gallardo [Wed, 22 Jun 2016 01:37:07 +0000 (18:37 -0700)]
ARM: dts: msm: configure display 5v panel supply GPIO for msmcobalt

Add support to configure the gpio51 that controls
the 5v supply required by multiple panels.

Change-Id: I45e190261330ffe2f742ae0c460fc53270e165c2
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agothermal: tsens: Enable TSENS controller health monitor
Siddartha Mohanadoss [Tue, 28 Jun 2016 23:51:08 +0000 (16:51 -0700)]
thermal: tsens: Enable TSENS controller health monitor

Temperature sensor (TSENS) driver health monitor periodically
sets a very low temperature threshold on the critical trip zone
and polls to check if the trip is set. This is done on a deferred
workqueue and helps provide indication on the health of the
TSENS controller.

Change-Id: I4b16db429fead5c731dec289f0360682c92775b8
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
8 years agoARM: dts: msm: Update TSENS sensors for msmhamster
Siddartha Mohanadoss [Tue, 28 Jun 2016 00:22:16 +0000 (17:22 -0700)]
ARM: dts: msm: Update TSENS sensors for msmhamster

Temperature sensor (TSENS) driver provides clients ability
to read on-die temperature sensors. Update the total
number of sensors supported for msmhamster on TSENS
controller 1 and corresponding sensor controller index.

Change-Id: I8c9ba4ed230c94d124f9c02e9e18a77cdb6befa5
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
8 years agothermal: tsens: Enable TSENS for msmhamster
Siddartha Mohanadoss [Tue, 28 Jun 2016 23:40:38 +0000 (16:40 -0700)]
thermal: tsens: Enable TSENS for msmhamster

Temperature sensor (TSENS) driver provides ability to
thermal clients to read from on-die temperature sensors.
msmhamster supports reading from 20 on-die temperature
sensors and clients can set temperature thresholds and
receive notification.

Change-Id: I57e98f2182d0c44e9c7cffec3528bb926a878fb8
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
8 years agoARM: dts: msm: Disable TSENS on RUMI and SIM platform
Siddartha Mohanadoss [Tue, 28 Jun 2016 23:32:40 +0000 (16:32 -0700)]
ARM: dts: msm: Disable TSENS on RUMI and SIM platform

Temperature sensor (TSENS) driver supports perodic monitoring
of the TSENS controller and can cause a false positive on
RUMI and SIM platform if the temperature values are
not valid. Therefore disable the driver on these platforms.

Change-Id: I9d38f6f1580eafef9de841418b9a9f022ef30b69
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
8 years agoASoC: msm: q6dspv2: add SLIMBUS6 RX routings for Slimbus 7/8
Banajit Goswami [Wed, 29 Jun 2016 22:31:24 +0000 (15:31 -0700)]
ASoC: msm: q6dspv2: add SLIMBUS6 RX routings for Slimbus 7/8

Slimbus TX 7 and 8 would need to be connected to Slimbus RX 6
for different use cases using loopback in AFE. Updated necessary
routings for supporting the loopback.

CRs-Fixed: 1036018
Change-Id: I46c797a6550884bf42a2d7763590047d2e750906
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
8 years agomsm: thermal: Add support to monitor only one tsens for MX restriction
Manaf Meethalavalappu Pallikunhi [Thu, 28 Jan 2016 17:39:30 +0000 (23:09 +0530)]
msm: thermal: Add support to monitor only one tsens for MX restriction

Currently VDD MX restriction feature monitors all tsens for low
temperature condition. Some targets which has higher MX restriction
thresholds shows frequent interrupts from multiple sensors causing
power impact.
Add support to monitor only one sensor for VDD MX restriction feature.
Add an optional device tree property "qcom,mx-restriction-sensor_id"
to specify sensor id for monitor. If not defined, monitor all tsens
for VDD MX restriction.

Change-Id: Ib709b00c27f43c2603ac8a08b75f2fbd5800983b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
8 years agodefconfig: arm64: msm: Add defconfigs for QSEE IPC IRQ bridge
Arun Kumar Neelakantam [Fri, 1 Jul 2016 04:21:22 +0000 (09:51 +0530)]
defconfig: arm64: msm: Add defconfigs for QSEE IPC IRQ bridge

Enables the drivers for bridging an Inter-Processor Communication(IPC)
interrupt from a remote subsystem directed towards Qualcomm Technologies,
Inc. Secure Execution Environment(QSEE).

CRs-Fixed: 1021749
Change-Id: I7406d49369ccf3951f95f72136195a3630789453
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
8 years agoARM: dts: msm: Fix interrupt type for a few IRQs
Mitchel Humpherys [Tue, 17 May 2016 00:53:52 +0000 (17:53 -0700)]
ARM: dts: msm: Fix interrupt type for a few IRQs

The interrupt types for a few SMMU IRQs are incorrect.  Fix them.

CRs-Fixed: 1037068
Change-Id: Ic45e1ec592bf0503d456ad1029e32dfea5d63bf1
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
8 years agodefconfig: arm64: enable run queue stats driver for msm chipsets
Runmin Wang [Fri, 24 Jun 2016 04:08:10 +0000 (21:08 -0700)]
defconfig: arm64: enable run queue stats driver for msm chipsets

Enable the run queue stats driver to support IRQ balancer.

CRs-Fixed: 1033709
Change-Id: I38694774013625d514fc9812b4b28c36f4a2471e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agodrivers: GICv3: remove isb() from IAR read function
Satya Durga Srinivasu Prabhala [Tue, 28 Jun 2016 00:29:31 +0000 (17:29 -0700)]
drivers: GICv3: remove isb() from IAR read function

As per the GICv3 requirement, ISB or other context synchronization
operation is needed only during System register writes.

CRs-Fixed: 1035275
Change-Id: Ifbe4d974a295b90a511aa10bde5797a1f71972fc
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
8 years agomsm: mdss: skip panel type node change during resolution switch
Veera Sundaram Sankaran [Thu, 16 Jun 2016 23:24:11 +0000 (16:24 -0700)]
msm: mdss: skip panel type node change during resolution switch

The panel type sysfs node indicates the type of panel that
is currently in use, either video or cmd mode. This is
updated after every dynamic switch. Currently, this node
is updated to an invalid value during dynamic resolution switch.
Skip the setting as the mode is not changed during resolution
switch.

Change-Id: Ic002ad587eeade068561c0e9f1d29aeb1689ada5
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: hdmi: fix clock parsing
Tatenda Chipeperekwa [Tue, 28 Jun 2016 18:32:10 +0000 (11:32 -0700)]
msm: mdss: hdmi: fix clock parsing

Fix the clock parsing logic to remove the hard coding
of clock names in the HDMI driver. Update the clock parsing
logic to rely on reading the clock configurations from the
device tree and update the HPD and CORE power modules
appropriately.

CRs-Fixed: 1032282
Change-Id: Ia7324f6443b3db5d55113a221dc0791bb5a38799
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
8 years agoARM: dts: msm: Add SPS node for msmfalcon
Rama Krishna Phani A [Fri, 24 Jun 2016 14:36:30 +0000 (20:06 +0530)]
ARM: dts: msm: Add SPS node for msmfalcon

Add SPS module to device tree. SPS (Smart Peripheral System)
enables the support of all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: I4f71ba8115f009028ae4ddf6a7847d1885b4458c
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
8 years agomsm: mdss: force revalidate layers after resolution switch
Veera Sundaram Sankaran [Fri, 13 May 2016 20:57:24 +0000 (13:57 -0700)]
msm: mdss: force revalidate layers after resolution switch

Avoid skipping validation for all layers during ATOMIC_COMMIT
validate call after dynamic resolution switching. Though the
configs remain the same for few layers, revalidation is required
based on the new resolution as the src_split and other settings
might have changed.

Change-Id: I3f1f2e09c90e8ff1a6380e35ed9e980b5c2be46c
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: handle used_buf during overlay off with invalid switch state
Veera Sundaram Sankaran [Fri, 6 May 2016 02:03:54 +0000 (19:03 -0700)]
msm: mdss: handle used_buf during overlay off with invalid switch state

There might be cases where driver gets the resolution switch
request followed by suspend or adb shell stop. In such cases,
since the ctl parameters are already reconfigured, driver skips
the NULL kickoff during overlay off due to invalid switch state.
This leads to memory leak as the used_bufs are left intact. Fix
by moving the used_bufs to free_list, so that memory can be freed
later and also leaves the buffer list clean.

Change-Id: I80c6ad2dc85da0427ac7ba1c127f0aa044a81c09
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: add dynamic resolution switch support during handoff
Veera Sundaram Sankaran [Thu, 5 May 2016 19:03:23 +0000 (12:03 -0700)]
msm: mdss: add dynamic resolution switch support during handoff

Add support to handle dynamic resolution switch request during
cont-splash handoff, even before driver receives the first commit.
The cmd_panel_on is ideally called right before the first kickoff,
if the panel is not already on. Make explicit panel_cmd_on call during
reconfigure to match with the ctl_stop/ctl_start done during the
process of switching. This would make sure complete cleanup and
re-configuration of the ctl is done.

Change-Id: I98469b14284195caaf17a616137a0502e0e398cf
[veeras@codeaurora.org: Resolved conflicts in mdss_mdp.h]
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: match pixclock calculation for videomode and fb var
Veera Sundaram Sankaran [Fri, 29 Apr 2016 01:36:38 +0000 (18:36 -0700)]
msm: mdss: match pixclock calculation for videomode and fb var

When multiple panel timings are available and enumerating videomode
list, pixclock is calculated using htotal, vtotal and refresh rate.
But fb var struct is populated with actual pixclock value calculated
by DSI. This pixclock mismatch would cause issues, when usermode
does GET_VSCREENINFO/PUT_VSCREENINFO. Fix by using the same pixclock
calculation for both structures.

Change-Id: I42bfc40b5904ec80f20b296e3b4610ca3b2c5ee0
[veeras@codeaurora.org: Resolved conflicts in mdss_fb.c]
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: add capability to parse multiple panel roi alignment
Veera Sundaram Sankaran [Thu, 21 Apr 2016 21:41:44 +0000 (14:41 -0700)]
msm: mdss: add capability to parse multiple panel roi alignment

Add device tree parsing logic to parse multiple panel alignment roi for
different panel resolutions. Add alignment roi as part of the panel
timing struct, so that it would be updated whenever resolution switch
happens.

Change-Id: I14ee1a4947312c4c36927adcbffad847f9062fd6
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: add dynamic resolution switch support for DSC panels
Veera Sundaram Sankaran [Fri, 15 Apr 2016 18:57:24 +0000 (11:57 -0700)]
msm: mdss: add dynamic resolution switch support for DSC panels

Reconfigure the DSC parameters and DSI stream according to the
new resolution. Mandate the first frame after dynamic resolution
change for DSC panels to be full frame updates. Send PPS command
based on the device tree entry before or after the switch commands.
Fix device tree parsing of DSC parameters within the switch timing
node. Add sub-nodes in target specific device tree to configure
target specific timing and switch commands.

Change-Id: I6aa5f8f972b16645b219bf6274036b6e5dac6dda
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: validate current switch state before commit
Adrian Salido-Moreno [Wed, 2 Sep 2015 01:17:07 +0000 (18:17 -0700)]
msm: mdss: validate current switch state before commit

If mode switch is currently in progress, then proper state machine of
calls is expected. If these calls are not observed then it could lead
to issues during display commit, because of incomplete update.
Add checks for current mode switch state to prevent improper state
during commit.

Change-Id: I31dae6e15761fc745efd79edbe1070af992db904
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agomsm: mdss: handle blank while mode switch in progress
Adrian Salido-Moreno [Tue, 22 Sep 2015 23:06:09 +0000 (16:06 -0700)]
msm: mdss: handle blank while mode switch in progress

When display is getting blanked while mode switch in progress, we
cannot have additional kickoff trigger for cleanup as the state hasn't
been properly transitioned. Instead we can clear the state and destroy
control path to start clean on next update.

Change-Id: I34af01550d79e0d7d465f2c7f873508c296160dd
[veeras@codeaurora.org: Resolved conflicts in mdss_mdp_overlay.c]
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: DAP: Add check to validate param length
Ashish Jain [Fri, 1 Jul 2016 07:01:21 +0000 (12:31 +0530)]
ASoC: msm: qdsp6v2: DAP: Add check to validate param length

To avoid buffer overflow, validate input length used to
fetch visualizer data.

CRs-Fixed: 1033540
Change-Id: I445d1ba3bce47308bc31ae24a70d5ee358f22a2d
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: DAP: Allocate param buffer with correct size
Ashish Jain [Thu, 30 Jun 2016 12:58:37 +0000 (18:28 +0530)]
ASoC: msm: qdsp6v2: DAP: Allocate param buffer with correct size

Size of param buffer should be big enough to hold param length
of data and param payload.

CRs-Fixed: 1033525
Change-Id: I6fa58f87a7c7df5f0485ea5b368ea090eb8bedb4
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
8 years agomd: dm-req-crypt: Separate qcrypto from ICE path
Andrey Markovytch [Sun, 3 Jul 2016 12:53:24 +0000 (15:53 +0300)]
md: dm-req-crypt: Separate qcrypto from ICE path

During the ICE based FDE path, qcrypto functions been called,
which is invalid. So update dm-req-crypt driver to separate
ICE from qcrypto path.

Change-Id: I1ff3121471baa761624e0ce39ee96dd0b8497454
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
8 years agomsm: vidc: Fix use of unininitialized variables.
Abdulla Anam [Wed, 30 Mar 2016 12:50:10 +0000 (18:20 +0530)]
msm: vidc: Fix use of unininitialized variables.

Fix use of uninitialized variables. Add checks for out of bound
array access.

CRs-Fixed: 997966
Change-Id: I66973d7dcc0988dba36da4b3c0e01484847a7a7e
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
8 years agobluetooth: Add support for clocks
Sungjun Park [Wed, 15 Jun 2016 21:40:56 +0000 (14:40 -0700)]
bluetooth: Add support for clocks

On some platforms, clock needs to be controlled by Bluetooth
driver. Add support for that by obtaining it through a device
tree property and use it for voting when required.

Change-Id: I42a16f6dc8d5c11963713ae489ca6d8c9bf927e5
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
8 years agodrivers: soc: Add buffer overflow check for svc send request
Josh Kirsch [Mon, 2 May 2016 21:55:04 +0000 (14:55 -0700)]
drivers: soc: Add buffer overflow check for svc send request

Add buffer overflow check in voice_svc_send_req.

CRs-fixed: 1010081
Change-Id: I4ae703334b0cf04f327b392bc9cd6febd4ad32f2
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
8 years agomsm: ipa: Fix queuing the inactive timer work on perf cluster
Sridhar Ancha [Wed, 22 Jun 2016 09:46:52 +0000 (15:16 +0530)]
msm: ipa: Fix queuing the inactive timer work on perf cluster

Using schedule_delayed_work will cause work queues to be scheduled
on the CPU where the timer expires. This can make work to be scheduled
on perf cluster resulting in power issues. Make changes to use
queue_delayed_work on an unbound workqueue so that the work gets
scheduled based on the load and mostly it gets scheduled in power
cluster.

Change-Id: I13605eea5fb3e7eeece1d8c81334981ea7de9cb9
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
8 years agosoc: qcom: memory_dump_v2: use kmemleak_not_leak for mem dump's app table
Lingutla Chandrasekhar [Mon, 1 Jun 2015 11:46:25 +0000 (17:16 +0530)]
soc: qcom: memory_dump_v2: use kmemleak_not_leak for mem dump's app table

Table (of type msm_dump_table) is virtual address for app's base
table of memdump, which is converted to physical address and
holds it in the memdump.table_phys. This memory is not intended
to be freed. When kmemleak scans, it can't deduce that the reference
we are holding is via physical address and not virtual address.
Hence, kmemleak will treat this as a leak as it can't find
a reference to this variable. Suppress this by using
kmemleak_not_leak API.

Change-Id: I5236c940688829a3b5f255c5ee9fcf309cf8ebb7
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
8 years agoARM: dts: msm: Update the clock names for MSMfalcon
Taniya Das [Mon, 4 Jul 2016 04:14:20 +0000 (09:44 +0530)]
ARM: dts: msm: Update the clock names for MSMfalcon

Add the clock controller files for GCC/GPU/MMSS and modify the clock
macro names for blsp clock MSMfalcon.

Change-Id: Iaed16dbb3415a77f427ad7318017487acb7891a3
Signed-off-by: Taniya Das <tdas@codeaurora.org>
8 years agoclock: qcom: Add the clocks supported on MSMFalcon
Taniya Das [Tue, 28 Jun 2016 10:34:04 +0000 (16:04 +0530)]
clock: qcom: Add the clocks supported on MSMFalcon

Add all the clocks which are supported on msmfalcon and would be used
by the clients for all clock operations for GCC, MMSS, GPU clock
controllers.

Change-Id: Ie328cb0516644d8a3d66fd0c054575a5cff637dc
Signed-off-by: Taniya Das <tdas@codeaurora.org>
8 years agousb: gadget: f_gsi: Use 16KB buffer with each TRB for MBIM DL
Mayank Rana [Fri, 24 Jun 2016 22:32:07 +0000 (15:32 -0700)]
usb: gadget: f_gsi: Use 16KB buffer with each TRB for MBIM DL

There is limitation when IPA is performing de/aggregation with MBIM
in scatter-gather mode. Hence instead of 2KB buffer use 16KB buffer
(i.e. size of aggregated frame) with each TRB for MBIM DL case.

CRs-Fixed: 1032467
Change-Id: I4f73d30711b5606c2ac88ce9d05a8483d64b665d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
8 years agoARM: dts: msm: Remove redundant interrupt type flag for msmcobalt
David Dai [Mon, 27 Jun 2016 23:46:52 +0000 (16:46 -0700)]
ARM: dts: msm: Remove redundant interrupt type flag for msmcobalt

Use existing IRQ flags definitions since devfreq_spdm driver no longer
overrides interrupt type. Interrupt-edge property is no longer used
as an indicator of interrupt type.

Change-Id: Iddf6b1b8a85100bbb3b6ff2d2dda88880b6e64f2
Signed-off-by: David Dai <daidavid1@codeaurora.org>