net: wireless: bcmdhd: Fix of Wireless Location Service

	Fixed [10378803] [BATCHED-SCAN] WLS_BATCHING commands often
	return their command back rather than expected outputs
Signed-off-by: Ecco Park <eccopark@broadcom.com>
led: leds-qpnp: sustain PHY_VBUS high to disallow USB disconnect.

Due to high current consumption when turn on the flash, the PHY_VBUS pin falls low.
So, set the PMIC register USBIN_ULIMIT_OK and USBIN_LLIMIT_OK to 1
to let the PMIC sustain PHY_VBUS high.

Change-Id: I31bb6def3d97b57ba82136664b87131f73b84ce6
Signed-off-by: janghyun.baek <janghyun.baek@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
mmc: sdhci: Add a mechanism to disable HPI

Certain cards might cause a timeout when used with HPI mode
due to card specific issues. Provide a mechanism where HPI
mode can be turned OFF to workaround such issues.

Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
hammerhead: defconfig: Disable SDHCI HPI mode.

This helps to workaround card specific issues.

Bug: 10603694
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
hammerhead: lge_handle_panic: intentional modem restart, not lge crash handler

Modem would request the AP for the intentional modem reset. In that case,
lge crash handler should not capture this as fatal error. It would
be used for sprint activation.

Bug: 10533802
Change-Id: I67840c06e9d3b9e23c735c33aa22dfde66e54799
Signed-off-by: Devin Kim <dojip.kim@lge.com>
msm: kgsl: queue work to ts_expired_ws for early exit

A rare condition exists where the GPU is idle when a new event
is added. In this situation a GPU interrupt will not be
generated to trigger event processing. This condition can lead
to a deadlock and fence timeout.

Change-Id: I35601be2414930688901baec50a472346801eef7
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
net: wireless: bcmdhd: Fix of Wireless Location Service

	Fixed memory Leak in case of rmmod DHD without batching stop.
Signed-off-by: Ecco Park <eccopark@broadcom.com>
usb: dwc3: add option to remove vbus power setting

Add option to remove vbus power setting in gadget driver.
This option can be set through device tree to keep
battery charging in usb suspend mode.

Change-Id: Ie53290701608a0ea01595bac2e681a41240b22d4
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
arm/dt: hammerhead: remove usb suspend current to keep charging

To keep charging in usb suspend mode, enable option of
no-set-vbus-power which can disable vbus power setting in
dwc3 gadget driver.
Even though this change will violate the usb spec, it can
provide a better user experience.

Change-Id: Ie22ceaff63e79c6cf2e06700f57c94a981f3b5c1
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
diag: Fix log, event and msg mask status in control packets

The status field in the logs, events and msg mask update control
packets is set incorrectly to a default value. This patch adds
the correct status value in the control packet sent from Apps
to peripherals.

Bug: 10730478
Change-Id: I7850db055b5c4aad0d3e6ffceb6411be03090091
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
diag: Increase the maximum number of SSIDs per msg mask range

Diag was using a max ssid range of 100. This has increased due
to addition of new SSIDs. This patch increases the range to 200
and adds checks to limit the SSID masks to this range. This
changes the order of sending the feature masks, sending it before
the msg masks to let the peripherals know the features Apps
support.

Bug: 10730478
Change-Id: Id913712b29208054ab036743ffc4122699501bc3
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
msm: mdss: sync point factoring to allow async signaling

Refactor sync point implementation by using a commit thread to handle
all commits for better performance. By using commit thread we can also
allow unblock user space to program new frames while the update is still
in progress. Allow for async notifications to be done when frames are
flushed (new frame can be programmed) and frame is done (new frame can
be displayed).

Change-Id: I0952f3f0ea9273a92c74fa42cd3ca9c6f9d042f3
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: implement asynchronous frame events

Asynchronous frame events from MDP allows commit thread to be unblocked
once the frame contents have been flushed to MDP HW and new frame can be
programmed while waiting for DMA transfer to complete.

Change-Id: Ica878f9d06ab0cc5260ad412815dcbd8ae391767
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: remove extra lock for ctl calls

Some ctl functions need only protection for mixer programming changes,
since all of these calls are made within ov_lock there is no need for
additional protection. Specially since ctl->lock is still held when
mixer configuration is safe to be changed.

Change-Id: I4f39e28f40ef18789a653d02346358b7ca7590c6
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
mdss: Increase display commit thread priority

The display commit thread queues up the frames being transferred.
Increase priority to reduce jank.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mdp: Add retire fence

Generate the retire fence with a +1 offset from the current
release timeline. This would mean that the retire fence of the
last frame is signaled when the current frame has transferred.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
ALSA: compress_core: Update calc_avail to use cumulative values

The app_pointer is managed locally by the compress core for memory
mapped DSPs but for DSPs that are not memory mapped this would have to
be manually updated from within the DSP driver itself, which is hardly
very idiomatic.

This patch switches to using the cumulative values to calculate the
available buffer space because these are already gracefully passed out
of the DSP driver to the compress core and otherwise should be
functionally equivalent.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Eric Laurent <elaurent@google.com>
ALSA: compress_core: Calculate avail correctly for capture streams

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Eric Laurent <elaurent@google.com>
ALSA: compress_core: Deconstify copy callback buffer

The buffer passed to the copy callback should not be const because the
copy callback can be used for capture and playback.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Eric Laurent <elaurent@google.com>
ALSA: compress_core: Add support for capture streams

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Eric Laurent <elaurent@google.com>