USB: dwc3: msm: Fix bug during STM enable/disable for QDSS

commit "I0fdc5d703b3fd445e83226534f07743461c96f4c:usb: dwc3-msm:
remove use of global context variable (DBM)" is required for adding
support multiple instances in dwc3-msm driver. This added an incorrect
condition check in the driver before reinitiating USB reconnection
for STM enable/disable. Due to this, QDSS doesn't work when STM tracing
is disabled and enabled. Hence Fix this issue by using proper check.

CRs-Fixed: 523344
Change-Id: I6302396c7bf03cd2313e5d571e0aef51648a2258
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: vidc: Free OCMEM during power collapse

To disable OCMEM clock during power collapse, video driver
has to free up the allocated OCMEM. This memory will be
re-allocated before bringing venus core out of reset.

CRs-Fixed: 571083
Change-Id: I88f7e771b21046d9817feb17b06b3739f128c434
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
msm: mdss: protect command mode BW votes by tracking HW/SW states

Track two states where the BW is needed for the command mode panels
and prevent the BW vote to be released during any of those two states:
1. SW Commit State: This state is the time when the SW has requested
a BW vote, and it will be processing it; it starts at the beginning of
Commit and finish once the kickoff is issued.
2. HW MDP State: This state is the time when the HW is busy
doing the actual transaction, so bandwidth must be kept until
HW finishes; it starts at the beginning of the kickoff and finishes
once the ping pong done interrupt is received.

Change-Id: I2e56128be3ab25a1b065692ae76387a3cd383df3
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Merge "msm: camera: Make ISP and camera kernel not interruptible"
Merge "msm: vidc: Update vb2q buffer sizes"
Merge "qseecom: Unload the app upon receiving qseecom_release."
Merge "qseecom: Fix issues with failure to release client handle"
Merge "qseecom: Add basic suspend resume functionality"
Merge "ARM: dts: msm: add support for qseecom bus scaling for 8074, 8226 and 8610."
Merge "t-base-202: Check if kzalloc() returns a NULL pointer."
Merge "msm_serial_hs: Programing the TX FIFO watermark level to 4"
Merge "msm: vidc: return EBUSY when hw is overloaded"
Merge "msm: clock: Add parent fields to gcc_ce1_clk and gcc_ce2_clk"
Merge "msm: kgsl: Fix spinlock recursion in destroy pagetable"
Merge "mdss: mdp3: fix logic when verifying if image can be scaled by 1"
Merge "rtc: alarm: update power_on alarm setting logic"
ASoC: wcd9xxx: Update button release thresholds based on current micbias

During short button press, the button release threshold
registers are updated based on the determined button number
so that when mic voltage goes above the programmed value,
release interrupt will be triggered. This reduces delay in
reporting button release. However, the release thresholds
should be programmed based on the current micbias voltage
instead of programming based on 2.7V micbias. Otherwise,
it is possible that during playback where micbias is switched
to VDDIO (1.8V), the mic voltage would never go beyond the
voltage programmed in release threshold registers there by
not generating release interrupt at all.

CRs-Fixed: 641486
Change-Id: Ied9891f88b89d6f972db5e197200886c6aab3ab2
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
rtc: qpnp-rtc: Set alarm control register properly

RTC Alarm enable bit does not get conserved during
RTC probe function. This patch fixes that issue.

CRs-Fixed: 636652
Change-Id: I28203b8e301510d34d2e726c0bd25e78737f7524
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
ARM: dts: msm: Increase the drive strength for MSM8610v2

At lower 10mA random CRC errors are seen. With 12mA drive
strength for clock lines the issue is not seen

CRs-Fixed: 601882
Change-Id: If2b3246c78a2d73acdedb76da964badb0e133bdd
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Merge "USB: dwc3: msm: Fix bug during STM enable/disable for QDSS"