Commit graph

587725 commits

Author SHA1 Message Date
Vijayavardhan Vennapusa
c20c74d49c ARM: dts: msm: Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 for SDM660
Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 resource entry for SDM660
which is not required to set now during disconnect as writing to this
register causes USB3.0 port and USB2.0 ports working independently.

Change-Id: Ifb91c4e493ca1ecd31ef649c9e85acd809b9eec6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-05-18 18:34:47 +05:30
Vijayavardhan Vennapusa
3962558023 usb-phy-qusb: powerdown PHY during disconnect to avoid leakage
Currently PHY driver is using TCSR_QUSB2PHY_CLAMP_DIG_N_1P8 register
to avoid leakage issue seen during disconnect. But this could fail
USB ports working independently if this register is used as that
could clamp both inputs going to two QUSB2 PHY on platforms having
USB2 port. To fix this, it is recommended to powerdown QUSB2 PHY
by setting powerdown bit in  QUSB2PHY_PORT_POWER_DOWN register
during disconnect and removing writing 0x0 to TCSR register. Removed
updating TCSR register from dts file as separate change.

Change-Id: I6b0915faa346e5d88310106eeddb3c7a1bfb1d08
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-05-18 18:33:56 +05:30
Vijayavardhan Vennapusa
74fd4e30fc USB:dwc3-msm: Don't schedule work if pm_qos_latency is zero
Currently driver is scheduling pm_qos_work again even though
pm_qos_latency is not passed from dts file. Add a check for
pm_qos_latency and don't schedule work if pm_qos_latency value
is zero. Also remove use of static variable for last_irq_count and
add the variable for the same in dwc3 structure for the case where
multi DWC3 usages are used.

Change-Id: I55e1e3a7d48fbea0a421802aae176ac57a48869f
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-05-18 18:31:53 +05:30
Linux Build Service Account
406ab7d2d4 Merge "msm: ipa: fix for wakelock refcnt" 2017-04-13 21:52:20 -07:00
Linux Build Service Account
59acd80684 Merge "msm: camera: isp: Fix stream on timeout in LPM" 2017-04-13 21:52:19 -07:00
Linux Build Service Account
180376b166 Merge "ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm630" 2017-04-13 21:52:17 -07:00
Linux Build Service Account
349ac7ea59 Merge "ath10k: Fix crash when SSR is done during packet transfer" 2017-04-13 21:52:16 -07:00
Linux Build Service Account
f6f01239b4 Merge "ARM: dts: msm: add panel parameters for sharp wuxga panel for sdm630" 2017-04-13 21:52:15 -07:00
Linux Build Service Account
2fce80230e Merge "msm: mdss: add split link panel support in mdss" 2017-04-13 21:52:14 -07:00
Linux Build Service Account
15a311d026 Merge "ARM: dts: msm: Update regulator min-voltage for SMPS5A on SDM660/630" 2017-04-13 10:30:11 -07:00
Linux Build Service Account
728981c575 Merge "arm64: defconfig: Add a config option to compile cpu-boost driver" 2017-04-13 10:30:09 -07:00
Rakesh Pillai
6079be7471 ath10k: Fix crash when SSR is done during packet transfer
If any data traffic is ON, when SSR is triggered there is a crash
since we allowed HTT packets to go through.
Stopping these packets to go through fixes this crash.

Also changing the QMI client ID for the qmi client.

CRs-Fixed: 2033262
Change-Id: I1236ef901fd8943f228497a79f11feaec1c16d8e
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-04-13 17:22:36 +05:30
Tirupathi Reddy
4d569b976c ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm630
Configure APC0/1 CPR instances to operate in closed-loop operation
to maintain an optimal voltage set point on the APC0/1 voltage rails.

Also, add static open-loop and closed-loop voltage margins as per
the voltage characterization results.

CRs-Fixed: 2032723
Change-Id: I1a01d78252dc71ca7def251e99581cad3714cdd1
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-04-13 17:18:55 +05:30
Anirudh Ghayal
4d785ef60b ARM: dts: msm: Update regulator min-voltage for SMPS5A on SDM660/630
The minimum supported voltage on the SMPS5A is 1.224V, update
it accordingly.

