Commit graph

572189 commits

Author SHA1 Message Date
Sathish Ambley
55d06ad8fb msm: ADSPRPC: Handle fastrpc glink channel open on timeout
Added channel state and checks to avoid glink channel opening twice
during timeout of previous call. Clean up and added more checks.

Change-Id: Ibf5343a86d3aeaf67acfbae381f103428c98ea73
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-07-14 14:08:50 -07:00
Venkat Gopalakrishnan
631771d3a0 scsi: ufshcd: Fix race between clk scaling and ungate work
The ungate work turns on the clock before it exits hibern8,
if the link was put in hibern8 during clock gating work.
There occurs a race condition when clock scaling work calls
ufshcd_hold() to make sure low power states cannot be entered,
but that returns by checking only whether the clocks are on.
This causes the clock scaling work to issue UIC commands when
the link is in hibern8 causing failures. Make sure we exit
hibern8 state before returning from ufshcd_hold().

Callstacks for race condition:

ufshcd_scale_gear+0x120/0x138
ufshcd_devfreq_scale+0x98/0x154
ufshcd_devfreq_target+0x14c/0x250
update_devfreq+0xc4/0x10c
devfreq_monitor+0x34/0x90
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40

ufshcd_uic_hibern8_exit+0x128/0x1f0
ufshcd_ungate_work+0xec/0x148
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40

CRs-Fixed: 1036530
Change-Id: I7f430abfb2a545ac97dee488a696a89cd18214f1
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-07-14 12:05:54 -07:00
Jack Pham
61c66d0fb0 usb: pd: pdphy: Assign __pdphy before usbpd_create()
As the PD PHY probes, assign the static __pdphy pointer with
the pdphy instance prior to calling usbpd_create(). This ensures
that if the policy engine state machine kicks off right away
and calls back into the PHY APIs that there is a valid instance
found.

As further safeguarding, also fix the open/close/signal/write APIs
in the case where the instance cannot be found by using pr_err
instead of dev_err which would lead to a NULL pointer dereference.

Change-Id: I59a01f2ac3b0c374eb3420f40054cc05a80226ba
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-07-14 10:56:39 -07:00
Taniya Das
72d71311e2 clk: Add support to set custom flags with clk_set_flags
The new API clk_set_flags could be used by hardware specific clock drivers
or clients for specific hardware requirements. These flags could be custom
defined as per hardware needs.

Change-Id: Ia67373ee2b8934c898052c68338fa86cb16070dd
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-14 16:57:22 +05:30
Amir Levy
475735e7ac msm: ipa3: don't check offset_entry when using DDR address
Checking offset_entry is not necessary when using DDR addresses.
Check offset_entry only when using header tables.

CRs-fixed: 1041515
Change-Id: I4b3e44bda6ee05932a7de66e1e7cea300936f982
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-07-14 09:29:20 +03:00
Tony Truong
c93b93ee87 ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt
While NOC timeout feature is enabled, L1 and L1 substate
low power mode should be disabled. Thus, disable L1 and L1ss
for PCIe on msmcobalt.

Change-Id: If77f1850396d3e78cdcb774cdb6de148a2b4d14e
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-07-13 16:58:40 -07:00
Ingrid Gallardo
27565a5d5b ARM: dts: msm: add 2k truly panel for msmcobalt
Add required settings for command mode and video
mode 2k truly panel and include those settings in
msmcobalt for CDP and MTP.

Change-Id: I419af32ee73bd486258692eba3f699e6b987c288
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-07-13 16:46:52 -07:00
Harry Yang
57cd771117 qcom-charger: show correct battery status while charging via wireless
POWER_SUPPLY_STATUS shows 'Discharging' when DCIN is the only charging
input, because current input online report is solely based on USB.
DCIN is included to fix the issue.

