msm: vidc: Make sure clocks are disabled prepared when freeing ocmem

We cannot free ocmem for power collapse with enabled or unprepared
clocks, thus add a delay of 200ms until clocks are in a proper state.
This avoids warning like:

<3>[  128.062773] ocmem: No valid request to free
<3>[  128.063006] ocmem: Free failed for client video
<7>[  128.063236] msm_vidc: 1: Failed to free ocmem
<7>[  128.063263] msm_vidc: 1: Failed to free OCMEM during PC
<7>[  128.063290] msm_vidc: 1: Failed to unset and free OCMEM for PC -22
Revert "tracing/sched: Track per-cpu rt and non-rt cpu_load."

This reverts commit 4dc47fb113fee708933e503f96c3c6345678088d.

Change-Id: I916a4dc63acdbc0c4bb7a72d62a2fa2a2dfc0cb2
usb: dwc3: Readd missing bit

This got lost in commits c68c11c619b and 78bf4b203b.
platform: qpnp-power-on: Check the disable property from DT

Skip the power-on config if qcom,disable is set. Some devices wouldn't need
configuration for some power-on configs from DT. So add a property for that
and check the property in driver.

Change-Id: I7111ea6a07c6e1617dd0d66a92d1faca3e98fdca
platform: qpnp-power-on: fix for skipping disabled power-on node

When qpnp-power-on node is handled, skip to config a node which has a
property "qcom,disable=<1>". If a node has it, it is omitted from
configuration counter value pon->num_pon_config.

However, when qpnp_pon_config_init(pon) is called, it iterates by using
child node, not num_pon_config to config each pon nodes.
As pon->pon_cfg is alloced by kzalloc() based on pon->num_pon_config,
it is possible that memory corruption may happen by access wrong position
(e.g pon->pon_cfg[1] which has not been allocated may be accessed even
pon->num_pon_config is 1).

To fix this situation, skip it if node has "qcom,disable"
in qpnp_pon_config_init().

Change-Id: I7b75208777fd0452e5f8a8afe0d47fae45a6666f
Signed-off-by: Han Jun-Yeong <junyeong.han@lge.com>
msm: qpnp-power-on: Initialize earlier

Some drivers need to use qpnp-power-on functionality ealier. So initialize
this earlier for that.

Change-Id: Ia555a2876acf3d1cb4046d9fe2262567bdb4610a
Signed-off-by: darren.kang <darren.kang@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
qpnp: pwm: Add delay to disable/enable pwm

Need some time to ensure the pwm disable/enable.
If not, sometimes pwm is not enabled correctly.

Bug: 9772457
Change-Id: Ia5fd03b8395c2126744776ecfda33670acfb4596
Signed-off-by: sungjin.yun <sungjin.yun@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
usb: dwc3: suspend current restriction not required for CDP

Reference BC1.2 - CDP is allowed to draw IDEV_CHG without
having to be configured or follow the rules of suspend

Change-Id: Ibfb702ba665e537ae164f50b18e8d51f1ee29385
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
ARM: dts: Remove msm8974-hammerhead-dsi_jdi_cmd.dtsi

This is not used.
power: qpnp-charger: add option to enable SMBB boost only

Even if qpnp-charger is not a main charger, the SMBB boost
could be used in other driver, such as flash led. So add
option to enable SMBB boost without enabling charger.

Change-Id: I100fbf460b3dc17c93aed11e5a6a9b8f96e2b84c
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>