Commit graph

571328 commits

Author SHA1 Message Date
Manish Dewangan
bd8f954881 ASoC: wcd9335: add support for packed 24 bit
Changes to support packed 24 bit (SNDRV_PCM_FORMAT_S24_3LE).

CRs-Fixed: 1011048
Change-Id: If81f3053629dc4f80a08392f392c7be735ad33c2
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2016-06-28 17:03:12 -07:00
Manish Dewangan
8b8d412617 ASoC: msm: qdspv2: add support for MULTI_CHANNEL_PCM_V3 command
Driver changes to use ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V3 command.
This command supports playback/record of both 32 bit
(24 bit data in 32 bit word) and 24 bit packed. Update platform
drivers to use this for SNDRV_PCM_FORMAT_S24_LE record and playback.

CRs-Fixed: 1011048
Change-Id: I6f98bf3402a737bc21daff33b13b137850a690ea
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2016-06-28 17:03:02 -07:00
Ghanim Fodi
e335b6b9da msm: ipa3: Do not use APPS pipes for IPA kernel-test
IPA Endpoint 16 is the one assigned to APPS for WAN data.
This pipe is connected when modem is up. Kernel-tests
framework should not use it for testing purposes as this
pipe is already allocated for APPS. Update the code
to use another IPA Endpoint.

Change-Id: Ia0ed2ad9041353def1b3055d394281bca2893f88
CRs-fixed: 1034319
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-06-28 17:02:51 -07:00
Fenglin Wu
6dfd4af57b ARM: dts: msm: Change LAB precharge time to 500us for PMI8994
Set LAB's precharge time to max 500us to optimize the precharge
behavior.

CRs-Fixed: 1028321
Change-Id: I13eaca8f50080457b95f4c88f9987df6ba0f05c5
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-06-28 17:02:40 -07:00
Skylar Chang
e9e09e35af msm: ipa: change default low watermark for rx buffers
Change the threshold for resubmitting RX buffers to IPA in case
of allocation errors to a bigger number than 0.
In some corner cases a packet from IPA to AP might be larger than
the side of 1 buffer, which can result in IPA stall if threshold
is 0.

CRs-Fixed: 1027726
Change-Id: Ic841de25597c2cd4ce007823f9b9727e858a73cb
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-28 17:02:27 -07:00
Vinayak Menon
0806bdaa9a arm: dma-mapping: return NULL on remap error
Currently arm_dma_remap returns the offset value when it fails
because of reasons like unavailability of vmalloc space. This
is wrong as the caller expects NULL on failure, and can result
in kernel panic on dereferencing the returned pointer.

Change-Id: Ic851efecd1b5ff1c5e3105f28f392307857e63e3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-06-28 17:02:16 -07:00
Archana Sathyakumar
226509c1ee lpm-levels: Fix cpu idle trace and stats event
In the event that the cpu needs to be rescheduled for another task
before it enters psci sleep, the stats and trace exit events are
considered without the enter events. Fix this issue by moving enter
events before the cpu gets scheduled.

Change-Id: I8e477c434d218960b48aab4e61cacf99476b607f
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
2016-06-28 17:02:04 -07:00
Dibyendu Roy
b378543680 Bluetooth: Replace %p with %pK
The %pK restrictions are used to eliminate exposing kernel addresses.
When kptr_restrict is set to "0" there are no restrictions. When
kptr_restrict is set to "1", kernel pointers printed using the %pK
format specifier will be replaced with 0's unless the user has
CAP_SYSLOG. When kptr_restrict is set to "2", kernel pointers printed
using %pK will be replaced with 0's regardless of privileges.

Change-Id: Iacd8f7b7cdafed3a111507d3da899be9261ff09f
Signed-off-by: Dibyendu Roy <dibyen@codeaurora.org>
2016-06-28 17:01:54 -07:00
Harry Yang
88196d6678 qcom-charger: qpnp-smb2: Remove unnecessary watchdog interrupts
Watchdog interrupts bark and snarl get triggered frequently, causing
flood messages when enabled in debug_mask. However, neither irq is
essentially being used in charger driver.

