Forcing a certain current limit is not supported in the current
driver, but well needed in when pd is active.
In this change, ICL_OVERRIDE/APSD and USB mode are updated, so
that PD can alter current limit by simply voting the ICL
setting.
Change-Id: I8d3ec938d433fe9bdbb8c091873c07e75c49d632
Signed-off-by: Harry Yang <harryy@codeaurora.org>
WLED in pmicobalt supports AUTO_GM configuration in CTRL_VLOOP_COMP_GM
register. Add two properties to enable auto-gm and set auto-gm threshold.
Meanwhile, move "qcom,loop-ea-gm" property outside of AMOLED constraint
because WLED in LCD mode also support it.
CRs-Fixed: 1081738
Change-Id: Iee99e9d1b999c84ece075d2f17e9cdf6aef9a2ac
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
WLED module in pmicobalt has different VREF_CONTROL settings with current
WLED module which is existing in pmi8994/pmi8952, including min voltage,
max voltage, step size and default voltage. Add support for it.
CRs-Fixed: 1081738
Change-Id: Ibaa555cec8cfd296125af3e6277df5331f5c438b
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Do not dump PCIe PHY and PARF register space when there is
a linkdown. By the time PCIe receives the linkdown interrupt,
the reset for PCIe PHY has already happened, so these registers
do not have any meaningful value.
Change-Id: I8f66ab9375fd42573a895d5d872a3d2e1782adee
Signed-off-by: Tony Truong <truong@codeaurora.org>
Clients of PCIe determine the size and transfer speed of
incoming IP packets. In order to ensure ordering of all
packets, each client requires different PCIe write halt
sizes. Thus, make this PCIe setting configurable.
Change-Id: I208c8c83a8f5ee8efadf01175f60d70fb4bf48cf
Signed-off-by: Tony Truong <truong@codeaurora.org>
xHC gets powered down when host mode is stopped. xHCI power
management is intended for ACPI based power management which
is defined for PC architecture. Hence there is no need to
clear run/stop bit and save the runtime register states upon
port suspend.
Change-Id: I9d0b31021e7c47084cd92c8c70e17cff3d057655
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Sink may issue attention event faster then it can be processed by
source. Create a list of attention events and process them one by
one in the order on workqueue to avoid missing any attention event
from sink.
Change-Id: I36fd45efe1aa9437d5551002fc75a5f37d9cef79
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
When clients make call to release buffers, driver is calling
buffer requirements to HW. Sometimes this can cause incorrect
state operation which can result buf_req failure. Hence avoid
this call.
CRs-Fixed: 1087935
Change-Id: I12873a92ed0b7157032c25946cce27349f2c2a1f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
HDCP authentication requires valid keys on the source device.
If keys are not present, authentication can never be successful.
Check if the device is provisioned with hdcp keys, if so, proceed
with the hdcp authentication on HDMI/DisplayPort cable connection
otherwise avoid authentication as it may result in unnecessary
re-authentication loop.
Change-Id: I391ee35fa20cfade89773ecb565b220cc6249b8d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
During DQBUF, invalidate cache for input buffers
so that when clients access buffers, they read
updated values.
CRs-Fixed: 1088598
Change-Id: Id38e0dd5899fc0ec0d24e19061e458e6f28249e3
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
ARRAY_SIZE returns size of array. While sending command string
we need to only pass size of actual command string, hence use
strlen in place of ARRAY_SIZE.
Change-Id: If0afc6b1209b03ae17472a17b34d9d403757bfd0
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
During rotator IRQ handling, it is possible that the context list
getting updated with open and close handling within the IRQ timeframe,
so it is necessary to add the spinlock to protect the context list.
CRs-Fixed: 1087423
Change-Id: I20a04c766e55c75db15662e9a13e20396b35f30e
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>