summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-19usb: phy: qusb: Add support for host mode phy init seqDevdutt Patnaik
Update QUSB2 HS PHY init sequence in host mode to fix enumeration issues due to port reset operation failure. Change-Id: I95daf3e3a833f9daeac6190daa33191f9db8cf26 Signed-off-by: Devdutt Patnaik <dpatnaik@codeaurora.org>
2016-07-11ASoC: msm: qdsp6v2: Fix FE id check in routing driverBen Romberger
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>
2016-07-11ARM: dts: msm: Add initial device tree files for falcon RUMIVenkatesh Yadav Abbarapu
Adding the device tree files for RUMI platform. Change-Id: I980e39b8c072fc2ec35d84b8698c40c770f7f041 Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-07-11msm: vidc: Remove forced-setting of layer-wise bitrate for HPPraveen Chavan
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>
2016-07-11qseecom: make change for unload TAZhen Kong
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>
2016-07-11defconfig: arm64: msm: Disable qtaguid and net activity statsBryse Flowers
Temporarily disable modules while stability issues are resolved. Change-Id: I6bab3370caf776de25316da58ca48fcd9fbc4b5e CRs-Fixed: 1035969 Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
2016-07-11ASoC: msmcobalt: Fix slimbus tx channel configurationSudheer Papothi
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>
2016-07-11arm64: defconfig: msm: enable MODULE_SIG for msm chipsetsSatya Durga Srinivasu Prabhala
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>
2016-07-11driver: thermal: Configure ARM threshold instead of lowRam Chandrasekar
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>
2016-07-11msm: sde: Correct rotator irq enable mismatchAlan Kwong
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>
2016-07-11msm: sde: Updating linear format definition for v4l2 rotatorBenjamin Chan
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>
2016-07-11ARM: dts: msm: Add dts entry mpm2-sleep-counter for MSMCOBALTRunmin Wang
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>
2016-07-11mfd: qcom-i2c-pmic: add option to skip irq controlNicholas Troast
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>
2016-07-11ARM: dts: msm: create a separate dtsi file for msmcobalt qrdRunmin Wang
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>
2016-07-11ARM: dts: msm: Update MPM interrupt mappings for cobaltArchana Sathyakumar
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>
2016-07-11ARM: dts: msm: configure default CMA region for msmcobaltLiam Mark
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>
2016-07-11ARM: dts: msm: return unused pIMEM Vault memory for msmcobaltLiam Mark
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>
2016-07-11sound: usb: Add support to share iova with remote processorHemant Kumar
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>
2016-07-11sound: usb: Add support for usb audio qmi serviceHemant Kumar
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>
2016-07-11ARM: dts: msm: add proxy vote for DSI supplies for msmcobaltAravind Venkateswaran
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>
2016-07-11clk: msm: clock-mmss-cobalt: Add display port clock supportDeepak Katragadda
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>
2016-07-11ARM: dts: msm: Add regulator node to flash-led for pmicobaltDevesh Jhunjhunwala
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>
2016-07-11leds: qpnp-flash-v2: add regulator supportDevesh Jhunjhunwala
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>
2016-07-11leds: qpnp-flash-v2: add callback for max current queryChun Zhang
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>
2016-07-11leds: qpnp-flash-v2: add support for strobe configurationChun Zhang
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>
2016-07-11msmcobalt: Add delay to check ADSP state during SSRShiv Maliyappanahalli
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>
2016-07-11ASoC: qdsp6v2: Fix apr registration failure in q6coreShiv Maliyappanahalli
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>
2016-07-11media: videobuf2: Increase max buffersShubhraprakash Das
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>
2016-07-11msm: ipa3: fix the double ipa3_pre_init issueSkylar Chang
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>
2016-07-11ARM: dts: msm: Change camera mount angle for msmcobaltViswanadha Raju Thotakura
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>
2016-07-11drivers: soc: set apr handle to NULL on glink_open errorShiv Maliyappanahalli
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>
2016-07-11msm: vidc: add ion_handle checking before mapping buffersAbdulla Anam
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>
2016-07-11msm: vidc: update the check to ignore extradata plane in dqbufPraveen Chavan
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>
2016-07-11iommu/iommu-debug:: initialize variables before useShiraz Hashim
Initialize return values to their default before being used. Change-Id: Ie4dd908657573e5110bce65931d5507125da4c40 Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-07-11iommu/io-pgtable-fast: validate data before useShiraz Hashim
Return error on data allocation failure to prevent use after free case. Change-Id: I9d173756e277c9006220c02c209309167f179609 Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-07-11msmcobalt: enable audio over HDMIShiv Maliyappanahalli
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>
2016-07-11ARM: dts: msm: enable audio over HDMI for msmcobaltShiv Maliyappanahalli
Add device tree entries to enable audio over HDMI. Change-Id: Ie9bb609f9681580d90e5ec35b89e587758c272d4 Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-07-11wil6210: fix chan check in wil_p2p_listenMaya Erez
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>
2016-07-11wil6210: add module parameter for alternate interface nameHamad Kadmany
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>
2016-07-08ASoC: wcd9335: Fix traversing of source dapm widgetsSudheer Papothi
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>
2016-07-08mfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using itMeng Wang
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>
2016-07-08ASoC: msm: Dynamic allocation of loopback sessionsSurendar karka
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>
2016-07-08defconfig: Add initial 32-bit defconfig for msmfalconSrinivas Ramana
Add initial defconfig file for booting msmfalcon Change-Id: I6935c6de9009532570e1becad4ef1c1ee095d7c4 Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-07-08ARM: dts: msm: add Tri-color RGB LEDs on pmicobaltSubbaraman Narayanamurthy
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>
2016-07-08arm64: topology: Export arch_get_cpu_efficiency APITrilok Soni
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>
2016-07-08leds: qpnp-flash-v2: Fix safety timer configurationDevesh Jhunjhunwala
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>
2016-07-08ARM: dts: msm: Add current property for flash-led for pmicobaltDevesh Jhunjhunwala
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>
2016-07-08leds: qpnp-flash-v2: Add operational current propertyDevesh Jhunjhunwala
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>
2016-07-08ARM: dts: msm: remove VMBMS feature for msmcobaltMeng Wang
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>
2016-07-07usb: phy: qusb-v2: Add USB QUSB PHY for newer platformMayank Rana
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>