mtd: msm_qpic_nand: change bam pipe lock group

BAM pipe 2 needs to be part of lock group 1 while BAM pipes 0 and 1
are part of lock group 0.

CRs-Fixed: 509945
Change-Id: Iacff3c33129dcc38f65c219ab42e0ac87aa79aac
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
Merge "mtd: msm_qpic_nand: change bam pipe lock group"
USB: msm_otg: Fix a bug in charger detection procedure

USB PHY is put into non-driving mode and pull-down resistors on DP
and DM are disabled before starting the charger detection.  The
PHY is put into driving mode at the end of the charger detection
without enabling the pull-down resistors.  Due to this DP is
pulled high when a dedicated charger is connected.  USB controller
is not allowing PHY suspend if line state is non-zero when charger
is connected.  Enable pull-down resistors at the end of charger
detection to resolve this issue.

CRs-Fixed: 509608
Change-Id: Ic1fc663b397e29e62d526b4146e92c93c84240ac
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
msm: ipa: fix BAM register dump stall debug logic

BAM-DMA may not be clocked so avoid dumping its registers.
Also limit the IPA BAM pipes dumped to reduce time spent
in this dump logic.

Change-Id: I1e4f4963f44b3644913e3804f4efdfb361f4eed5
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
msm: ipa: replace usleep with udelay during disconnect procedure

If APPS enters suspend state during this usleep, the wakeup
is not guarenteed to happen in 100us as expected. This can cause
modem side to timeout waiting on APPS side response. Since order
of wait is only 100us, replace the sleep with a busy wait.

Change-Id: I8cebbd8723ad663c2ac9c081ac45422936c70fab
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
Merge "msm: ipa: replace usleep with udelay during disconnect procedure"
Merge "msm: ipa: fix BAM register dump stall debug logic"
ASoC: msm: Fix RTAC to use VSID

All voice sessions use unique VSID for active
sessions in CVD. RTAC get param for voice
sessions require this VSID to work correctly with
CVD. This change fixes the issue of using proper
VSID in RTAC.

Change-Id: I6eb8e64ee5d7fad212b77882c897e5feb3cc96c5
CRs-fixed: 506008
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
Merge "ASoC: msm: Fix RTAC to use VSID"
usb: gadget: ci13xxx: cancel prime timer after disconnect also for ep0

When issue a transfer to the usb hardware core, the prime bit is set
for the desired endpoint. After the hardware finish processing the
transfer it reset the prime bit of that endpoint. In order to debug cases
in which this bit is not reset by the core, a timer was set for 1 second
after issuing the transfer for checking the prime bit status and print
debug messages in case of abnormal state.

However, this mechanism introduced a bug, in which the timer of ep0
was expired after cable disconnect. Therefore the prime bit was checked,
while the hardware is in low power mode, so reading the bit caused a crash.

Fix this by ensuring that the timer will be canceled whenever all the
requests of an endpoint are dequeued, including for the case of ep0.
Also added a warning and protection for such cases when an endpoint
timer expires after core in low power mode.

CRs-Fixed: 505686
Change-Id: I7336ec7372714a4cd04bf94eb31ce230ee0a4241
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
msm: ipa: teth_bridge: swap MAC addresses

Source and destination MAC addresses were swapped in the Ethernet header.
IPA HW header insertion block adds Ethernet headers. The Ethernet headers
were malformed.

Change-Id: I19735c53786903388030daf67eba3fd27e8772ba
CRs-Fixed: 509016
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
msm: ipa: wwan: release producer only when UL desc FIFOs empty

To ensure UL packets are not stuck in some desc FIFO when APPS
votes for A2 power-collapse, add an extra check that all UL FIFOs
on embedded data path are empty before releasing WWAN_PROD. This
is a workaround which can delay A2 power-collapse when this specific
(rare) scenario is encountered.

Change-Id: I40a0767d5f6db872d5a8d5782cb13358ebdf75c9
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
Merge "msm: ipa: teth_bridge: swap MAC addresses"
Merge "msm: ipa: wwan: release producer only when UL desc FIFOs empty"
Defconfig: Enable iptables physdev target.

Enable physdev target to install guest ap access restrictions.

Change-Id: I6c52170e178277ee4a56a64a9271a041d1011cb7
Signed-off-by: Tyler Wear <twear@codeaurora.org>
ASoC: msm: qdsp6v2: fix broken AFE memory unmap

AFE memory map receives memory map handle from ADSP and needs to pass the
handle when requests memory unmap.  Current afe driver incorrectly sends
physical memory address instead so memory unmap always fails.
Pass memory map handle to fix broken AFE memory unmap command.

CRs-fixed: 510179
Change-Id: I3c8b957b7953379bc96ba6f1de317eddf7783e8d
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Merge "Defconfig: Enable iptables physdev target."
Merge "ASoC: msm: qdsp6v2: fix broken AFE memory unmap"
ARM: dts: msm: Use voltage floor corner for PM8019 L10 on msm9625

Add a voltage floor corner regulator interface in the MSM9625
device tree for the PM8019 L10 regulator (VDD_CX).  This
interface will be used to impose a minimum active voltage corner
in low temperature situations.

CRs-Fixed: 507816
Change-Id: I29e9d5bcad87fddaf823507dba0049c77a8a75e3
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
ARM: dts: msm: Update regulator supply name for msm9625

Update the supply regulator for vdd-dig to use voltage floor corner
regulator.

Remove the underdcore in the regulator supply name defined
in msm-thermal device tree.

CRs-Fixed: 507816
Change-Id: I68387be186d18bdb732450a8eaa577cb6222ad91
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>