power: qpnp-charger: update battery status when boost enabled

Battery status is not updated correctly when boost enabled with charger
connected and battery charged to full. Add some logic in the boost
enable/disable hook function to update the battery status.

CRs-Fixed 688311
Change-Id: I07f7f6c11e206533d30470e78eef246dc15cf871
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
Merge "power: qpnp-charger: update battery status when boost enabled"
msm: vidc: handle dynamic buffers in pendingq during flush

In dynamic buffer mode, if flush was received before
stream-on, driver would have incremented the ref count
for output buffers, but not yet sent to firmware. So,
after flush done, there would be no fbd from firmware
and the reference to these buffers would not be removed.
So when the buffers are dequeued, driver fails to
unmap and free the output buffers.
Subsequently, after flush done, when client queues
the same output buffers again to driver, the ref
count is increased and becomes 2. This results in
the driver holding the buffers with itself, thereby
entering in to a deadlock situation and starving the
firmware of output buffers. This results in a video
freeze.

Change-Id: I0c3d13124bd48b900e56e14666eaed2f0e7ee9d6
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Merge "msm: vidc: handle dynamic buffers in pendingq during flush"