Change-Id: Ib973febdf5b719836f5fb54e6cd6e797e7101e3e
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-04-13 15:28:26 +05:30
Linux Build Service Account
16c1669252 Merge "arm: make default iova alignment as 2mb" 2017-04-13 02:19:13 -07:00
Linux Build Service Account
ea8b530b5e Merge "USB: gadget: ffs: Fix USBCV compliance failure due to adbd" 2017-04-13 02:19:11 -07:00
Linux Build Service Account
9689415e9a Merge "msm: mdss: configure SMART_PANEL_ALIGN_MODE for split display" 2017-04-13 02:19:10 -07:00
Linux Build Service Account
6b7fb076d4 Merge "msm: wlan: AR TX power regulatory updates" 2017-04-13 02:19:09 -07:00
Linux Build Service Account
d604805e4d Merge "drm/msm/sde: remove redundant CRTC event caching" 2017-04-13 02:19:07 -07:00
Linux Build Service Account
2b0de03719 Merge "apq8098: rename apq8998 to apq8098" 2017-04-13 02:19:06 -07:00
Linux Build Service Account
1ac435a768 Merge "power: qpnp-fg-gen3: Add support to configure base termination current" 2017-04-13 02:19:04 -07:00
Linux Build Service Account
b290a7a8e7 Merge "ath10k: recal the txpower when removing interface" 2017-04-13 02:19:02 -07:00
Linux Build Service Account
4d121122fe Merge "soc: qcom: socinfo: Protect current_image using semaphore lock." 2017-04-13 02:19:00 -07:00
Linux Build Service Account
27925f25a9 Merge "ARM: dts: msm: add SMB1351 charger node for SDM630 MTP" 2017-04-13 02:18:59 -07:00
Linux Build Service Account
0adf9d4050 Merge "Merge branch 'android-4.4@8e53f7c' into branch 'msm-4.4'" 2017-04-13 02:18:57 -07:00
Charan Teja Reddy
9c490fa73d arm: make default iova alignment as 2mb
To get the 2MB aligned IOVA section mappings, set
ARM_DMA_IOMMU_ALIGNMENT to 9.

Change-Id: I3254c39e4864c32d6f25a4d416b1b7aec6756ecd
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-04-12 22:28:14 -07:00
Rohit Gupta
b596bcc918 arm64: defconfig: Add a config option to compile cpu-boost driver
CONFIG_CPU_BOOST config option is only enabled for
msmcortex-perf_defconfig. Enable it for msmcortex_defconfig too.

Change-Id: I31d42aa4ac3a78e6bc3c52aa0ba7cebd8c5a7893
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2017-04-12 19:11:41 -07:00
Abhinav Kumar
fe965aa6bc drm/msm/sde: remove redundant CRTC event caching
Currently both sde_crtc_atomic_begin() and
sde_crtc_atomic_flush() add the CRTC state event
to the cached sde_crtc->event.

This has a potential NULL ptr issue in the
case of vblank event firing in between sde_crtc_atomic_begin() and
sde_crtc_atomic_flush() because the upstream DRM vblank API
send_vblank_event() doesn't consider the case when the VBLANK
interrupt could have already freed any pending vblank events.

Remove the caching from sde_crtc_atomic_begin() to avoid this
condition.

Also make sure that a page_flip event was indeed submitted before
signaling the complete_flip() by setting a PENDING_FLIP flag right
after HW flush.

Change-Id: Ib201d2851e57bf22ec1f00814fc2e4dd2f35bfa1
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-12 16:39:08 -07:00
Linux Build Service Account
4a4051e573 Merge "diag: Place proper NULL pointer checks" 2017-04-12 16:10:20 -07:00
Linux Build Service Account
d96dc0727a Merge "wil6210: add sysfs file for enable/disable fst link loss" 2017-04-12 16:10:19 -07:00
Linux Build Service Account
fd64062315 Merge "ASoC: msm: qdspv2: add mutex to prevent access same memory simultaneously" 2017-04-12 16:10:18 -07:00
Linux Build Service Account
a4d598f9ee Merge "ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink" 2017-04-12 16:10:17 -07:00
Linux Build Service Account
3ce5511759 Merge "ASoC: msm: support up to 8 channel capture on MM1" 2017-04-12 16:10:17 -07:00
Linux Build Service Account
d11deab41b Merge "ASoC: msm: defer the machine driver probing if ADSP is down" 2017-04-12 16:10:16 -07:00
Linux Build Service Account
7cd2991c8e Merge "ASoC: msm: add support for TERT_TDM_RX_4 BE" 2017-04-12 16:10:14 -07:00
Linux Build Service Account
ae9e7ab9f2 Merge "ASoC: codecs: Fix mbhc data NULL pointer dereferencing" 2017-04-12 16:10:13 -07:00
Linux Build Service Account
4c9126a7a2 Merge "dma-mapping: add the missing functions to dma_map_ops" 2017-04-12 16:10:12 -07:00
Linux Build Service Account
e56d3280a5 Merge "dma-mapping: add i/o coherency support for 32bit" 2017-04-12 16:10:12 -07:00
Linux Build Service Account
840c2fd1fb Merge "drm/msm: Re-trigger preemption upon command completion" 2017-04-12 16:10:11 -07:00
Linux Build Service Account
a694bbf616 Merge "msm: vidc: Update QP control values" 2017-04-12 16:10:10 -07:00
Linux Build Service Account
0a2d2c47a8 Merge "ARM: dts: msm: Add RRADC die-temp channel for PM660 FG" 2017-04-12 16:10:09 -07:00
Linux Build Service Account
f6b72aa023 Merge "drm/msm: add HDMI debugfs support to show edid modes" 2017-04-12 16:10:05 -07:00
Linux Build Service Account
5ccdda59a4 Merge "drm/msm: Add DRM EDID parser for external displays" 2017-04-12 16:10:05 -07:00
Linux Build Service Account
9ffdd89420 Merge "drivers/video: Add new aspect ratios for HDMI 2.0" 2017-04-12 16:10:04 -07:00
bings
dbb543631c msm: wlan: AR TX power regulatory updates
Regulatory updates for AR TX power

