summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-22coresight: add remote etm driver support in upstream implementationShashank Mittal
Add remote etm driver in upstream implementation of Coresight driver. This change copies coresight-remote-etm.c file from drivers/coresight (commit c1fe9ac38d93 ("input: touchscreen: correct function and variable names in ITE tech driver")) to driver/hwtracing/coresight directory. Change-Id: I77a1aaf10aaf3f3010ab19d5878bb53dcc504c29 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22msm_bus: coresight: fix to support upstream implementationShashank Mittal
Upstream's Coresight driver doesn't have id field in coresight_platform_data. So use device name instead to link bus clk with Coresight device node. Change-Id: I9f70974d64154217c2701879eb428beef1857fcf Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22coresight: fix kstrtoul usageShashank Mittal
Unlike sscanf kstrtoul function returns 0 on success and non-zero value in case of an error. Fix Coresight code to check error condition correctly. Change-Id: Id1bd544a9928ed6b13c278f12a47070d1ca353a7 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22coresight-cti: use for_each_cpu instead of for_each_cpu_maskShashank Mittal
for_each_cpu_mask is deprecated, so replace that with for_each_cpu. Change-Id: I21a937053ce8a7f3a81a09f78e873b7c71421b72 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22coresight: fix compilation issue due to missing of_coresight.h fileShashank Mittal
In upstream implementation there is no of_coresight.h file. That causes compilation issue with some of the Coresight components. Change-Id: I81bf45e1e322e1d90ac70c6e73738b7348cf85e1 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22coresight: tmc: add usb bam support for etr deviceShashank Mittal
Add support to use etr device in usb bam mode. In usb bam mode traces can be streamed over usb. Change-Id: I5509c01aeb704a7b3ec8406130886145f7fddc10 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-04-22msm: thermal: Request INT_MAX as max for regulator set voltage APIManaf Meethalavalappu Pallikunhi
During Vdd restriction trigger/clear request, KTM request it's vote to regulator via regulator_set_voltage() API. KTM is interested only in min value for this feature, always request INT_MAX as max value instead of supported MAX corner of that regulator. It makes sure that there is no impact if MAX corner for that regulator is changed at any time. Change-Id: Iebcb0383ea7b44d8584adb610ca7b56f0db2e755 Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2016-04-22arm64: mm: preserve 4k mappings for late mappingsLiam Mark
There are several features such as CONFIG_FREE_PAGES_RDONLY which depend on pages being mapped as 4k. When we creating late mappings ensure that 4K mappings aren't replaced with block mappings if CONFIG_FORCE_PAGES is enabled. CRs-Fixed: 1004260 Change-Id: I9f1853c71ba6dec92ede869b90e220d63af6ae3e Signed-off-by: Liam Mark <lmark@codeaurora.org> Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-04-22defconfig: msm: enable ipa3 nodes on cobaltSkylar Chang
enable ipa3 on cobalt build Signed-off-by: Skylar Chang <chiaweic@codeaurora.org> Change-Id: I562bf73e375ce78227746a9eaf0fb256abf69ce5
2016-04-22ARM: dts: msm: disable IPA3 on MSMCobalt rumiSkylar Chang
Disable ipa-driver on MSMCobalt rumi build. Signed-off-by: Skylar Chang <chiaweic@codeaurora.org> Change-Id: I8447214ca3fcf4567979ce2538dc342c4957e4d4
2016-04-22clk: msm: clock-gcc-cobalt: Remove support for glm clocksDevesh Jhunjhunwala
The glm clocks are controlled by TZ, so remove support for these clocks from the clock-gcc-cobalt driver. Change-Id: Ibfb8f211ca8c29617aca4ff0ee885366f95aac00 Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-04-22clk: msm: clock: Change the check_enable_bit log to pr_warnDeepak Katragadda
Change the log about the clocks being enabled even without a SW vote to pr_warn instead of WARN. The stack trace isn't very helpful in this case and cause a lot of logging. Also, add the check_enable_bit property to some SMMU clocks which are votable. CRs-Fixed: 1006841 Change-Id: Icb15b038b170590e69073ca628b3d610e14893da Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-04-22clk: msm: clock-mmss-cobalt: Do not model the Throttle clock registersDeepak Katragadda
The throttle clocks are managed by XBL and HLOS does not need to control them. Remove support for these clocks from the clock driver. CRs-Fixed: 1006824 Change-Id: I1a33b3dbde6d5526be1073874e28b12350adad5e Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-04-22ARM: msm: dts: Add audio support on msmcobalt simulationSudheer Papothi
Add device tree entries of codec and sound node to have sound card enumeration done on msmcobalt simulation platform. This change enables audio functionality on msmcobalt simulation platform. Change-Id: I70c2b284b7302561e319061bbb1247f4482f6ff3 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-04-22ASoC: msmcobalt: Add machine driver support on simulationSudheer Papothi
Add FE(front end) and BE(Back end) DAI(Digital Audio Interface) links needed to support audio functionality on msmcobalt simulation platform. Change-Id: I87feebf29fb4b3e3e8db52d9d85c902c384d061f Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-04-22ASoC: msm: Enable APR over Glink on msmcobaltShiv Maliyappanahalli
Glink serves as a replacement of SMD. Add the support to enable Glink on msmcobalt. Change-Id: I49668889c6c983a3782f90b5871a69a8b12a2fba Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-04-22soc: qcom: glink_smd_xprt: Defer channel close ACK operationKarthikeyan Ramasubramanian
Depending on the timing of two competing transport registration with G-Link core, a channel gets opened on one transport and then immediately migrated to another transport. This channel migration happens in the context of glink_open() operation itself and causes a re-lock attempt on an already locked mutex. Defer the channel close ACK operation so that channel migration does not hit the deadlock. CRs-Fixed: 1004150 Change-Id: I188846b95369b674830bc01ddeca764ad6d4d391 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-04-22spcom: add ION buffer supportAmir Samuelov
Add new spcom API to allow user to send request/response with ION buffer. The spcom kernel driver modify the request/response by replacing the user ION buffer virtual address with the buffer physical address. spcom also provide API to lock/unlock the ION buffer to avoid the SP side using an ION buffer that was free when HLOS App crashed. CRs-Fixed: 986215 Change-Id: I5dca692cd3c4fac63be5ec73f89e6c39a593a50b Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-04-22soc: qcom: msm-spm: Correct PMIC_DATA address range for SAW4.1Archana Sathyakumar
SAW 4.1 version incorrectly writes to PMIC_DATA index 6, 7 when the valid range is [0..5]. Fix this to overcome bootup issue. Change-Id: Id92eb251c716b2750400e758fb4822cdff8e3ed3 Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
2016-04-22defconfig: msmcortex: Enable rq_stats driverRunmin Wang
Add the configuration to enable run queue stats driver. CRs-Fixed: 1004306 Change-Id: If81c6dbaf76569be710ece56fc891047102b5adc Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-04-22soc: qcom: core_hang: Increase the PMU_EVENT_MAX valueRunmin Wang
Increase the limit of the PMU_EVENT_MAX. PMUEVENT used in core hang detection is defined to have 5 bits. The max value should be 0x1F instead of 0x7. CRs-Fixed: 1003600 Change-Id: Ia71f2e340e208fbdc07d856fbbfca11190031aad Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-04-22regulator: mem-acc: Fix possible memory leakTirupathi Reddy
Fix the memory leak errors found in the code with freeing the dynamically allocated memory. CRs-Fixed: 984895 Change-Id: I6f6048394f984393615726c093a6491ef1870dad Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-04-22regulator: cpr-regulator: Fix memory leakAnirudh Ghayal
Fix a memory leaks and an uninitialized variable access in the CPR regulator driver. CRs-Fixed: 996609 Change-Id: Idea45963653dbf65a3eb48d518fe4e7dc3844f65 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-04-22regulator: cpr3-regulator: add support for configuring CPR IRQ affinityDavid Collins
Add support to configure the CPR interrupt affinity via a CPR3 controller device tree node. This can be used to avoid servicing CPR interrupts triggered by a CPU enterring power collapse on the CPU that just power collapsed. Change-Id: I4c04a2c255a6bd249c888c0dd0dbda19b8436be2 CRs-Fixed: 949650 Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-04-22msm: camera: isp: Set vfe clock rateShubhraprakash Das
Set the initial vfe clock rate to SVS during probe. When the clock is enabled the clock driver expects a clock rate to be voted. The clock is enabled during device open and the user driver can send the actual rate only after open. This causes a warning print from clock driver when the clock is enabled in device open. To avoid the error print set an initail rate. CRs-Fixed: 1000316 Change-Id: I423469eef79fc9251bab52ea3a3b3c9d8db422a3 Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-04-22msm: ispif: Soc changes for ispifShubhraprakash Das
Use common functions to query clock information from dtsi in ispif driver so that it can be easily ported to other platforms. CRs-Fixed: 998900 Change-Id: I9c06258234a88e6581ebfc6da9c121cfd276985f Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-04-22msm: camera: isp: Add file for vfe 4.8Shubhraprakash Das
Add code to support new vfe hardware. CRs-Fixed: 987962 Change-Id: I600f06478d4ee0d082642014484c6e730702de68 Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-04-22Revert "kernel: lib: allow larger stack frame size for KASan"Satya Durga Srinivasu Prabhala
This reverts commit 8bb334401c84 ("kernel: lib: allow larger stack frame size for KASan"). Stack frame size set to 5600 to fix compilation error/s if KASAN enabled by the commit 8bb334401c84 ("kernel: lib: allow larger stack frame size for KASan") in 3.18 Kernel and same commit got pulled into Kernel 4.4, which replaced stack frame size 0 with 5600 as part of resolution of merge conflict. But, by setting stack frame size to 0 will ignore stack frame size warnings and so the compilation errors. So, revert commit to fix below error while compiling Kernel 4.4 with KASAN enabled and GCC 5.1 compiler. kernel/net/wireless/nl80211.c: In function 'nl80211_send_wiphy': kernel/net/wireless/nl80211.c:1745:1: warning: the frame size of \ 5760 bytes is larger than 5600 bytes [-Wframe-larger-than=] error, forbidden warning: nl80211.c:1745 make[4]: *** [net/wireless/nl80211.o] Error 1 CRs-Fixed: 1004225 Change-Id: I97e52302197c9933bec5cac3ebdc4ec73fee0816 Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-04-22crypto: ice: general driver clean-upAndrey Markovytch
* Removed spinlock as it was not locking against anything * Removed conversion of interrupt status to error number as it is not used by API client, and in case several bits are set only 1 error is ever handled and the rest get lost. Instead pass to the client the complete status. * Removed redundant includes, variables * vops structure is returned after performing a lookup in the DTS. There's no need for that as we already know the structure to return. * Other minor corrections Change-Id: I6d2549ce04c9e4b19fdd8fe3dfee03d83bfd9d77 Signed-off-by: Gilad Broner <gbroner@codeaurora.org> Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-04-22irqchip: msm: Remove wcd codec irq domain register from irq driverSudheer Papothi
wcd codec irq domain register is done in wcd irq probe function. So, remove wcd codec irq chip declaration from irq msm driver. Change-Id: Ie4f8dbb39925fde3cf3fa7f55a555d80110cc639 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-04-22drivers: mfd: Allocate and register irq domain for codec interruptsSudheer Papothi
During codec interrupt controller probe, allocate and register irq domain for codec interrupts for mapping between hwirq and irq numbers. Change-Id: I3e32043499f2b1e2616cf74864969815e626a23b Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-04-22ARM: dts: msm: Add Venus regulators & clocks for msmcobaltChinmay Sawarkar
These regulators and clocks are required for Venus bootup and decode session. Change-Id: I2a57b125ea8982ac8e63bbbb3c7f4d41c106edc5 Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
2016-04-22ARM: dts: msm: remove S3, S5, and S7 regulator pin control on msmcobaltDavid Collins
PMCOBALT regulators S3, S5, and S7 do not support mode pin control requests. Therefore, remove the pin control configurations for these regulators. Change-Id: I35c726ac45adc677ffe3a15c34229188efa4bc90 CRs-Fixed: 1004290 Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-04-20tty : msm_serial: Remove the rtb logs of msm_serial write and read.Runmin Wang
msm_write/read use write/read_relaxed function which will create lots of RTB logging. Change the API to no_log version to remove those RTB logs. CRs-Fixed: 1004316 Change-Id: Ica921ffe3dfc362b70e78232ee680b82c205a477 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-04-20clk: Update clk_get_sys to return ENOENT on failureDevesh Jhunjhunwala
clk_get_sys was updated to return EPROBE_DEFER because on the older kernel returning ENOENT was causing drivers that probed before the clock provider to fail instead of deferring. The new kernel version fixes this by returning EPROBE_DEFER in __of_clk_get_from_provider. Thus, clk_get_sys failing means that the clock provider exists, but the requested clock is not defined in the provider, in which case ENOENT is a more appropriate error code to return. Change-Id: I67d60bf5c0d2dfb71a189e351bc5b4c535d280bb Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-04-19clk: msm: clock-gcc-cobalt: Add support for measuring some gpu clocksDeepak Katragadda
Add HW clock measurement support for the gcc_gpu_cfg_ahb_clk, gcc_gpu_bimc_gfx_src_clk and gcc_gpu_bimc_gfx_clk clocks. CRs-Fixed: 1003179 Change-Id: Id403238f612a277973cd06f7d1d6f656a1812bba Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-04-19soc: qcom: service-notifier: update state after queuing notificationDavid Keitel
On establishing a connection with the remote service and being notified of a service's current state for the first time, first queue the service notification for the new state. Only then, update the current state of the service notifier. Also, to prevent a premature update of the service notifier state, remove the state update from send_notif_listener_msg_req. CRs-Fixed: 999530 Change-Id: I43288b1ae23081721a9baef5a5098891afd8ff64 Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-04-19soc: qcom: Add infrastructure to test service notifierPushkar Joshi
Add debugfs node based mechanism to test the service notifier driver functionality. CRs-Fixed: 999530 Change-Id: I9dc7a6f0f51c57da7f783c7c60aae9018462079e Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org> Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-04-19soc: qcom: Export Service notifier driver APIsPushkar Joshi
Export the service notifier APIs so that other kernel clients can use them. CRs-Fixed: 999530 Change-Id: I48fd55ae7991b64f818543dfcc963bc75135f714 Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org> Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-04-19lib: do_strncpy_from_user: Fix return error code for get_user failuresImran Khan
If byte wise copy fails here, we should return EFAULT. Returning a value other than that would cause failure of some of the user-space test cases. CRs-Fixed: 989314 Change-Id: I38ce12d44f25dc89bdd29e8abacd8777f0a8b9a1 Signed-off-by: Imran Khan <kimran@codeaurora.org>
2016-04-19ARM: dts: msm8998: Change GPU frequencies for new clock planOleg Perelet
Change GPU frequencies in dtsi tables to match clock plan. CRs-Fixed: 973565 Change-Id: Iae431f74d533a0b4a60bb38b46bcb6a7c717ac3b Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-04-19msm: ipa: add support for DOMAIN_ATTR_S1_BYPASSSkylar Chang
In order to set SMMU to S1 bypass configuration IPA driver needs to set DOMAIN_ATTR_S1_BYPASS before attaching to SMMU. The actual SMMU setting is controlled via device tree. CRs-Fixed: 998074 Change-Id: I3e63d9e6c511dd692b299543881e7266799108af Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-19msm: ipa3: enable smart prefetch control for GPISkylar Chang
Enable smart prefetch control for GPI (sys) channels. This is done by configuring the channel scratch in GSI. CRs-Fixed: 1000819 Change-Id: Iac1687b9b26eed715a1055cca295daa7b46f8abd Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-19msm: gsi: update channel scratch structuresSkylar Chang
Update channel scratch data structure according to GSI ver 83. CRs-Fixed: 1000819 Change-Id: I428963f9cd7885015e5185ef6c666bf26e0851bb Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-19ARM: dts: msm: add pinctrl setting for DSI reset and TE GPIOs for msmcobaltAravind Venkateswaran
Add active and sleep sets for the DSI reset GPIO, panel mode selection GPIO and the TE (tear check) GPIO which are needed to enable display on the DSI interface. CRs-Fixed: 1000724 Change-Id: I290e4813d74a392aa1e715e1ae181853a711523d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-19ARM: dts: msm: add QSEED3 offsets to MDSS for msmcobaltAbhijit Kulkarni
Change adds offsets of source and destination QSEED3 and LUT to mdss device tree which is required for QSEED3 functionality. CRs-fixed: 1000739 Change-Id: I838a39e799736b7c0297f993c8a96d982ab31d2f Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-04-19ARM: dts: msm: add mdss device tree for msmcobaltAbhijit Kulkarni
Change adds mdss device tree for msmcobalt which provides mdss HW offsets for this chipset. CRs-fixed: 1000739 Change-Id: Ibb12e0179a66e89ca675f4ae35fc2f77c050da2c Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org> Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-04-19msm: mdss: add missing documentation for WB device nodeAravind Venkateswaran
Commit be231853070770fd7e7c6fd5ca2414e26e7534a7 ("Merge branch 'mdss-final-replay' into msm-4.4") resulted in the driver changes related to writeback sub node being merged without the documentation for the bindings associated with that device node. Add the missing binding documentation. Change-Id: Id2affddf055a6bbf0038958bcdb7abd6d7930509 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-19ARM: dts: msm: Add uartblsp node in msmcobalt cdp and mtpRunmin Wang
Add uartblsp node in msmcobalt cdp and mtp. CRs-Fixed: 1000637 Change-Id: I1605e68893a73f364f044c046e65b563e666bcd4 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-04-18regmap: spmi: Fix regmap_spmi_ext_read in multi-byte caseJack Pham
Specifically for the case of reads that use the Extended Register Read Long command, a multi-byte read operation is broken up into 8-byte chunks. However the call to spmi_ext_register_readl() is incorrectly passing 'val_size', which if greater than 8 will always fail. The argument should instead be 'len'. CRs-Fixed: 1002440 Change-Id: I2eb9f1e11f97cf7eeee4314616bc5d06443c8920 Fixes: c9afbb05a9ff ("regmap: spmi: support base and extended register spaces") Signed-off-by: Jack Pham <jackp@codeaurora.org>