ARM: dts: msm: add s3 source for msm8226

Add stage 3 reset trigger for msm8226.

Change-Id: If3281da27c2d3003a226ea8d668636c566944ec1
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
wlan: HDD: removing newlines from the debug logs

dmesg log is a limited and extremely precious
debugging tool. Any unnecessary prints are avoided

Change-Id: I94c77696af432b856967a7a0d628c06f2b3f8679
CRs-Fixed: 540451
USB: gadget: ether: Fix memory corruption issues with multi_pkt_xfers

If gadget xmits packets before host sends RNDIS_MSG_INIT to update
maximum packets supported per transfer, then there is a possibility
of using freed skb memory later from xmit function. Fix such
races which may arise between tx_complete and start_xmit routines
depending on when multi_pkt_transfers are enabled.
Other option is to defer starting TX transfers until RNDIS_MSG_INIT
is received, but then it makes it difficult to handle scenarios
where host doesn't support this message or just doesn't send it.

CRs-fixed: 595367
Change-Id: I181da831120b38840ae4b8b74c1dacce129d1ba6
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
ARM: dts: msm: increase mdp dma priority to 3

Increase mdp dma bus master priority to 3 from 2.
This change is needed to avoid underuns in certain
usecases where many clients are consuming bandwidth.

Change-Id: I194b4c8195cd176bb9b66ccf2c7e766ea9620dfb
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
wlan:Handle assertion raised during LFR roaming.

When roaming get fail, csrRoamRoamingStateDisassocRspProcessor will
post SME_QOS_CSR_HANDOFF_ASSOC_REQ to SME QoS Module which will
raised an assert into the sme_QosProcessHandoffAssocReqEv due to Qos
Current state mismatch. So Ideally SME QOS current state should be set
to init state before posting SME_QOS_CSR_HANDOFF_ASSOC_REQ msg.
Hence csr is setting HandoffRequested to False for that session
which will assist in resetting qos current state to init state during
handling of SME_QOS_CSR_DISCONNECT_IND (sme_QosProcessDisconnectEv).

Change-Id: Ie8be41317422682e607714d32499bfa6c0ab15ec
CRs-Fixed: 590508
ASoC: msm8x10-wcd: Do not disable micbias when TX path is ON

Insert headset after initiating voice call and then force switch
to speaker mode.In this case if headset is removed, we are disabling
micbias which is resulting in TX path mute.So check whether TX path is
active before powering down micbias

CRs-Fixed: 593607
Change-Id: Iddc3780e7ed9806499cb79e1159d4b43d63136a3
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
wlan: Fix arp offload filtering issue with static ip.

When an ap is roved out and roved in, while the DUT in suspended
state, the arp offload filter is not set. The arp filter is
reconfigured, when the ipv4 notifier is invoked and only when flag
sus_res_mcastbcast_filter_valid is set. This flag is set when
power state callback is invoked. There could be scenarios
where ipv4 notifier is invoked and the power state cal back is
invoked later or the ipv4 is invoked and the device is suspended
later leading the arp offload filter unset.

To address these, set sus_res_mcastbcast_filter_valid flag and
restore value of configuredMcastBcastFilter to sus_res_mcastbcast_filter
when ipv4 notifier is invoked.

Change-Id: I70c900dbf95da83ace2a264b034de42e97732b1d
CRs-Fixed: 593533
ARM: dts: msm: Change the capless mode for 8226 qrd

msm8226-qrd.dtsi is included by many 8226 or 8926 dts,
but not all the boards have the external cap for micbias1.
For example, 8926 qrd board doesn't have the cap.
So remove the external cap for micbias1 in this dtsi
and add it into the specific board dts who uses the cap.

Also these dts files don't exist in kk branch,
so commit these changes to kk_3.5

CRs-fixed: 572412

Change-Id: I196657fabbab46ff6ff8d36b25554da50fab9f16

