Keep the correct hdcp1x data after hdcp1x registration to
avoid issues with invalid data access. Also, increase the
re-authenticate timeout to give sink and source reasonable
time to reset the hdcp engines. Fix the reset bit before
hdcp off and re-authentication.
Change-Id: Ie1d1540a87e96a33d3e5521cf933399a60d467ab
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add support to restart link training at a lower link rate if the
training has failed at the current rate in Clock Recovery phase
or has reached the maximum number of retries in the Channel
Equalization phase.
Change-Id: Ic7ac0b7ac19d19577d4d1223c8638f17ad9d78af
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
hdcp 2.2 message has multiple parts with different addresses.
Currently, each address is read/written as a separate aux
transactions. As, for a particular message, all parts are
read/written contiguously, make single aux transaction instead
of multiple transactions to avoid unnecessary aux delays.
Change-Id: I284bc56aa94eef127c2bdd0f80aab7b0cf080342
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add the votable name in the first line of the debug output. This helps
in understanding which voter the output is for.
Change-Id: I7c3d321f9f062037d85efba437a3fc1012b64d4b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Fix the dead lock happening during re-authentication where
threads were waiting for each other during clearing the last
session and starting a new one.
Change-Id: Ife18adde8349acb92b22e228d0bbc18edbf2c90e
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
The default value of CPE FLL threshold register needs to be updated
to 0x20 as per the hardware specification. Change fixes this by
adding this register to the codec register defaults.
CRs-Fixed: 1083199
Change-Id: Ib19d78f0834803c75b255ee3a119e043ffb8a988
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Enable PMM_TCXO_CLK before swith to cxo. Also, add
debug logs of reading WCSS_SR_PMM_SR_MSB register
multiple times to check whether ref clock is shut off
or not when xo disable command failed.
CRs-Fixed: 1082643
Change-Id: I1aae776d5e6cc8f1cc2af9278c0e3d6ac37804a9
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Memory core and memory peripheral blocks should remain
on upon host bus suspend otherwise XHCI controller
fails to respond to XHCI commands upon host bus resume.
These memory blocks will be turned off only upon stopping
host mode or vbus off in device mode.
Change-Id: I1f53c9536b6896111707b77954d2b6cf4d227db8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Integer overflow check is invalid when ULONG_MAX is used,
as ULONG_MAX has typeof 'unsigned long', while areq->assoclen,
q_req->crytlen, and qreq.ivsize are 'unsigned int'. Make change
to use UINT_MAX instead of ULONG_MAX.
Change-Id: If2bb1900c07af1ea162da362c913d4880b0bc755
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Add initial device trees for msmcobalt v2 QRD VR1 board.
Move audio device tree entry to common file as well.
Change-Id: Iabc11506074511ee71463e9d287f6e460dca451e
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
Today IPA-USB uses disconnect sequence when USB initiates
suspend without remote wake-up, and uses suspend sequence
when USB initiates suspend with remote wake-up.
In accordance with USB-GSI driver, changing this behavior
to use suspend sequence in both of the cases. This is to
overcome some USB H/W malfunction when using disconnect
sequence in case of suspend scenario.
Change-Id: Iba43e192905ab37d196aea4b5d00861b9cb7c347
CRs-Fixed: 1068949
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
During system suspend, usb_suspend() will get called for
both root hub instances and in the choose_wakeup() routine
it will find that device_may_wakeup() returns false. If
the busses were previously runtime suspended then
udev->do_remote_wakeup would be set, but since it conflicts
with the wakeup setting being false, the routine has to
first runtime resume the devices in order to change the
remote wakeup setting. This causes unnecessary delay
as it interrupts the system suspend sequence.
Since the host already does support remote wakeup, enable the
per-device wakeup settings for both the hcd root hub instances
in order to avoid the mismatch during choose_wakeup() which
will allow usb_suspend() to proceed without any unnecessary
resume.
Change-Id: I619272c5d0439427061541f5658cfd305a4ebd46
Signed-off-by: Jack Pham <jackp@codeaurora.org>
As per register definition in software interface, the
bitmask for Micbias selection in wcd934x MAD setup should
be 0x07, not 0x03. Correct the bitmask setting.
Change-Id: I475d1219ae62378a90c69642f2320149d0f13885
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Currently, current limit (ILIM) for WLED is configured only for
pmi8994. ILIM levels differs in pmicobalt. Also, the step size
assumed before cannot go well with the different levels.
Default ILIM value differs for LCD and AMOLED mode. Taking this
all into account, add a separate function to configure ILIM for
different PMIC subtypes.
Change-Id: Ibc69706ae1dc878de5cbdaf283f0d71aff8000a1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>