Add last entry as -1 in the pdc pin data for the loops
that break by checking if greater than 0.
Change-Id: Id2ae698a0526f2cf8946697bab12a9513db107e8
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
Make changes as per ion call sequence shared by memory team.
dma buf get is not required after dma buf allocation. If not,
put has to be done twice. So remove the redundant get buf
and get fd calls.
Change-Id: I4a521815a9bf75cb12d399a5643a8ef31a1dc2ca
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Compilation is broken due to missing comma,
hence fix the same.
Change-Id: I03ef4223fea39bd4a3d2b63b0bcb5108f72b0304
Signed-off-by: Shefali Jain <shefjain@codeaurora.org>
Due to change in makefile, module parameter's path
have been changed. The patch takes care of the issue.
Change-Id: I36faa875d508dd88292ff223bee625dee5ba616f
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Fix some minor bugs in charger driver:
- Return from OTG work if there is no change in OTG state.
- Update Power role mask.
- Skip AICL ADC configuration for PMI632.
- Fix OTG reporting via extcon.
- Disable PD for PMI632.
Change-Id: I6afdd9bc63dc97c562a8c480be896114c295c578
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Align the reserved memory region start address for continuous splash
feature on sm6150 target to memory map v5.
Change-Id: Ic26de321d841b546e1a3545e01e271570ff6ccd8
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Currently, capacity learning begins based on SOC threshold and
battery temperature. Since the SOC threshold to begin cannot be
qualified in certain low battery conditions, add another minimum
SOC threshold for a better qualification.
CRs-Fixed: 2225348
Change-Id: If916c0a04cec785dc25f3c70d0ea1643d598f479
Signed-off-by: Vamshi Krishna B V <vbv@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
When placement boost is active, the CPUs in the highest capacity
sched group are only considered for task placement. The
find_best_target()->skip_sg() skips lower capacity sched groups.
This is a problem for the tasks whose affinity allows them to run
only on lower capacity sched group.
Change-Id: I935ff3dc3daa98c636885312216a68323aac3ce1
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: trivial changes to fix compilations issues]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
When SCHED_CORE_ROTATE config is enabled, the CPUs that are
eligible for isolation are kept rotated for every system
suspend and resume cycle. cluster->set_cur holds this eligible
mask. It is also reconfigured when min_cpus tunable is changed.
The CPUs that are part of this eligible mask are only isolated
in try_to_isolate(). A CPU that is part of this mask but is busy
at that time left isolated. Since the new need is same as the
last need, eval_need() does not kick core_ctl thread next time
when the CPU becomes idle. To fix this issue, kick the core_ctl
thread when there more active CPUs than currently needed. The kicks
are rate limited by an existing tunable called offline_delay_ms.
Change-Id: I9d3815c6c6bede4b93a708ae6edb15f94d296399
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Add an SPMI debug bus device and associated child devices so that
consumers can have unrestricted access to the PMICs on
pre-production devices. This helps to make debugging easier.
Change-Id: I1cbcc8756afb878d07e57fc86ced93748eed7636
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Fix the state machine state check for IPA MHI Proxy
when vote request arrives.
Change-Id: I0f56ae9705b47c4ff9f5e84f752e057e903bf9df
CRs-Fixed: 2247846
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Currently, recharge SOC is adjusted (lowered) based on the SOC
where charging terminates. It is restored back to the original
threshold when the charge termination condition goes away. This
works fine in most cases. However there are certain conditions
where the charger fluctuates between fast and taper regions along
with the charge termination status.
Handle this by checking if battery is out of JEITA as well before
restoring back the original recharge SOC threshold.
CRs-Fixed: 2213369
Change-Id: Ic64151ddbbff09c26d6ebfcd3e6d4e70e0be8c9d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
If a smp2p change occurs while a virtual interrupt is disabled, smp2p
should be able to resend that interrupt on enablement.
This functionality requires the CONFIG_HARDIRQS_SW_RESEND to be enabled
to reschedule the interrupts. To ensure the mask and unmask functions
are called during enabled and disable, set the flag to disable lazy
IRQ state handling (IRQ_DISABLE_UNLAZY).
Change-Id: I75c662c61a9705c05278d238ca51f7a2e74806d8
Signed-off-by: Chris Lew <clew@codeaurora.org>
* quic/dev/msm-4.14-display:
msm: sde: fix linear 32bit type formats for rotator
drm/msm/sde: reset clt path after timing engine disabled
drm/msm/sde: turn on mdp clock before rsc mode_2 exit
drm/msm/sde: turn on clock before esd failure mitigation
drivers/misc/hdcp: add error handling for failed app initialization
ARM: dts: qcom: remove inline rotator configs from SDE for SM8150
drm/msm: update flag for seamless dynamic framerates
drm: edid: add support for parsing additional EDID blocks
drm: edid: HDMI 2.0 HF-VSDB block parsing
ARM: dts: msm: enable display rsc for sm8150
drm/msm: vote for mdss core in disp rsc during probe
drm/msm/sde: update qsync for intf te
drm/msm/sde: add support for qsync cmd mode
drm/msm: Fix the format prints in display driver
drm/msm/dp: validate power/aux submodule pointers in unbind path
Change-Id: Ibf515e5f799dd2a52c86f4bf39990e44a790ac79
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
The variable real_charge_type is a cached value to reflect the real
connected charger type based on APSD results. However, it is not
updated when APSD result status gets cleared on charger removal, the
moment when USBIN_PLUGIN_RT_STS goes low on unplug. As a result,
some times, charger type remains even after a charger is removed.
Fix it by updating real_charge_type in USBIN_PLUGIN IRQ.
Change-Id: I008aa466ef83c12a38d3d2a2d81c736d14d019c9
Signed-off-by: Harry Yang <harryy@codeaurora.org>
While mtp_read is being executed and mtp_function_disable
is called then all the eps will be disabled which will
lead to NULL pointer dereference in usb_ep_align_maybe
function which will subsequently try to access endpoint
descriptors.
Add spinlock protection in mtp_function_disable to
avoid race between mtp_read and mtp_function_disable.
Change-Id: If7f00ff2a98f75d2782e6bb35ad5fe59e4db6734
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Some targets need slave side secure buffers allocation using ION.
Add the support for the same.
Change-Id: I21489ea71fd7d2844c3bea1f4b701b3eb33cb355
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>