UFS clock scaling might start kicking in even before the device
is running at the fastest interface speed which is undesirable.
This change moves the clock scaling kick start only after the
device is detected and running at the fastest interface speed.
Change-Id: Id9af7b31eab5b67f4cf2eb38c4e90a568e7968c5
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Fix compilation error for service-locator when Kconfig option
is not enabled as in perf build.
Change-Id: I42bfe4417de8ed7a2e74500bf4f3aee0bedc811c
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
cleanup, avoid printing messages on normal behavior.
Change-Id: I9258ae9a0db8028f8bec88c1d56a59c86377f366
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
The PMIC_STATE is expected to move to idle after the VCTL register
value is written to the PMIC.
Also update the PMIC_STATE poll timeout to 500us for all the targets.
CRs-Fixed: 1024714
Change-Id: If9d9875a967179c6ee5fced8f019c01f1a2f0583
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Device reboot to edl, it's for switching device to emergency dload mode.
So it's need to keep device to do warm reset.
Change-Id: I8f5d0845c6f2d37ea740949ce56e02c4cc7412be
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
Add gpio controller node for msmcolbalt, so that we can initialize
and control us_euro/hifi_hph_en switches on board.
Change-Id: I5e39d88ab2e814d7bfb386b0355a65ee166cfbb0
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Add pinctrl support in machine driver to control hph_en0/hph_en1
gpios owned by wcd934x.
Change-Id: I99a7746259c563379d060c10bbd602d3e6a65746
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Few msm targets do not have video concealment support.
As concealment not happening for corrupted frames,
filled length will be zero. But video clients are expecting
time stamp information for corrupted frames as well.
Remove filled length verification to propagate timestamp information.
CRs-Fixed: 1041031
Change-Id: Ic3d204189f9ecb812705f501f269c085c8bbe34f
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
For emulation platform, there are multiple PHY init sequence passed
through device tree. On some platform all PHY init sequence is not
required. This results into using zero as value and offset with PHY
init sequence which is not passed through device tree as of_get_property()
doesn't update size variable if property is not found. Hence reset size
variable to zero before querying next property size.
CRs-Fixed: 1056000
Change-Id: I0c1af2e3a4f3d530af8d8bbec2f41408ab78ed96
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Aligns the frequencies to the FMAX values defined by clock
driver for venus on msmcobalt v2 target. Also link these
frequencies to appropriate load values and imem ab levels.
CRs-Fixed: 1053136
Change-Id: I755d1ad62de97ded55f73148e1a56bc3afafc03b
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
This commit adds support for msmcobalt v2.1 chip on mtp, cdp and
qrd platforms.
CRs-Fixed: 1053410
Change-Id: I877e9816a226a54b16167cc6978e97fd0b298fb8
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Add an initial core-dev mapping table for memlat to
improve power and performance.
Change-Id: I90b400adb7607aa9833a39e0d58e978336b6c1bc
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
As per USB 3.1 Specification, Revision 1.0, Section 9.6 all new
devices running at SuperSpeed or higher speeds must report a
bcdUSB of 0x0310.
Change-Id: I253d0114fadb33456c7a0eb823d29aade1f33dc1
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Add sysfs node to provide the status of display-port's cable
connection. Framework may query about the interface connection
status before powering it on.
Change-Id: I43d0d18b875c4516727f91c57cfb571e3ac91706
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add a core to memory frequency mapping table, which establishes
a relationship between the core frequency and its corresponding
bandwidth vote.
The governor expects a "qcom,core-dev-table" table as part of a given
memlat hardware monitor's device tree node.
This table is read upon registration of the memlat governor. The table
is then used to determine the memory bandwidth vote corresponding to the
maximum of the core frequencies.
CRs-Fixed: 1054146
Change-Id: I9df118da1433125b02c937bf1799a0944b110fac
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Suggested-by: Saravana Kannan <skannan@codeaurora.org>
Currently hdcp 1.x is being used by HDMI only. But it can be
used by other interfaces like DP (Display Port). Change the
name of the hdmi_hdcp module to hdcp_1x so that different
interfaces uses more generic name for hdcp 1.x instead of
the interface specific name.
Change-Id: I0cb88c5715dd10c4fad5491e5f05ea489a7ab175
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Initialize the hdcp 1.x module and get hdcp operations.
On DP power, start the hdcp authentication and handle
the result in a call back. Re-authenticate in case
authentication failed. When DP is powered off, tear down
the hdcp session.
Change-Id: Ia321ab17bc9f9aeec1078d6f5199582f9b410b94
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Disable CoreSight ETM and remote ETM configuration for perf defconfig.
ETM configuration requires jtag save and restore configuration to be
enabled which requires QDSS core clock to be on all the time.
Change-Id: I57019e9b6be7f9020eed3cf730bf5b37ea4a1f98
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
When edid mixer control is executed, if the hdmi ops is
not set, the mixer control get_info() returns error.
This error is treated as fatal by the caller.
Fix by returning valid mixer control info when hdmi ops
is null.
Change-Id: I0097a75d94690b199fab1adc7f2ff3faa2d82e7b
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Add slimbus_6_rx phandle reference for asoc-cpu property in
sound node for wcd934x codec. This enables audio playback
support over headphones for msmcobalt platform.
Change-Id: I36050f122e67f95cc7f2dbdd3c73b4de5baea785
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Allow for greater granularity of QoS clocks enabled when
enabling clocks for QoS configuration for each node. Current
implementation requires all QoS clocks related to the parent
fab to enabled, which works well for mass QoS programming at
probe time, but turns on unnecessary clocks when QoS programming
defers at initial client request. This fixes an issue where
Camera's initial client vote also caused the toggling of mdss
gdscs which created a deadlock situation where the notifier
callback from MDSS GDSC tries to obtain the same lock held by
Camera's call in the same thread.
Change-Id: Iff1d086fcfc92a709d198f84227cad9bd6f57646
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Disable ipa-hw on cobalt APQ revisions due
to APQ doesn't have any modem use-cases.
Change-Id: I3251ffcac5cc1257befc5f57d1984a33bf530c23
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Change format string to %pK instead of %p in the debug statements. This
change fixes kernel address leaks from the usage of %p.
CRs-Fixed: 1052825
Change-Id: Ib95f691919a2977f5436cd4c6ac4a002d70dd729
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Some of the CPE (Codec Processing Engine) registers in wcd934x audio
codec are read-write registers with only few bits that are read-only.
Add change to mark such registers as volatile to avoid reading stale
value from cache for the read-only bits.
CRs-Fixed: 1049012
Change-Id: I6d77cf57e940c9efa6be64565d9ea7d328f0cd9b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Ensure that on detach any lazy mappings for that device are released.
We don't want to leave any outstanding mappings after detach because
the client expects all mappings to have been unmapped, also we don't
want to leave references, in the lazy mapping framework, to devices
which could cease to exists.
CRs-Fixed: 1053605
Change-Id: I9894257c4783073fdba734a175bac486d6ee9347
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Use separate notifier for cpu dying callback. This way we can give
higher priority to this notifier. That will make sure that etm disable
code gets executed before etm save register code during cpu power
collapse and etm's registers restore code gets executed before etm
enable code while cpu is coming back online.
Change-Id: Ibebda314eebd71945e9eae8aa2339fc79c475556
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
If the WDSP component framework does not detect the concerned subsystem,
then the G-Link SPI Transport returns error. This prevents the system
from suspending.
If the concerned subsystem is not found, then let the system to suspend.
CRs-Fixed: 1055800
Change-Id: Id17993dbf28b45308464a7e0d1e5404747fefee1
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>