list_first_entry expects the list to be not empty.
Use list_first_entry_or_null to return null incase
list is empty.
Change-Id: I44a8b726a90f8f55fd9388e74e31909c0bd71317
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
During the resolution switch use case where the active resolution
needs prefetch but the new resolution doesnot require it, currently
programmable fetch blocks are not disabled if not in use.
Change-Id: Ib5ea8ef75308132f5530aaf35aaea53858ea94a2
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Under ispif node set clock rate for camss vfe clock since
after xo shutdown this clock cannot be enabled without
setting rate first. Also, enable vfe clk src before
camss clock.
CRs-Fixed: 2013802
Change-Id: Ic735b405348e7f54c02fe222c87b6ceb862a9096
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Add DVDD_HARD_RESET and DVDD_SHUTDOWN types to power-on.h so that
they can be used in PMIC PON configuration.
CRs-Fixed: 2017642
Change-Id: I34ec58230fe38a193c50f7bf4d3ab0b2d96f82f1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
After charge termination, recharge SOC might get adjusted, which
is fine. However, if the charger is not removed after charge
termination and SOC drops further down because of a system load,
recharge SOC should not get adjusted again. This can cause
recharging not to begin at the intended SOC threshold. Fix this.
CRs-Fixed: 2018737
Change-Id: I3595c313f84b2ea8c0459c30f294deb8ac4d2866
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Hold wakelock on Neturino offload enable and release
it on disable to avoid Apps suspend.
Change-Id: I53e7abf49829159a4b07f9047617268e03162ff9
CRs-Fixed: 1060848
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
QMI timeout bound to happen when a request sent over QMI and at
the same time WLAN PD down happens. Add logic to detect PD down
event and do not ASSERT in case WLAN PD down is detected.
Change-Id: I73916ac9040250cdae16fb9c1a2c67df9ef940d3
CRs-fixed: 2017507
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
Add kernel header sanitizer check to drop struct epoll_event.
This struct epoll_event is not following the POSIX standard
and defining element in opaque data type.
Change-Id: I1eecef1b64eb1fb8f0dd6999263093a453e7b9fb
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Fix the symbol linking error for loadable kernel modules
which is using qmi service to communicate with the Q6 processor.
CRs-Fixed: 2017892
Change-Id: Ie5a6bba7387567dbfef0cefdde14b8e0ee6b08e6
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
As pd_locator_work failed to locate Pd service, icnss is
unable to receive the PD events so shutdown never gets scheduled
and hence PD_RESTART bit is not set, with the FW_READY event if
PD_RESTART bit is not set icnss proceed to probe the wlan driver
Add a check to validate the wlan driver status before
calling wlan driver probe.
Change-Id: I15b09063154e87fb1574d2d2f1492da2ba84da3a
CRs-fixed: 2019254
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
With the change 'commit 443b19badd ("icnss: Trigger recovery
only if PDR enabled")', wrong condition used to check if
PD restart not enabled. Correct the condition before
sending PD restart request.
Change-Id: I0729cebeb42d2c2b8e68f210ee9065f71a30cfad
CRs-fixed: 2018631
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
Add more granular thermal-mitigation levels for battery charging
limit based on thermal condition. It helps for steady control
of temperature when charging is enabled.
CRs-Fixed: 2017321
Change-Id: I082d478795b066e61970a7543118b55e7108b594
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Added new service identifier macro for scm call.
The service is for getting system bandwidth information.
Change-Id: I0a67fe039753ea30c81bcdb34612d79d6bc6082c
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
Some of the display panels requires various
escape clock frequencies for its operation.
Add support for the same by update esc clock
ops to clk_esc_ops.
Change-Id: I50cb79863cfdf880ba72e73a98905ecd87a08474
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Some of the display panels requires multiple clock frequencies
to be derived runtime from the sources for its operation.
Add support for the same by adding esc clk_ops to calculate
the desired frequency at run time.
Change-Id: Ie3ec84bb1927f5313c887344368dceffb06035be
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Fix race condition in mdp debugfs properties
during the read and write of the panel and
mdp registers. This race condition can cause
accessing memory out bounderies.
Change-Id: I97a90a154237343d4aaf237c11f525bcc2c3a8e3
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
VFE src clk needs to be set rate before enable due
to hw limit. Make sure ispif enable succeed by setting
clk rate whether it is set by others or not.
CRs-Fixed: 2016879
Change-Id: Ida71ac2d3ad154dbb3f9be307070b8f8c796da1c
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
xhci quirks is initialized in xhci_gen_setup() which gets called
from usb_add_hcd(). Since LPM support quirk is ORed to xhci quirk
before calling usb_add_hcd(), quirk gets overwritten. Fix this issue
by moving LPM support quirk to xhci_plat_quirks() which gets called
after xhci quirk is initialized.
Change-Id: I8fb4684d434f098408dddb636b5482cb65b6999a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Unlike other debug logs, qsee and hyp log buffer are separated from tz
diag region, so it is not necessary to read tz diag region before
reading qsee or hyp logs. Otherwise, when tz diag region is encrypted
and locked on secure boot enabled devices, reading qsee or hyp logs will
cause XPU violation at tz diag region. Also, update the diagnostic table
with some new items.
Change-Id: I2872c4dce876763b5dac5656a982f6ce29cc81f4
Signed-off-by: Zhen Kong <zkong@codeaurora.org>