Add support for required node for audio of sdm630 qrd
with internal codec.
CRs-Fixed: 2005884
Change-Id: Ia6749d8dcc36910212f7a4f755e7e0620b43da1c
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
This change enables midframe sampling timer which samples
the GPU power stats if the command batch expiry takes longer
than the threshold set by KGSL_GOVERNOR_CALL_INTERVAL. This
will help the use cases where long running command batches
were delaying GPU DCVS decision for increasing the frequency.
Change-Id: I08ec8f3389c2140e1205096abc2c01f2d3882abc
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
During the suspend flow, wil6210 HW can send sporadic interrupts,
while PCIe bus is not operational.
To prevent that, keep the interrupts disabled during the suspend
flow and re-enable them only after PCIe enablement in resume.
Change-Id: I205f8cdb89c4f64ecac4ca3422767bfc47ec3d33
Signed-off-by: Maya Erez <merez@codeaurora.org>
On sdm630, There is leakage of ~300-400uA current in Bluetooth page scan
scenarios when L6/L9/L19 follow HW_EN1.
Change-Id: Ia041245f4c3cb96373f53dd9c11e2e1249da96ae
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
Fix buffer overflow issue in synaptics touch driver while copying
the contents of "strptr" into "firmware_id". This code change is
meant to fix the same.
Change-Id: I8ea96af558eff540a37fb8e7da730c74502622aa
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
From bus driver, use aggre2_noc voter clock handle for voting
instead of using direct aggre2_noc clock, as this clock
can be enabled/disabled/set_rate from multiple clients.
Change-Id: I247f12c90b9b9900ebd9785454e8bd2b9dc13b96
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Following changes been made to improve soft fault detection,
which will fix un clocked register access in dispatcher_do_fault()
and incorrect declaration of GPU soft fault.
i) Stop fault timer before entering to NAP state
ii) Don’t start fault timer if the dispatcher inflight count is zero
iii) Add ringbuffer empty check in _isidle()
iv) Add device state check in dispatcher_do_fault()
CRs-Fixed: 2012731
Change-Id: I5ce498029f389eeeb428b4ac7fb07afd84d5764c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Clear ICE configuration once cmdq request processing is done.
This ensures that the key information is cleared by ICE driver.
This call is optional for FDE but required for FBE.
Change-Id: I231ca849aa34c156baa45fceae95debf46dd57f0
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Adding support for clearing ice configuration.
Once mmc request processing is completed, mmc driver has to
call config_end to ensure key information is cleared by ICE
driver. This call is optional for FDE but required for FBE.
Change-Id: I8c225deda782528a7f220f7d1f81c6240caca1ae
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Update the driver to support PM660. PM660 add dedicated
register for auto-resonance control and a few other changes
to haptics configuration.
CRs-Fixed: 2016588
Change-Id: Ia9d65bc0a1169b5cba1c122d50d49c8102ac79f5
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
Update the adapter allowance configuration from 5_TO_9V
continuous mode to 5_OR_9V discrete mode, this allows
hardware to detect Over-voltage for 5V adapter.
CRs-Fixed: 1104289
Change-Id: Ie43febb92e5a6e52ce17779d8cea91cbdd2011cb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Handle LPM when one of the session goes to sleep.
when LPM enable unvote ab/ib of inative session and
vice versa.
Change-Id: I72ab333b24d7ad5ae4deafa758e7e2d92f3cc9d2
Signed-off-by: Ramesh V <ramev@codeaurora.org>
QPNP_MISC driver provides support to read the registers or
support functions required on certain PMICs. Enable it.
Change-Id: Ib496506e60dc94dec1b2292bf0e6fd01583e2f75
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
saved_tgids memory was not freed in free_saved_cmdlines_buffer
which can cause memory-leak when /d/tracing/saved_cmdlines_size
node value is changed. Fix it by freeing saved_tgids
in free_saved_cmdlines_buffer.
Change-Id: I006870c858b7306b7d9c840b7712061985dda310
Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
QPNP_MISC driver provides support to read the registers or
support functions required on certain PMICs. Enable it.
Change-Id: If2a056feca4cc982d8840f6a2159a0788d08cd26
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
qpnp-misc driver supports some miscellaneous stuff which is
needed on certain PMICs. Change it to a platform driver similar
to other PMIC peripheral drivers.
Change-Id: I3f60bbe88616db82b568cc528f076368afd105ca
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
When usb composition switch happens upon cable disconnect and
function bind fails, function's config pointer is set to NULL.
This is resulting in to NULL ptr dereference when config is
accessed from APIs which are called asynchronously and out
side of the usb core driver(i.e. dwc3) context. Fix the
issue by directly accessing gadget pointer from gsi driver
context in those APIs.
Change-Id: I1006881ae1838e8ddc8fa5e9ef501f4c658b54e7
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Add sub-device node to allow mba to be able to load in carveout memory
region for MSM8998.
CRs-Fixed: 2006100
Change-Id: Iff3a83afad159f475d23a579c72d0c7c41c622c8
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
When framework reboot happens, HPD node is toggled
by the display framework. Make sure to send cable
disconnect event to framework when HPD is set to
'low' state.
CRs-Fixed: 1116934
Change-Id: If59ec7c81264ff76b661cdfd8e6b70356a6e1544
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Add support for suspend and resume events that are
triggered by the run time system. In particular, transition
the clock (link and core) and regulators state depending
on whether the suspend or resume is being processed.
CRs-Fixed: 1103664
Change-Id: I4e3de9b32963c71dfded0f695dc7734b8121e19a
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Fix the link training routine by removing the updates to
the state control register and the corresponding memory
barrier to complete the register write. This changes fixes
the link training failures seen with VGA monitors over the
Type-C/VGA dongle interface.
CRs-Fixed: 2008753
Change-Id: I501833e02d24d6aa12351eb0bd067a08ad597ed0
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Disable the DP audio engine on receiving the teardown_done
callback from the audio codec. This ensures that the DP
engine is in the disabled (MUTE) state in preparation for
the next audio session.
CRs-Fixed: 2006127
Change-Id: I7c984531d308501690ede36ea959391ebef7599f
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Update the interlaced field for the 1920x1080i60
resolution to show that the mode is in fact interlaced.
This will provide external display clients with the
correct information regarding this resolution.
CRs-Fixed: 2006873
Change-Id: I30f5da1e49e35a81f65508f2766118a58d12ceb4
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Separate the audio and video notifications while processing
the display hotplug events to ensure that the audio subsystem
is notified only when the display is in the correct state. In
particular, the audio subsystem should only be notified once the
mainlink is ready and the DP controller is in SEND_VIDEO state.
This will ensure that the DP audio engine is able to acknowledge
the audio unmute request, which will result in the AFE port being
configured correctly.
CRs-Fixed: 2007534
Change-Id: I702c1de6d4eb10e001d97e1d7e7c545ff481a401
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>