CRs-Fixed: 2031894
Change-Id: I8b198d009b1e008be252698128285b9c218100ba
Signed-off-by: bings <bings@codeaurora.org>
2017-04-13 00:51:44 +08:00
Swetha Chikkaboraiah
2fb8a14c6d soc: qcom: socinfo: Protect current_image using semaphore lock.
Variable current_image can be modified by multiple threads.
This change will protect current_image getting modified
by multiple threads.

Change-Id: I33df463311b24f73b1ba124d388731a72bd13263
CRs-Fixed: 2016485
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2017-04-12 04:56:13 -07:00
Manoj Prabhu B
e6707683f3 diag: Place proper NULL pointer checks
This patch checks the buffer for NULL
pointer to prevent undefined access.

CRs-Fixed: 2032374
Change-Id: I1a1c4ca24e5c3d538ea93685de304dd186968308
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-04-12 03:27:04 -07:00
Ashay Jaiswal
36c0827bfa ARM: dts: msm: add SMB1351 charger node for SDM630 MTP
Add SMB1351 charger node in parallel charger configuration
for SDM630.

Change-Id: Icf7e307971f5d34b28d8363c055d9a8c65adffcd
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-04-12 15:10:36 +05:30
Sharat Masetty
ba1ad63339 drm/msm: Re-trigger preemption upon command completion
Trigger preemption from the interrupt handler. This allows us
to aggressively change ringbuffers especially to lower priority
ones and finish working on pending commands.

Change-Id: Ic05213f3d02b1bb7400461edd0d19e38d5b01ec2
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-04-11 23:59:17 -07:00
Ryan Hsu
adad11994a ath10k: recal the txpower when removing interface
The txpower is being recalculated when adding interface to make sure
txpower won't overshoot the spec, and when removing the interface,
the txpower should again to be recalculated to restore the correct value
from the active interface list.

Following is one of the scenario
	vdev0 is created as STA and connected: txpower:23
	vdev1 is created as P2P_DEVICE for control interface: txpower:0
	vdev2 is created as p2p go/gc interface: txpower is 21

So the vdev2@txpower:21 will be set to firmware when vdev2 is created.
When we tear down the vdev2, the txpower needs to be recalculated to
re-set it to vdev0@txpower:23 as vdev0/vdev1 are the active interface.

	ath10k_pci mac vdev 0 peer create 8c:fd:f0:01:62:98
	ath10k_pci mac vdev_id 0 txpower 23
	... (adding interface)
	ath10k_pci mac vdev create 2 (add interface) type 1 subtype 3
	ath10k_pci mac vdev_id 2 txpower 21
	ath10k_pci mac txpower 21
	... (removing interface)
	ath10k_pci mac vdev 2 delete (remove interface)
	ath10k_pci vdev 1 txpower 0
	ath10k_pci vdev 0 txpower 23
	ath10k_pci mac txpower 23

Signed-off-by: Ryan Hsu <ryanhsu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: d679fa1b3c8997e3a371da3cca08c44a38054c34
CRs-Fixed: 2027293
Change-Id: I56befd4c4fd80ab77ed65926663a1f2471701f68
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-04-11 22:38:41 -07:00