Signed-off-by: Kunlei Zhang <quic_kunleiz@codeaurora.org>
msm: lpm_levels: remove rpm handshake in l2_gdhs mode

Remove rpm handshake in l2_gdhs mode and adjust the
latency values for l2_gdhs mode. Add a new dt entry to
inform lpm_levels driver to send sleep votes to rpm.

CRs-fixed: 604873
Change-Id: I9eeae5fada4f84ee2ca2eb9d67707dee1adf56ac
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: ext-buck-support: add external buck support driver

Based on the dt file entry enables the external buck support
for sending active set and sleep set votes to turn-on and turn-off
external buck by toggling a gpio when the system is going PC.

CRs-fixed: 568380
Change-Id: I173c52c4d24932b5c17af2ad2c9e19fc47b61ad9
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
ARM: dts: msm : add external buck support

External buck presence will be detected based on the
HW ID and corresponding dt image will get selected and
the dt will override the latency values, spm commands
and enables the external buck support driver for sending
active set and sleep set votes to turn-on and turn-off
external buck by toggling a gpio.

CRs-fixed: 568380
Change-Id: Iea30bdfac8c855a5d78250dbcaa340376714d13e
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
mmc: core: Issue with voltage switch sequence

When a broken UHS-I card is inserted, the voltage switch sequence
fails as expected but the controller is left in bad state due to
which software request timeouts are observed for further commands.
Add mmc_power_cycle() for any failure in voltage switch so it will
also help reset the controller in addition to card.

CRs-fixed: 608192
Change-Id: I332c0717b9310692799b9a4ba6570df67fcf3b6e
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
wlan: Copy WCNSS_cfg.dat to out target directory from firmware_bin.

Copy WCNSS_cfg.dat file from prima/firmware_bin directory instead of
copying from device specifice folder (device/qcom/<target>) to out
target path, as WCNSS_cfg.dat file in prima/firmware_bin gets updated
as and when configuration file gets modified.

CRs-Fixed: 613007
Change-Id: I1e3ffd757607cf950382f020f1ac0c7bd4326728
wlan: Copyright Header change.

Correcting Copyright information which got introduced
because of some wrong auto generator version of cfgGen.
CRs-Fixed: 614246

Change-Id: I9b5c4594ca2ca0cffa75212cf5cbd2b01076fff6
wlan: Copyright Header change.

Correcting Copyright information which got introduced
because of some wrong auto generator version of cfgGen.
CRs-Fixed: 614246

Change-Id: I9b5c4594ca2ca0cffa75212cf5cbd2b01076fff6
Merge "wlan: Copyright Header change."
wlan: Rate limit the print indicating Tx queue is 3/4th full.

When Tx queue for Best Effort access category is 3/4th full,
donot print info message for every packet instead print when
the access category of DHCP packet is changed to VOICE since
Best Effort access category Tx queue is 3/4th full.

Change-Id: I7f9aba9fc248442a421da01c0005946861f904b7
CRs-Fixed: 611754
msm: kgsl: Remove unnecessary profile close check

Remove an unnecessary profile close check in
adreno_profile_process_results(). The profile close
check was causing NULL pointer dereferencing in
other adreno profile functions. There should be
no danger of memory leak though since we clear the
buffer in adreno_profile_close() anyway.

CRs-fixed: 590766
Change-Id: I372ade0dc0ec0ed23dd743c6294d8bf0524f812f
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
API change for config param for sending CTS2S during BTC SCO

This commit brings the firmware API change, for config param
for sending CTS2S during BTC SCO, to HOST driver.

Change-Id: I01fb94f7353046a429fa9cf9707d08adaa4e07c0
CRs-fixed: 591530
msm: mdss: Fix assertive display HW range checks

Fix off by one error leading to log spam. 'nad_cfgs' is the upper bound of
the zero-indexed mixer/AD/dspp pipe enumeration.

Change-Id: I963d175aad23a8eb621772d6c9bd06676fa2e27e
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
Signed-off-by: Ping Li <quicpingli@codeaurora.org>