Remove both interrupts by setting their irq handlers to NULL, and
skipping irq registration in case of NULL handlers.

CRs-Fixed: 1033724
Change-Id: I9414f3238d1568ec29973a7ec74054c779a7a196
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-06-28 17:01:43 -07:00
Nicholas Troast
f6f4829b35 regulator: rpm-smd-regulator: implement set_load
A recent change to regulator framework replaced the
regulator_set_optimum_mode API with regulator_set_load.

The regulator_set_load API does the following for regulators which have
not implemented set_load().

- determines the most optimal mode for the given load by calling
  get_optimum_mode()
- gets the current mode by calling get_mode()
- calls set_mode() if the modes are different and expects the mode to be
  committed to the hardware

The rpm-smd-regulator's get_optimum_mode() remembers the load and uses that
for the upcoming get_mode() call. This causes the framework to never call
the set_mode API, thereby causing rpm-smd-regulator to never send the load
to the RPM.

The set_load op was introduced for hardware which does not support the
set_mode op. This is convenient since the RPM sets the mode according to
the aggregated load requirements. In addition the RPM also supports forcing
certain modes which fits well with the set_mode op.

Implement the set_load op to send the aggregated load vote to RPM, and
repurpose the set_mode op to send the aggregated mode vote to RPM.
Remove the get_optimum_mode op since it is no longer required with this
change.

Repurposing of set_mode should not impact consumers since it has the same
effect as before. Instead of sending a load vote which would cause the RPM
to select the desired mode the mode will be sent directly.

Furthermore, the hpm-min-load device tree property is no longer required
since the mode is no longer set based on the hpm-min-load threshold.
Remove it.

Change-Id: I75cf0b4cfc7a6aec3e6d79da9172ce37ec9d91c1
CRs-Fixed: 1023326
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-06-28 17:01:30 -07:00
Mahesh Sivasubramanian
a639c08b80 defconfig: arm64: msmcortex: Enable RPM stats/logs
RPM stat/logs provide stats about system sleep modes.

Change-Id: I10dc1bdb2fcfe216cdcf147eab936c2f92b5217a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-06-28 17:01:17 -07:00
Mahesh Sivasubramanian
54e952dabc defconfig: arm64: msm: Enable RPM stats/logs
RPM stat/logs provide stats about system sleep modes.

Change-Id: Idf7b30586d5e3c34929b348628f90e5d88f2a9ff
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-06-28 17:01:06 -07:00
Anil Kumar Mamidala
6899c45563 lpm_levels: Avoid race by preventing hotplug during lpm probe
When cluster enters a low power mode, the mode entered is stored
in last_level. During LPM driver probe last_level is initialized
to default level, if a core in that cluster is online.

If all the cores in the cluster are hotplugged after initializing
the last_level and before the per cluster data structures are
initialized, cluster enters low power mode but does not update
last_level as the data structures are not available. In this case
when a core in this cluster is coming online and last_level indicates
default level, assumes cluster did not enter any low power mode,
the update of flags to reflect the cores as active for this cluster
does not happen. This makes driver to select system level low power
mode as if this cluster is in low power mode eventhough it is out
of low power mode.

To avoid this race, prevent cores hotplug during lpm probe.

Change-Id: I1d0c51c52e54ab30239b2fca11040f134315fe61
Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
2016-06-28 17:00:55 -07:00
Arun Menon
0f44a0706b msm: vidc: Add missing qmenu entries for MPEG ctrls
V4l2 control framework mandates a qmenu entry for each control item.
Validate_new() function accesses the qmenu entry for control item,
and any missing qmenu entries causes a crash within this function.
This patch fixes those crashes.