CRs-Fixed: 1034899
Change-Id: I58b8ca712a7900caf37bf79f5281fb3b6dab80f2
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-07-13 16:21:15 -07:00
Linux Build Service Account
aa958278d1 Merge "ASoC: wcd9335: Update decimator filter cutoff frequency" 2016-07-13 15:45:38 -07:00
Linux Build Service Account
559ef8a428 Merge "ASoC: msmcobalt: add channel configuration for proxy port" 2016-07-13 15:45:37 -07:00
Linux Build Service Account
6c4e0476e3 Merge "ASoC: msm: qdsp6v2: Add get for App Type mixer control" 2016-07-13 15:45:36 -07:00
Linux Build Service Account
a53e735b55 Merge "soc: qcom: glink_smd_xprt: Fix smd close ack for legacy channel" 2016-07-13 15:45:35 -07:00
Linux Build Service Account
2b8fc67b85 Merge "soc: qcom: glink_smd_xprt: Fix ssr sync during intent request" 2016-07-13 15:45:34 -07:00
Linux Build Service Account
a6a02749f0 Merge "ASoC: wcd-mbhc: enable micbias for special headset" 2016-07-13 15:45:33 -07:00
Linux Build Service Account
102a3b4bfa Merge "ASoC: wcd9330: Update driver for 12.288MHz clock support" 2016-07-13 15:45:32 -07:00
Linux Build Service Account
e78a398fb7 Merge "ASoC: wcd-mbhc: fix plug removal detection from extension cable" 2016-07-13 15:45:31 -07:00
Linux Build Service Account
d55264e2fc Merge "ASoC: msm8996: add support for packed 24 bit" 2016-07-13 15:45:30 -07:00
Linux Build Service Account
3d1c3acafb Merge "ARM: dts: msm: set rcu_expedited for msm chisets" 2016-07-13 15:45:29 -07:00
Linux Build Service Account
9e23575348 Merge "ARM: dts: msm: support full Gold cluster frequency plan for msmcobalt" 2016-07-13 15:45:28 -07:00
Linux Build Service Account
f3b676e818 Merge "ARM: dts: msm: Enabling ESD detection support for msmcobalt" 2016-07-13 15:45:27 -07:00
Linux Build Service Account
71d280d4b3 Merge "ARM: dts: msm: update VDD_GFX CPR voltage adjustments for msmcobalt" 2016-07-13 15:45:26 -07:00
Linux Build Service Account
2a8092a9c2 Merge "msm: mdss: fix QSEED3 bypass mode and lut cfg issues" 2016-07-13 15:45:25 -07:00
Linux Build Service Account
dd6f2cf39a Merge "qcom-charger: smb-lib: fix battery health status" 2016-07-13 15:45:24 -07:00
Linux Build Service Account
2197cb0f60 Merge "ARM: dts: msm: update VDD_APC1 CPR margin adjustments for msmcobalt" 2016-07-13 15:45:22 -07:00
Linux Build Service Account
c50c09ee13 Merge "ARM: dts: msm: enable qcom,no-smr-check for mmss smmu for msmcobalt" 2016-07-13 15:45:20 -07:00
Linux Build Service Account
da3d93c35c Merge "icnss: Add support for suspend/resume" 2016-07-13 15:45:20 -07:00
Linux Build Service Account
5551ac503f Merge "msm: mdss: Fix AD backlight configuration" 2016-07-13 15:45:18 -07:00
Linux Build Service Account
ba76bbcfcb Merge "defconfig: msmcortex: Enable USB audio QMI service driver" 2016-07-13 15:45:18 -07:00
Linux Build Service Account
066a92c8d6 Merge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM" 2016-07-13 15:45:17 -07:00
Linux Build Service Account
32e8a524a8 Merge "usb: dwc3: Change dwc3 irq to oneshot threaded irq" 2016-07-13 15:45:16 -07:00
Linux Build Service Account
08adf1e8e9 Merge "msm: ipa3: support 64bitmask with SMMU attached" 2016-07-13 15:45:15 -07:00
Linux Build Service Account
b92f565d8f Merge "ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset" 2016-07-13 15:45:14 -07:00
Linux Build Service Account
65acb683c4 Merge "defconfig: arm64: msm: Disable uid statistics" 2016-07-13 15:45:13 -07:00
Linux Build Service Account
ee3eae95ff Merge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO" 2016-07-13 15:45:13 -07:00
Linux Build Service Account
ccfaef0d78 Merge "msm: ipa: print resource bandwidth in ipa rm" 2016-07-13 15:45:12 -07:00
Linux Build Service Account
fe65bd3832 Merge "msm: vidc: Fix an issue with high bitrate playback" 2016-07-13 15:45:11 -07:00
Linux Build Service Account
5e9b45c7ed Merge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata" 2016-07-13 15:45:10 -07:00
Linux Build Service Account
7fe77ef84d Merge "leds: qpnp-flash-v2: Separate switch node disable sequence" 2016-07-13 15:45:08 -07:00
Linux Build Service Account
8ba1928ffc Merge "ARM: dts: msm: Add switch nodes to pmicobalt" 2016-07-13 15:45:08 -07:00
Linux Build Service Account
348d50ac21 Merge "leds: qpnp-flash-v2: Add support for multiple switch nodes" 2016-07-13 15:45:07 -07:00
Linux Build Service Account
11e4a7a8da Merge "defconfig: msmcortex: don't set default CMA region size" 2016-07-13 15:45:06 -07:00
Linux Build Service Account
f259f4445d Merge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks" 2016-07-13 15:45:05 -07:00
Linux Build Service Account
10619a898d Merge "msm: kgsl: Fix the access to invalid pool" 2016-07-13 15:45:04 -07:00
Linux Build Service Account
e29c82a01c Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt" 2016-07-13 15:45:03 -07:00
Linux Build Service Account
48e2ef49ba Merge "nl80211: Move ACL parsing later to avoid a possible memory leak" 2016-07-13 15:45:02 -07:00
Linux Build Service Account
33212b2155 Merge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff" 2016-07-13 15:45:00 -07:00
Linux Build Service Account
43237e2edc Merge "regmap: initialize dump count to 1" 2016-07-13 15:44:59 -07:00
Linux Build Service Account
d940b64528 Merge "Revert "msm: vidc: Handle encoder input in true dynamic mode"" 2016-07-13 15:44:58 -07:00
Linux Build Service Account
cdf04650af Merge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free" 2016-07-13 15:44:57 -07:00
Linux Build Service Account
3872c04222 Merge "defconfig: msmcortex: Enable CONFIG_INET_LRO" 2016-07-13 15:44:56 -07:00