is_state1 is supposed to return true, if and only if all CPUs that are
capable of being partially halted are either partially halted or fully
halted.
In the event that there are no partially halted CPUs in a system,
meaning min_partial_cpus is defined as 0, the expectation is for
is_state1 to return false.
However, cpumask_subset will return true if the first source CPU mask is
empty. This leads to unexpected behavior, as it would result in a case
where the system is always under state1 when min_partial_cpus is set to
0, resulting in a side effect where frequencies would never be synced.
Fix this by ensuring that if the number of CPUs that are capable of
being partially halted is 0, is_state1 returns false, thereby ensuring
that in such a system, state2, and therefore frequency sync, is always
the norm.
Change-Id: I2fb7cf27659d42fe713bdacf08db9b7c88c06800
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
er_ctxt->rp pointer is updated by MDM which is untrusted to HLOS,
it could be arbitrary value.
If there is security issue on MDM, and updated pointer which is not
align then driver will never come out of loop where checking against
dev_rp != rp.
So added check to make sure it is in the buffer range & aligned to 128bit.
Change-Id: Ib484e07f2c75fcd657a4ccc648a3a20de3edeebc
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Update the ipcc dt-bindings header to include definitions for the soccp
client and increase the max IPCC client value.
Change-Id: I452f966e37f623f7e35fee4496a0b374f974f4cb
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
FBE HWKMv1 driver snapshot from msm-5.15 branch
commit 4d5395da7b77d ("msm: Adding File Based Encryption(FBE)
support with HWKM V1 in msm 5.15").
Change-Id: Ibb52b781443f8ba6b35c5d1905db905df5afaaaa
Signed-off-by: Pawan Rai <quic_pawarai@quicinc.com>
On targets that only support ufs as the primary boot device,
the print "nvmem cell get failed" is causing confusion. Change it
to dev_dbg() to avoid this unnecessary warning.
Change-Id: I1f814fcad7a21b415dd4521962c7f1afe67a2f83
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Currently, ucsi_unregister() and its associated cleanups are done
in the same context when ucsi_qti_state_cb() is invoked for SSR
or PDR event. This can cause issues when ucsi framework tries to
send messages from ucsi_unregister() again. To avoid this, call
ucsi_unregister(), ucsi_destroy() from a separate unregister_work.
Change-Id: Id3248161e0d1727be9e02d2fc8801dba0109361c
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
WCD standby feature enablement prevents leakage on D+/D-
type-C pins. Set the standby flag to true.
Change-Id: I44df7cd75ee5946617a1116bed4ceccbb1b94c3e
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
After migration to Bazel, the process for updating the GKI file list
was broken. Update the file list now that the process has been fixed.
Change-Id: I1de9eac6d9fd379d459db74a9b5834b0c394fb44
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
In SuperSpeed peripheral disconnect/connect scenario to a host
port, there might be a race between dwc3_msm_suspend and PORTSC
register update with Port_Enable bit and Speed field. This can
lead to dwc3_msm_prepare_suspend failure, thereby aborting the
LPM sequence, and the connected peripheral also not enumerating
because of xHC is in suspended state.
Fix this by requesting a xHC resume if dwc3_msm_prepare_suspend
fails and controller is in host mode.
Change-Id: I49e6c19fa92a9ef31dccff584f43bd8942becb87
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Signed-off-by: Manish Nagar <quic_mnagar@quicinc.com>