CRs-Fixed: 1031156
Change-Id: Ie507b1de9ce08221678a730146164d6e970aac8a
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2016-06-27 19:53:07 -07:00
Ben Romberger
ad4a2b5368 misc: qcom: qdsp6v2: Return flush errors to user space
Return errors from the flush function including
the caller of the flush ioctl.

CRs-fixed: 1027784
Change-Id: I7ec578b42f50b6ce2f2738193c622c8a2f01ecd8
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-06-27 19:53:06 -07:00
Helen Zeng
4102eee9c4 ASoC: msm: qdsp6v2: Support host pcm feature based on new VSIDs
With single voice architecture, two new VSIDs are created to
support multimode voice call. Update host pcm driver to support
new VSIDs.

Change-Id: I42e33db7f3dca47c30b7dc5af59848eb6beef330
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2016-06-27 19:53:05 -07:00
Oleg Perelet
aaf93b3e62 msm: kgsl: Create sysfs entry to control GPU clock throttling.
Create sysfs entry to control GPU clock throttling. When 0 is
written - all sources of clock throlling - ie LM, BCL, IDLE
are disabled.

CRs-Fixed: 973565
Change-Id: Iad588eb94861bd6b223715cc05354e3c39db9b24
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-06-27 19:53:04 -07:00
Siddartha Mohanadoss
3e39d1775a hwmon: qpnp-adc-voltage: Add optional VADC property
Add option to select whether a fresh calibration
needs to be performed when performing the channel measurement.
If the property is not present the default value of
using calibration measurement collected from a timer
will be used. For most cases using a measurement collected
from a timer interval should suffice and the default value
can be used.

Change-Id: I632a9466f04d5d0712de436fc3e1251f7e2e7ad2
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-27 19:53:03 -07:00
Ping Li
3213a9e52a msm: mdss: Add memory retention support for MDP LUT clock
A new MDP LUT clock is added to msmcobalt, add code to set
the corresponding mdss_mdp_lut_cbcr register to support MDP
memory retention on msmcobalt.

Change-Id: Icf0890a6f2d3c44e426bd834b3c7943cc6766bae
Signed-off-by: Ping Li <pingli@codeaurora.org>
2016-06-27 19:53:03 -07:00
Ping Li
50e33221ab ARM: dts: msm: Add MDP LUT clock to msmcobalt
A new clock mdss_mdp_lut_clk has been added to mdss on msmcobalt,
this change adds this clock to the list of clocks for mdss mdp.

Change-Id: I94d0965c5e431613e37e2369d0f0572e083d0acd
Signed-off-by: Ping Li <pingli@codeaurora.org>
2016-06-27 19:53:02 -07:00
Osvaldo Banuelos
9d55c92e01 ARM: dts: msm: remove OSM cluster PLL setup sequence for msmcobalt
The OSM driver need not execute the Agera PLL setup sequences
now that the bootloaders are handling such requirement. Thus,
remove the qcom,osm-pll-setup flag from the OSM device node.

CRs-Fixed: 1033726
Change-Id: Icffa6b8e29c1a13c08c11980b9bfd70b25efd56c
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-27 19:53:01 -07:00
Satya Durga Srinivasu Prabhala
931a5101df 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: I2d35c6d47221d5b043c7cbe6ad8bee178d14ef8d
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-06-27 19:49:13 -07:00
Satya Durga Srinivasu Prabhala
4238968842 arm64: defconfig: msm: sync up with Kbuild defaults
defconfigs got out of sync, sync them up.

CRs-Fixed: 1033538
Change-Id: I73e43ad042ab0dc2e148d149d09652d37297514b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-06-27 19:49:12 -07:00
Puja Gupta
16a962e1f7 ARM: dts: msm: Remove voting on vdd_pll regulator for MSMCOBALT
Remove voting on PLL regualtor for modem pil since it is not
required for MSMCOBALT. We already vote on XO.

