Commit graph

570485 commits

Author SHA1 Message Date
Joonwoo Park
9103cfbaa1 Revert "sched: add scheduling latency tracking procfs node"
This reverts commit b40bf941f6 ("sched: add scheduling latency
tracking procfs node") as this feature is no longer used.

Change-Id: I5de789b6349e6ea78ae3725af2a3ffa72b7b7f11
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-03 14:48:05 -07:00
Joonwoo Park
11ad3c4f92 sched: eliminate sched_early_detection_duration knob
Kill unused scheduler knob sched_early_detection_duration.

Change-Id: I36b7a10982367f9c7ab8eefcb8ef1d0f9955601d
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-03 14:47:51 -07:00
Joonwoo Park
eedf0821f6 sched: Remove the sched heavy task frequency guidance feature
This has always been unused feature given its limitation of adding
phantom load to the system. Since there are no immediate plans of
using this and the fact that it adds unnecessary complications to
the new load fixup mechanism, remove this feature for now. It can
be revisited later in light of the new mechanism.

Change-Id: Ie9501a898d0f423338293a8dde6bc56f493f1e75
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-03 14:47:39 -07:00
Joonwoo Park
6b2c4343e7 sched: eliminate sched_migration_fixup knob
Kill unused scheduler knob sched_migration_fixup.  With this change
scheduler always adjusts CPU's busy time during migration.

Change-Id: I5d59e89d5cc0f2c705c40036cd7b47f5d3f89e58
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-03 14:47:25 -07:00
Ingrid Gallardo
5039c9bc7a msm: mdss: fix pipe cleanup for multi-rect pipes
For multi-rect pipes, driver tries to release the
pipe only when both pipes for both rectangles
are in the destroy list. Current code always
detects that there are two pipes with the same
number in the list, since the first iteration to
look for the pipe in the list always correspond to
the same pipe used as the initial index.
This causes that driver unnecesary halt the dma pipe
when still in use for the second rect that is still not
freed. Fix this issue by making sure the same pipe
objects are not used to check if there are two pipes
with the same index in the release list.

Change-Id: I19268009e76b8535fa4a7aa742a1cfc957f8aece
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-06-03 14:47:06 -07:00
Chandan Uddaraju
cea962b52f ARM: dts: msm: fix DP PHY and PLL register base address for msmcobalt
Update the DP PLL node with the correct base address
for PHY and PLL registers.

CRs-Fixed: 1009740
Change-Id: I7194e72a191f2f52dd708c84d5a8ab55f03729fe
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-06-03 14:46:56 -07:00
Joonwoo Park
dc284e65df sched: eliminate sched_upmigrate_min_nice knob
Kill unused scheduler knob sched_upmigrate_min_nice.

Change-Id: I53ddfde39c78e78306bd746c1c4da9a94ec67cd8
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-03 14:46:44 -07:00
Karthik Reddy Katta
3f7f6d4899 msm: Fix failure in deregistering custom topologies
AVCS_MODE_DEREGISTER_ALL_CUSTOM_TOPOLOGIES is defined
as "1" where as in ADSP the value is "2". Redefine
the same to fix the mis-match with ADSP code.

CRs-Fixed: 1005434
Change-Id: I210e43b53c6170425ee35c02b728698b33afb591
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
2016-06-03 14:46:30 -07:00
EunTaik Lee
cf229da508 staging/android/ion : fix a race condition in the ion driver
There is a use-after-free problem in the ion driver.
This is caused by a race condition in the ion_ioctl()
function.

A handle has ref count of 1 and two tasks on different
cpus calls ION_IOC_FREE simultaneously.

cpu 0                                   cpu 1
-------------------------------------------------------
ion_handle_get_by_id()
(ref == 2)
                            ion_handle_get_by_id()
                            (ref == 3)

ion_free()
(ref == 2)

ion_handle_put()
(ref == 1)

                            ion_free()
                            (ref == 0 so ion_handle_destroy() is
                            called
                            and the handle is freed.)

                            ion_handle_put() is called and it
                            decreases the slub's next free pointer

The problem is detected as an unaligned access in the
spin lock functions since it uses load exclusive
 instruction. In some cases it corrupts the slub's
free pointer which causes a mis-aligned access to the
next free pointer.(kmalloc returns a pointer like
ffffc0745b4580aa). And it causes lots of other
hard-to-debug problems.

This symptom is caused since the first member in the
ion_handle structure is the reference count and the
ion driver decrements the reference after it has been
freed.

To fix this problem client->lock mutex is extended
to protect all the codes that uses the handle.

Change-Id: Ia1a36ad6336305fe8383863cfab066a56525fd9f
Signed-off-by: Eun Taik Lee <eun.taik.lee@samsung.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 9590232bb4f4cc824f3425a6e1349afbe6d6d2b7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[shashim@codeaurora.org: Resolved minor merge conflicts]
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-06-03 14:46:14 -07:00
Krishna Srinivas
ff9567e538 msm: mdss: Fix NULL pointer dereference
A wrong pointer is freed and dereferenced
leading to fatal exception. Fix this by
correcting the pointer variable.

Change-Id: Ic3d55d88c61ab215139de7fe0c53b8bb89bf85f8
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
2016-06-03 14:46:01 -07:00
Shashank Mittal
08fc981cdb coresight-etm4x: handle invalid CPU id
Add support to fail ETM probe in case of invalid CPU id.

Change-Id: I99a95cb48190dd2efc9c78be1e2c26b0b8eb53cb
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-06-03 14:45:49 -07:00
Chinmay Sawarkar
3827d8da7d ARM: dts: msm: Enable video interframe power collapse on msmcobalt.
Enable hw controlled, interframe power collapse of video subcores.

Change-Id: I5781532ca667424a00c74805cc1178910f476c9b
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
2016-06-03 14:45:35 -07:00
Prashanth Bhatta
8e1b60d0cd icnss: Synchronize driver probe
Synchronize WLAN driver probe with the register driver so that
register driver waits for the probe to complete if FW is ready.

Change-Id: I978d217fe41c2d62bb96c6f6816d5cbf851b9add
CRs-fixed: 1022750
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-03 14:45:23 -07:00
Deepak Katragadda
d4c48266b2 clk: msm: clock-gcc-cobalt: Add the cnoc_periph RPM resource support
Add support for modelling a new cnoc_periph RPM resource on
MSM COBALT. In addition, fix the rpm_res_type being used for
the mmssnoc_axi_clk and remove the pnoc resource support.

CRs-Fixed: 1003213
Change-Id: I9f9845fea425fc4463dae72e8f8ab6e8bda23121
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:15:33 -07:00
Siddartha Mohanadoss
5c5c7ecab5 defconfig: arm64: msmcortex: Enable IIO and RRADC driver
Enable Round robin ADC (RRADC) driver to enable clients
to read channels on pmicobalt such as battery ID, battery
thermistors. Enable IIO since RRADC driver registers with
the IIO framework and clients can use the IIO
framework to issue read requests for supported
RRADC channels.

Change-Id: I88b5922ab4dc817257042fdaa385768e6f14be57
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-02 16:15:22 -07:00
Xiaojun Sang
1057bc674e ASoC: compress: fix unsigned integer overflow check
Parameter fragments and fragment_size are type of u32. U32_MAX is
the correct check.

CRs-Fixed: 1014726
Change-Id: Ia6d4755408646ac4a75724f3c6f2177651875da3
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-06-02 16:15:12 -07:00
Shubhraprakash Das
5adaa69766 msm: camera: isp: For vfe version 4.8 do not reset vbif
Do not reset vbif for vfe version 4.8 based on recommendation
from h/w team.

Change-Id: Ia31c3f10c24380d9670cd0ca83834844435e593d
CRs-Fixed: 999619
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-06-02 16:15:00 -07:00
Deepak Katragadda
3eea6009d3 ARM: dts: msm: Enable the GPU clock driver on MSMCOBALT v2
Enable the linux clock driver support for graphics
clocks on MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: I78f1d3a1ac9ed09d2f4f266f61a1c14d44b41f53
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:14:47 -07:00
Gidon Studinski
181365feb6 ARM: dts: msm: disable IPA and rmnet-ipa nodes on APQ8096
IPA HW does not exist on APQ8096, so disable it.

Change-Id: Ibd0041cea2ac47180110a1cfe96516d347d9816a
CRs-Fixed: 1019576
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2016-06-02 16:14:36 -07:00
Osvaldo Banuelos
9479947bb7 ARM: dts: msm: Add full Silver cluster frequency plan for msmcobalt
Support Nominal and Turbo frequency scaling for the Silver
cluster of the msmcobalt chipset. This enables CPU clock scaling
up to the 1.881 GHz.

Change-Id: I1fdde432e267c1161ac5d28bdee4af57c23137ec
CRs-Fixed: 1022853 1021593
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:14:19 -07:00
Deepak Katragadda
587539cd1f clk: msm: clock-mmss-8996: Add graphics clocks support on msm8996 Pro
The graphics clock frequencies need to be updated for
msm8996 Pro. Add support for doing the same using the
bin fuse values.

CRs-Fixed: 1022663
Change-Id: I60185482ae9b5364e297370593d95cce056b314e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:14:05 -07:00
Subash Abhinov Kasiviswanathan
cdd6e17060 net: core: neighbour: Change the print format for addresses
Print format %p displays the kernel address while bypassing the
kptr_restrict sysctl settings.

Change the print format for addresses from %p to %pK. If
kptr_restrict is enabled, addresses are printed as zeroes. To view
the actual addresses, disable kptr_restrict by -
echo 0 > /proc/sys/kernel/kptr_restrict

CRs-Fixed: 987041
Change-Id: I2eb33c63168ab26818dfdb3e11315f2ce8f24fa5
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-06-02 16:13:53 -07:00
Viswanadha Raju Thotakura
0ee5931d85 msm: camera: Configure some of the csiphy registers
Reset the ctrl register while releasing the hardware.

CRs-Fixed: 1021009
Change-Id: Id0687402d56f24ca851916f92f86a145136bb866
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-06-02 16:13:41 -07:00
Osvaldo Banuelos
9f4d90068f clk: msm: osm: increase unstall timer for PC/RET FSM to 5 us
Increase the power-collapse and retention FSM exit unstall
timer to 5 us. This timer is used to wait after a core asserts
its request to exit PC or RET.

Change-Id: Icb5c5f219a197a158e00f600e68111ff699062b7
CRs-Fixed: 1023187
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:13:28 -07:00
Osvaldo Banuelos
6032091894 clk: msm: osm: increase main PLL minimum L_VAL to 825.6 MHz
Increase miniumum PLL frequency to 825.6 MHz. This is necessary to
ensure stable operation when OSM engages the droop path to the
PLL.

Change-Id: Ide3309d4dc713892703e2eb5ee33c9db7f990156
CRs-Fixed: 1021593
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:13:14 -07:00
Harry Yang
ebfad685ef qcom-charger: use mutex instead of spinlock when calling the regmap API
Slow buses regmap holds a mutex lock, while for fast buses regmap holds a
spinlock. In order to remain compatible with slow buses spinlocks should
not be held before calling the regmap API.

CRs-Fixed: 1017800
Change-Id: I93aa6df8c7ec1916ba23d21d92e477510db949da
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-06-02 16:13:03 -07:00
Mitchel Humpherys
6a70911936 arm64: dma-mapping: Attach IOMMUs as groups
Some devices behind IOMMUs might end up in IOMMU groups due to DMA
aliasing.  The iommu_attach_device API expects a single device in a
group all by its lonesome, so it fails when a device is passed in that's
part of a group.  Use iommu_attach_group to accommodate these types of
devices.

CRs-Fixed: 1023180
Change-Id: I9601efd300c7f428c4576e6ecf6d31791d0b47bd
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-06-02 16:12:47 -07:00
Banajit Goswami
78f42e3578 ARM: dts: msm: add WCN3990 BT/FM support for msmcobalt devices
Pass device tree information for WCN3990 BT/FM chipset
presence on MSMCOBALT MTP and CDP targets to machine driver.

Change-Id: Iab4f544532e57682eb5dbfe7865850b8e978f1b4
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-06-02 16:12:35 -07:00
Skylar Chang
5e9c943aed ARM: dts: msm: Advertise SG support by rmnet_ipa on msmcobalt
This is needed to enable segmentation pkts offload feature
in IPA-HW called GSO (Generic Segmentation Offload).

Change-Id: If43428f0eb53370ca725480b3cd13e7b53e643c3
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-02 16:12:24 -07:00
Siddartha Mohanadoss
7e7f6db7c8 ARM: dts: msm: Add Round robin ADC channels for pmicobalt
Round robin ADC (RRADC) provides clients ability to read
supported channels from PMIcobalt RRADC such as battery ID,
battery thermistors, DCIN and USBIN voltage and current.

Change-Id: If4503b0e25ac151039d1743a007ba1624a2e90f4
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-02 16:12:11 -07:00
Skylar Chang
c6cac6d539 msm: rmnet_ipa3: add RMNET_IOCTL_GET_SG_SUPPORT support
While the transport always supports scatter-gather, the
capability advertised through this IOCTL is configured
from the device tree. Add support on ipav3.

Change-Id: Idf626cb5a22d2ed5152ab76dcc5fe56696a631a6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-02 16:12:00 -07:00
Subbaraman Narayanamurthy
b265655edb ARM: dts: msm: rename the flash/WLED devices in pmicobalt
Rename the flash and WLED devices available in cobalt platform
to use the same naming convention.

Change-Id: I812f0f6b38e7e9973cc9a0c8bfd6fb5078f719ff
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-06-02 16:11:48 -07:00
Skylar Chang
9f3090c43d msm: ipa: support GRO feature on msmcobalt
For this GRO feature, IPA-driver should not
de-aggregate the pkt received from modem, also
no need to attach status. Also netmgrd will
call ioctl to wan-driver to indicate when
this feature will be enable.

Change-Id: I1bc6fb87684ee8da6126dc331debf5880adceb4f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:27:49 -07:00
Rohit Gupta
7668a3726f PM / devfreq: memlat: Prevent deadlock with hotplug in start_hwmon
When start_hwmon() runs with another thread trying to hotplug a
CPU the two threads can enter a deadlock situation as follows:

Thread A (start_hwmon())		Thread B (CPU down)
get_online_cpus()
	|
atomic_inc(&cpu_hotplug.refcount)
					     CPU down
						|
				     mutex_lock(&cpu_add_remove_lock)
						|
				     cpu_hotplug_begin() waits on
				     cpu_hotplug.refcount to reset
register_cpu_notifier()
	|
mutex_lock(&cpu_add_remove_lock)

With this change the notifers are registered and unregistered per
device rather than having a common notifier block for all the memlat
devices and unregistration only happens on stop_hwmon. This makes it
possible to move the registration outside the hotplug lock without
any race between multiple memlat devices.

Change-Id: I6ad561fe4967042e45190aea2c9b7fcfe05bafdd
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-06-01 15:27:34 -07:00
Siddartha Mohanadoss
8b2d1771d2 thermal: tsens: Update critical temperature threshold value
Existing controller health detection uses a critical
temperature threshold of -40degC. Update the value to -95degC
so that there are no false positives seen when min threshold
is disabled and temperature goes below the threshold value.

Change-Id: If27ecfbb7b080080074bfe142f493fbf8f53f673
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-01 15:27:21 -07:00
Skylar Chang
687ab4acbd msm: ipa: enable power save to ODU
Remove keep_awake flag from ODU bridge to allow IPA to
go to clock gating.

CRs-Fixed: 1013927
Change-Id: Ic9efb8555ec4bdad2c099719de4ed56677b194ca
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:27:08 -07:00
Skylar Chang
db200c1e6e msm: ipa3: fix to read hw tables from debugfs
Fix to IPA driver debugfs logic to read filtering
and routing directly from HW.

CRs-Fixed: 1020271
Change-Id: I6bb5f9a01e3f41107d7b5bdf7c19557546573463
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:26:55 -07:00
Tatenda Chipeperekwa
57799c7a59 Revert "msm: mdss: hdmi: check clk state before power on"
This reverts commit 05f3cbbe5c
("msm: mdss: hdmi: check clk state before power on"). The check
for clock state was required for earlier target's fast hot plug
use cases, and uses the clock framework for check for clock rates.
This approach does not work on msmcobalt and causes the power on
sequence for HDMI to fail.

CRs-Fixed: 1022772
Change-Id: I320427f810fd35b11335685bae95b3c5fb9c8fee
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-06-01 15:26:40 -07:00
Satya Durga Srinivasu Prabhala
7149162d4e ARM: dts: msm: Add support for MSM8996pro v1.1
Add device tree support for MSM8996pro v1.1 along with different PMIC
configurations it supports.

CRs-Fixed: 1004223
Change-Id: I46f2ec5170fb204e9e0535aca1482b5e39e21de3
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-06-01 15:26:24 -07:00
Susheel Khiani
3b2e2a3ded msm: secure_buffer: Fix possible NULL pointer dereference
Presently we were passing NULL dma_handle while
making dma_alloc_coherent call. This is an issue
as alloc function would try to populate handle
value with dma address and would end up getting
NULL pointer error. Fix this.

Change-Id: I38ebb9bbae2d6e1e1311fe438b3c8fc3f65e5692
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-06-01 15:26:08 -07:00
Shiraz Hashim
9735edbe89 arm: dma-mapping: fix data types to hold size_t
size_t type data should not be held under variable of type
int, as this can truncate large values especially on a
64bit system. Fix it.

Change-Id: I5ad1ab321738772a99920e3fa287bda266cb05ed
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-06-01 15:25:54 -07:00
Gilad Landau
1750551815 msm: ipa3: Move IPA RAM mapping to DTS file
Use DTS configuration file to initialize IPA memory partitions
in order to allow per target configuration decoupled from code.

Change-Id: If770b9315807e51e46cd94dec6234ef186cf4fcb
CRs-Fixed: 1022125
Signed-off-by: Gilad Landau <glandau@codeaurora.org>
2016-06-01 15:25:42 -07:00
Chen Feng
13e4f13fde staging: ion : Donnot wakeup kswapd in ion system alloc
Since ion alloc can be called by userspace,eg gralloc.
When it is called frequently, the efficiency of kswapd is
to low. And the reclaimed memory is too lower. In this way,
the kswapd can use to much cpu resources.

With 3.5GB DMA Zone and 0.5 Normal Zone.

pgsteal_kswapd_dma 9364140
pgsteal_kswapd_normal 7071043
pgscan_kswapd_dma 10428250
pgscan_kswapd_normal 37840094

With this change the reclaim ratio has greatly improved
18.9% -> 72.5%

Change-Id: I20ea0e4ad0537f6e90efbc59fb8d56d691ee3bde
Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Lu bing <albert.lubing@hisilicon.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 2ef230531ee171a475fc3ddad5516dd7e09a8a77
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[vinmenon@codeaurora.org: Resolved minor merge conflicts]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-06-01 15:25:30 -07:00
Vijay kumar Tumati
c136a71701 msm: camera: Add support for DPCM modes
DPCM8 and DPCM6 are 10 bit to 8 and 10 bit
to 6 bit compression formats respectively
which sensor outputs and it is decompressed
to 10 bit in CSID

Change-Id: I8ec4de7d9cfa5e9c86d97bd9cb81feddc97dc7b8
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-06-01 15:25:18 -07:00
Abhijeet Dharmapurikar
0849a61bdf platform: qpnp-revid: add definitions for pmicobalt versions
Some workarounds need to be applied only for v1.0 and v1.1 of
pmicobalt. For drivers to check and compare the versions, add
definitions for pmicobalt versions.

CRs-Fixed: 1018090
Change-Id: I3c6c0b470c7d15802c7cf4cb8ced85548dbb81c7
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-06-01 15:24:57 -07:00
Deepak Katragadda
6b6fc205b0 clk: msm: clock: Support graphics clocks on MSMCOBALT v2
Add support for controlling the graphics clocks on
MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: Ia94606113b112a5e363e342a0ad1d977a48b3d72
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:46 -07:00
Deepak Katragadda
ddeec52110 ARM: dts: msm: Add MSMCOBALT v2 specific gfx_stub regulator changes
Use the gfx_stub_vreg regulator node for sourcing the graphics
clocks and GDSC on the pre-silicon platforms. Note that CPR
changes are still required for the graphics rail on the actual
target.

CRs-Fixed: 1015446
Change-Id: Ib92b11c23785e737f91ad09bcbb3d0b849d3a2bf
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:31 -07:00
Deepak Katragadda
d7a39b708a ARM: dts: msm: Enable the MMSS clock driver on MSMCOBALT v2
Enable the linux clock driver support for multimedia
clocks on MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: Ice373ce1656f1ab045eefd57dcd700a4c20deedf
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:17 -07:00
Deepak Katragadda
ef382ea0ea clk: msm: clock: Support multimedia clocks on MSMCOBALT v2
Add support for controlling the multimedia clocks on
MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: I636001ea91e7be1e2adec2ea7cd3d9aadfcc39a2
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:04 -07:00
Mayank Rana
30c04a7b2b Revert "usb: gadget: gsi: Decrement USB gadget pm usage count on cable disconnect"
'commit 3a7ce1db5661 ("usb: gadget: gsi: Decrement USB gadget pm usage
count on cable disconnect")' added decrementing USB gadget device's pm
usage count from STATE_INITIALIZED which results into multiple time
decrementing USB gadget device's pm usage count on USB cable disconnect
as below:

1. On USB cable disconnect, USB bus suspend event is being received which
post EVT_DISCONNECTED. If state is STATE_CONNECTED, ipa_work_handles()
decrements USB gadget device's pm usage count, and move state to
STATE_INITIALIZED.

2. Due to USB cable disconnect, gsi_disable() posts EVT_DISCONNECTED.
This event is processed into STATE_CONNECTED causing additional decrement
of USB gadget device's pm usage count.

Due to above case, USB goes into low power mode with dwc3's pm usage
count negative. On connecting USB host mode cable, xhci resume is failing
due to dwc3's (parent of xhci) is having negative usage count which results
into no USB host mode functionality (pm_runtime_get_sync() returns -EBUSY).
Hence revert commit to allow USB Host mode functionality.

CRs-Fixed: 1020388
Change-Id: I853aba1d2d03945ee49adde7f0ea483cd406ce2b
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-06-01 15:23:52 -07:00