CRs-Fixed: 1025447
Change-Id: I9f478194a1a6147a8312e232c6ca3fd1eeb01682
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-06-27 19:49:11 -07:00
Puja Gupta
7ad2d36bca soc: qcom: pil: Make vdd_pll optional property for modem
Since 'qcom,vdd_pll' is optional property, change the flow so that pil
doesn't return if it is not present.

CRs-Fixed: 1025447
Change-Id: I530bbeb89f769afb188f28bcdc0230d32feed3dd
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-06-27 19:49:11 -07:00
Mohan Pallaka
345bae1747 ARM: dts: msm: update pinctrl for gpio89 on msmcobalt
Update msm gpio 89 pin control settings to pull down
in suspend to save power.

Change-Id: Ibd46ae4d6bebd40637a78a551984b4c16a693d79
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2016-06-27 15:05:14 -07:00
Ryan Hsu
fb5706b746 cfg80211: Bypass checkin the CHAN_RADAR if DFS_OFFLOAD is enabled
When WIPHY_FLAG_DFS_OFFLOAD is defined, driver would take care the
DFS related operation, hence the Kernel needs to ignore the DFS
states checking.

CRs-fixed:1032889
Change-Id: I02fa5e3e25427c0ca474455fa2d2be9eb6ea4bd9
Signed-off-by: Ryan Hsu <ryanhsu@codeaurora.org>
2016-06-24 15:08:32 -07:00
Osvaldo Banuelos
2e9944e962 clk: msm: osm: add panic handler to dump status registers
Add a panic handler to dump the OS performance state,
program counter OSM watchdog registers, and the APM status
register when the device crashes due to a kernel panic.
These are critical registers that are useful for debug.

CRs-Fixed: 1033031
Change-Id: I2bbf6884cf83457bfb7e5369bb97614bd4beb150
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-24 15:08:20 -07:00
Shiraz Hashim
24edbd9fd4 arm: mm: consider only lowmem regions while remap
Consider only those memory blocks with lowmem while
remapping into 4KB regions using CONFIG_FORCE_PAGES
feature.

Change-Id: Ie209fce6c310f911d8cf02d977e226660684a6ab
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-06-24 15:08:08 -07:00
Shiraz Hashim
14c44670ea arm: mm: fix pte allocation with CONFIG_FORCE_PAGES feature
CONFIG_FORCE_PAGES introduces a debug option to mark free
pages as read only in order to trigger a fault if any code
attempts to write to a page on the buddy list.

In order to achieve this it splits all section mappings in
to PAGE_SIZE pages during boot. While doing this split, it
wrongly allocates a pte (of page size) for each pmd. Linux
however in armv7 short descriptor format, uses same second
level pte for 2 consecutive pmds offset by the actual second
level table size. Refer comments in kernel file
arch/arm/include/asm/pgtable-2level.h for details.

Fix this by allocating pte for a section mapped pmd while
providing required offset if pte already exists.

Change-Id: Iadbaa5e71e4b220208a7275bf039a2a413349e42
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-06-24 15:07:56 -07:00
Susheel Khiani
3b2670ae0c Kconfig: Add menu choice option to reclaim virtual memory
Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.

Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-06-24 15:07:44 -07:00
Laura Abbott
8a2e028a6d arm: Allow remapping lowmem as 4K pages
Lowmem is currently mapped with sections (1MB/2MB) whenever
possible due to TLB performance boosts. Sections cannot easily
be changed at runtime however which makes implementing certain
features annoying. Add an option to map lowmem with 4K patches.
This is intended to be used as a debugging feature and should
NOT be used for performance testing.

Change-Id: I9612a99b8e05a022f5ba7e568f21307cf66b5667
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-06-24 15:07:32 -07:00
Chris Lew
b1e748622f diag: Add support for multi connection logging
This change adds support to route On-Device logging and
USB logging traffic per peripheral. A peripherals'
traffic can go to either endpoint but not both. The
mux layer has a peripheral state and the mode switching
logic has multi mode support.

CRs-Fixed: 1004236
Change-Id: I54fef744bdf08a346e4aef22c1280e928cdaf5d2
Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-06-24 15:07:20 -07:00
Hemant Kumar
0db49c2550 usb: gadget: mtp: Increase RX transfer length to 1M
The test results indicate that larger transfers improve write speeds.
The Rx request transfer length is now 16K bytes. Increase the Rx
transfer length from 16K to 1MB to get good throughputs.

Change-Id: I3c64e6b96d569b4dc61805a53a0835db9142d55e
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-06-24 15:07:09 -07:00
Nicholas Troast
80fbf5405f regulator: Add snapshot of DT documentation for rpm-smd-regulator driver
This DT bindings documentation snapshot is taken as of msm-3.18
'commit 00df358f2e6a8 ("regulator: rpm-smd-regulator: introduce BoB
regulator type")'.

CRs-Fixed: 1023326
Change-Id: Icc20967019996616a4eb2ebba6df47e7bc7188d7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-06-24 15:06:56 -07:00
Abhijit Kulkarni
fc907d939b msm: mdss: fix multi-rect validation properties
Fix issues with multi-rect to allow the multi-rects on the same
z-order. In multi-rect use cases the rect 0 of the pipes have higher
priority than rect 1. The change checks the priority of rect on the
right mixer with the priority of rect on the pipe staged on left mixer.

CRs-Fixed: 1023723
Change-Id: Ifd1df8ee04238db0338a7dd70eb5097af2d0eb62
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-06-24 15:06:38 -07:00
Alan Kwong
1ca62857bd ARM: dts: msm: Enable v4l2 rotator node on msm8996
Enable sde v4l2 rotator node on 8996.

This replaces mdss rotator node.

Reserve dma 0/1, writeback mixers, writeback 0/1, and control 5
for rotator driver.

Disable WFD as it shares context bank with rotator.

CRs-Fixed: 1030443
Change-Id: Ie3970f29c7f1800c4457dc71a3f36a54e1cbdb91
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-06-24 15:06:12 -07:00
Alan Kwong
99c05f926e msm: mdss: Add dereference check for xlog vbif dump
Bypass vbif dump for ununsed vbif by checking for
null pointer dereference of io base.

Change-Id: Ic7204921fc82d5aea31c58fcbb668b296794b1c1
CRs-Fixed: 1030443
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-06-24 15:05:45 -07:00
Ashish Jain
54588859db ASoC: msm: qdsp6v2: DAP: Add check to validate data length
Validate input data length to ensure only relevant data
is copied.

CRs-Fixed: 1027585
Change-Id: I67eb4f162f944bbf4d9e55fb8fe93759e6b8ff91
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-06-24 15:05:31 -07:00
Mel Gorman
5812a73a14 mm, sl[au]b: add __GFP_ATOMIC to the GFP reclaim mask
Commit d0164adc89 ("mm, page_alloc: distinguish between being unable to
sleep, unwilling to sleep and avoiding waking kswapd") modified __GFP_WAIT
to explicitly identify the difference between atomic callers and those
that were unwilling to sleep.  Later the definition was removed entirely.

The GFP_RECLAIM_MASK is the set of flags that affect watermark checking
and reclaim behaviour but __GFP_ATOMIC was never added. Without it, atomic
users of the slab allocator strip the __GFP_ATOMIC flag and cannot access
the page allocator atomic reserves.  This patch addresses the problem.

The user-visible impact depends on the workload but potentially atomic
allocations unnecessarily fail without this path.

Change-Id: Ieac0932d146f7fd992db9fd834b0e9aa3822f891
Link: http://lkml.kernel.org/r/20160610093832.GK2527@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Reported-by: Marcin Wojtas <mw@semihalf.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org>	[4.4+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Git-Commit: 843f65ccbb2273430b57ae135ccd26dddee05be7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-06-24 15:05:16 -07:00
Subhash Jadavani
73fa24503b scsi: ufs-debugfs: add error state
This change adds support to allow user space query if low level UFS driver
has encountered any error or not, this state can be read/cleared via
debugfs.

Change-Id: I867a4621315108aff17be852cfaadcfa945566a7
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-06-24 15:05:01 -07:00
Osvaldo Banuelos
a26ae43d87 ARM: dts: msm: add CPR panic register configuration for msmcobalt
Specify the panic register configuration in the VDD_APC0
and VDD_APC1 CPR device nodes. This enables the CPR panic
handler to dump the values of the specified registers during
a kernel panic.

CRs-Fixed: 1033060
Change-Id: Ifdd03f27ed1135acd4470d891e1b5aca4a11dd65
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-24 15:04:49 -07:00
Osvaldo Banuelos
506ddf3b44 regulator: cpr3-util: init panic notifier for CPRh controllers
Call cpr3_panic_notifier_init() when cpr3_parse_common_ctrl_data()
is called for CPRh controllers. This allows dumping registers during
a kernel panic when CPRh controller devices specify panic register
configuration.

CRs-Fixed: 1033060
Change-Id: I437fe28725d5c1ed06fe8b9735b04bbd84e92db1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-24 15:04:34 -07:00
Tirupathi Reddy
23a1f5a2a6 regulator: cpr3: Add panic handler to dump register contents
Add panic handler to dump a few critical CPR registers when device
crashes due to kernel panic errors.

CRs-Fixed: 1004533
Change-Id: Id01b4f959c134af48c509ade61c7ec46401b4e70
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-06-24 15:04:15 -07:00
Dhoat Harpal
9986d0f710 soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_EVENTS
SMEM_SMEM_STATIC_LOG_EVENTS is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_CHARGER_BATTERY_INFO.

CRs-Fixed: 1032131
Change-Id: I35a8307001ac14e3ade733d5f41d6231fe63ebd0
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-06-24 15:03:06 -07:00
Deepak Katragadda
293a2b36f2 clk: msm: Set the GMEM GX clamp before disabling the GPU_GX GDSC
The GMEM GX clamp should be set to the active state before
turning off the gdsc_gpu_gx.

CRs-Fixed: 1027772
Change-Id: I5bb97734a2402e763836250c3ce6f7fc308c20a6
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-23 14:03:03 -07:00
Rajendra Nayak
51b1e61b99 clk: qcom: alpha-pll: Add support for hwfsm ops
Add support to enable/disable the alpha pll using hwfsm
Also add support for initial configuration (needs to be split)

Change-Id: Ifc2fe0539b943e850681143da76da27274203ed2
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-06-23 14:02:50 -07:00
Stephen Boyd
b090808ab4 clk: qcom: Add Alpha PLL support
Add support for configuring rates of, enabling, and disabling
Alpha PLLs. This is sufficient for the types of PLLs found in
the global and multimedia clock controllers.

Change-Id: I0d26e8f6d225cc3669f3a9e3c37b45e49e139879
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-06-23 14:02:37 -07:00
Srini Kandagatla
d5b60ee22e fixup rpm clks on 8996
Change-Id: Ia19aa0ebc209322955da1d22f5eb73c9cd7af908
(cherry picked from commit 6c72267db866b9841312defdf81b100db77a0e71)
Git-commit: 6c72267db866b9841312defdf81b100db77a0e71
Git-repo: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
Signed-off-by: Srini Kandagatla <srinivas.kandagatla@hackbox.linaro.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-06-23 14:02:26 -07:00
Rajendra Nayak
172a53173c clk: qcom: rpmcc: Add rpm clock data for msm8996
Add all RPM clock data for msm8996 family of devices

ToDo: Adapt to changes needed for RPM over GLINK against
RPM over SMD that the driver currently supports

Change-Id: Ib095af601a4f03d866cf94c8e277d04630abb42b
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-06-23 14:02:14 -07:00