OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agocfg80211: make wdev_list accessible to drivers
Johannes Berg [Tue, 3 May 2016 13:52:04 +0000 (16:52 +0300)]
cfg80211: make wdev_list accessible to drivers

There's no harm in having drivers read the list, since they can
use RCU protection or RTNL locking; allow this to not require
each and every driver to also implement its own bookkeeping.

CRs-Fixed: 1087922
Change-Id: I2f38b8ba1ddbe6041a4189f5d9b72c982f0fb367
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Git-commit: 53873f134d285191ef6435882d55837093a36c53
[liord@codeaurora.org: fix conflicts]
Signed-off-by: Lior David <liord@codeaurora.org>
7 years agoMerge "msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:58 +0000 (04:07 -0800)]
Merge "msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE"

7 years agoMerge "pinctrl: qcom: msmfalcon: Split function groups based on mirrors"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:57 +0000 (04:07 -0800)]
Merge "pinctrl: qcom: msmfalcon: Split function groups based on mirrors"

7 years agoMerge "pinctrl: qcom: Add all the gpios to pingroups for msmfalcon"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:56 +0000 (04:07 -0800)]
Merge "pinctrl: qcom: Add all the gpios to pingroups for msmfalcon"

7 years agoMerge "msm: pcie: support configurable wr halt size for PCIe"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:55 +0000 (04:07 -0800)]
Merge "msm: pcie: support configurable wr halt size for PCIe"

7 years agoMerge "iio: adc: qcom-tadc: cast raw ADC readings before conversion"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:54 +0000 (04:07 -0800)]
Merge "iio: adc: qcom-tadc: cast raw ADC readings before conversion"

7 years agoMerge "ARM: dts: msm: update TADC ibatt scale for MSMCOBALT"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:54 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: update TADC ibatt scale for MSMCOBALT"

7 years agoMerge "usb: gadget: f_mtp: Increase default TX buffer size"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:53 +0000 (04:07 -0800)]
Merge "usb: gadget: f_mtp: Increase default TX buffer size"

7 years agoMerge "qcom-cpufreq: skip frequencies that round to same rate"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:53 +0000 (04:07 -0800)]
Merge "qcom-cpufreq: skip frequencies that round to same rate"

7 years agoMerge "ARM: dts: msm: Remove min svs level for A540 in msmcobaltv2"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:52 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: Remove min svs level for A540 in msmcobaltv2"

7 years agoMerge "Revert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency""
Linux Build Service Account [Tue, 15 Nov 2016 12:07:51 +0000 (04:07 -0800)]
Merge "Revert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency""

7 years agoMerge "ARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:50 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2"

7 years agoMerge "core_ctl: Export boost function"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:49 +0000 (04:07 -0800)]
Merge "core_ctl: Export boost function"

7 years agoMerge "msm: pcie: support QGIC MSI for multiple clients"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:48 +0000 (04:07 -0800)]
Merge "msm: pcie: support QGIC MSI for multiple clients"

7 years agoMerge "msm: mdss: Avoid accessing pipe out of the boundaries"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:48 +0000 (04:07 -0800)]
Merge "msm: mdss: Avoid accessing pipe out of the boundaries"

7 years agoMerge "msm: mdss: fix logic to enable secure display/camera"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:47 +0000 (04:07 -0800)]
Merge "msm: mdss: fix logic to enable secure display/camera"

7 years agoMerge "qpnp-fg-gen3: add support to show time to full and empty"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:45 +0000 (04:07 -0800)]
Merge "qpnp-fg-gen3: add support to show time to full and empty"

7 years agoMerge "iommu/arm-smmu: support mapping before enabling S1 translations"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:45 +0000 (04:07 -0800)]
Merge "iommu/arm-smmu: support mapping before enabling S1 translations"

7 years agoMerge "nf: IDLETIMER: Fix use after free condition during work"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:44 +0000 (04:07 -0800)]
Merge "nf: IDLETIMER: Fix use after free condition during work"

7 years agoMerge "net: rmnet_data: Handle buffer bloat for TCP scenarios"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:43 +0000 (04:07 -0800)]
Merge "net: rmnet_data: Handle buffer bloat for TCP scenarios"

7 years agoMerge "msm: vidc: Allow clients to suggest I-frame sizes"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:43 +0000 (04:07 -0800)]
Merge "msm: vidc: Allow clients to suggest I-frame sizes"

7 years agoMerge "msm: vidc: Allocate raw packet memory one time"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:42 +0000 (04:07 -0800)]
Merge "msm: vidc: Allocate raw packet memory one time"

7 years agoMerge "msm: vidc: increase timeout value for hw response and power collapse"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:41 +0000 (04:07 -0800)]
Merge "msm: vidc: increase timeout value for hw response and power collapse"

7 years agoMerge "msm: vidc: Avoid unnecessary buffer requirements call"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:40 +0000 (04:07 -0800)]
Merge "msm: vidc: Avoid unnecessary buffer requirements call"

7 years agoMerge "ARM: dts: msm: Set max secure sessions to 6 for msmcobalt"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:40 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: Set max secure sessions to 6 for msmcobalt"

7 years agoMerge "msm: vidc: Invalidate cache for input buffers"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:39 +0000 (04:07 -0800)]
Merge "msm: vidc: Invalidate cache for input buffers"

7 years agoMerge "ARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:38 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1"

7 years agoMerge "ARM: dts: msm: update the battery data for cobalt"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:37 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: update the battery data for cobalt"

7 years agoMerge "qpnp-smb2: allow parallel charging during supplemental mode"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:35 +0000 (04:07 -0800)]
Merge "qpnp-smb2: allow parallel charging during supplemental mode"

7 years agoMerge "msm: mdss: avoid removing wrong multirect on validate failures"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:34 +0000 (04:07 -0800)]
Merge "msm: mdss: avoid removing wrong multirect on validate failures"

7 years agoMerge "msm: mdss: fix race condition with overlay off in doze mode"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:34 +0000 (04:07 -0800)]
Merge "msm: mdss: fix race condition with overlay off in doze mode"

7 years agoMerge "iio: rradc: Update RRADC USBIN scaling"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:33 +0000 (04:07 -0800)]
Merge "iio: rradc: Update RRADC USBIN scaling"

7 years agoMerge "ARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer QRD"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:32 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer QRD"

7 years agoMerge "ARM: dts: msm: Add rpm-smd node for msmtriton"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:31 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: Add rpm-smd node for msmtriton"

7 years agoMerge "ARM: dts: msm: Change GPU clock plan for msmcobalt interposer"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:30 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: Change GPU clock plan for msmcobalt interposer"

7 years agoMerge "msm: kgsl: Fix pt NULL pointer dereference"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:30 +0000 (04:07 -0800)]
Merge "msm: kgsl: Fix pt NULL pointer dereference"

7 years agoMerge "qcom-charger: WA for cc2 removal with medium and high rd"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:28 +0000 (04:07 -0800)]
Merge "qcom-charger: WA for cc2 removal with medium and high rd"

7 years agoMerge "qcom-charger: WA for typec cc2 sink removal with rdstd"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:27 +0000 (04:07 -0800)]
Merge "qcom-charger: WA for typec cc2 sink removal with rdstd"

7 years agoMerge "ARM: dts: msm: add new mapping table for memlat"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:27 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: add new mapping table for memlat"

7 years agoMerge "leds: qpnp-flash-v2: Add support for programming led clamp currents"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:25 +0000 (04:07 -0800)]
Merge "leds: qpnp-flash-v2: Add support for programming led clamp currents"

7 years agoMerge "msm: pcie: remove PCIe PHY and PARF dump in linkdown"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:24 +0000 (04:07 -0800)]
Merge "msm: pcie: remove PCIe PHY and PARF dump in linkdown"

7 years agoMerge "ARM: dts: msm: correct subtype of MSMCOBALT V2 QRD SKUK device"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:23 +0000 (04:07 -0800)]
Merge "ARM: dts: msm: correct subtype of MSMCOBALT V2 QRD SKUK device"

7 years agoMerge "qpnp-smb2: increase VCONN softstart"
Linux Build Service Account [Tue, 15 Nov 2016 12:07:23 +0000 (04:07 -0800)]
Merge "qpnp-smb2: increase VCONN softstart"

7 years agoMerge "clk: qcom: Remove initial configuration from PLL enable function"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:06 +0000 (21:54 -0800)]
Merge "clk: qcom: Remove initial configuration from PLL enable function"

7 years agoMerge "msm: kgsl: Fix overflow in sharedmem cache range operation function"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:05 +0000 (21:54 -0800)]
Merge "msm: kgsl: Fix overflow in sharedmem cache range operation function"

7 years agoMerge "ARM: dts: msm: Support only dummy clocks for falcon/triton rumi"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:04 +0000 (21:54 -0800)]
Merge "ARM: dts: msm: Support only dummy clocks for falcon/triton rumi"

7 years agoMerge "Revert "ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt""
Linux Build Service Account [Tue, 15 Nov 2016 05:54:04 +0000 (21:54 -0800)]
Merge "Revert "ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt""

7 years agoMerge "ARM: dts: msm: Add slimbus instance entries for msmfalcon"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:03 +0000 (21:54 -0800)]
Merge "ARM: dts: msm: Add slimbus instance entries for msmfalcon"

7 years agoMerge "usb: host: skip xHCI power management upon port suspend"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:02 +0000 (21:54 -0800)]
Merge "usb: host: skip xHCI power management upon port suspend"

7 years agoMerge "sched: core: Skip migrating tasks that aren't enqueued on dead_rq"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:02 +0000 (21:54 -0800)]
Merge "sched: core: Skip migrating tasks that aren't enqueued on dead_rq"

7 years agoMerge "ASoC: msm: q6dspv2: use correct variable type to store ION buff size"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:01 +0000 (21:54 -0800)]
Merge "ASoC: msm: q6dspv2: use correct variable type to store ION buff size"

7 years agoMerge "ASoC: compress: Fix compress capture stream handling"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:00 +0000 (21:54 -0800)]
Merge "ASoC: compress: Fix compress capture stream handling"

7 years agoMerge "ASoC: soc: prevent risk of buffer overflow"
Linux Build Service Account [Tue, 15 Nov 2016 05:54:00 +0000 (21:54 -0800)]
Merge "ASoC: soc: prevent risk of buffer overflow"

7 years agoMerge "mdss: display-port: fix link rate calculation"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:59 +0000 (21:53 -0800)]
Merge "mdss: display-port: fix link rate calculation"

7 years agoMerge "clk: msm: mdss: fix divider configuration for 5.4 Ghz link rate"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:58 +0000 (21:53 -0800)]
Merge "clk: msm: mdss: fix divider configuration for 5.4 Ghz link rate"

7 years agoMerge "drivers: soc: increase glink tx buffer count"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:57 +0000 (21:53 -0800)]
Merge "drivers: soc: increase glink tx buffer count"

7 years agoMerge "msm: ipa: Address overlap fix"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:55 +0000 (21:53 -0800)]
Merge "msm: ipa: Address overlap fix"

7 years agoMerge "soc: qcom: glink: Fix incorrect call to deinit function"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:55 +0000 (21:53 -0800)]
Merge "soc: qcom: glink: Fix incorrect call to deinit function"

7 years agoMerge "ARM: dts: msm: Enable memory allocation for diag on triton"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:53 +0000 (21:53 -0800)]
Merge "ARM: dts: msm: Enable memory allocation for diag on triton"

7 years agoMerge "ASoC: wcd9335: Add 24bit record support"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:52 +0000 (21:53 -0800)]
Merge "ASoC: wcd9335: Add 24bit record support"

7 years agopinctrl: qcom: msmfalcon: Split function groups based on mirrors
Venkatesh Yadav Abbarapu [Fri, 4 Nov 2016 14:35:40 +0000 (20:05 +0530)]
pinctrl: qcom: msmfalcon: Split function groups based on mirrors

Split functions into groups corresponding to mirrorA and
mirrorB. This will help identify which function is selected.

Change-Id: Iefcb4a4b595ef0778e983a1902a5897cf292705f
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
7 years agoARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1
cyizhao [Mon, 7 Nov 2016 09:15:01 +0000 (17:15 +0800)]
ARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1

Add battery profile for these two devices to make sure FG could load it
and work as expected.

CRs-Fixed: 1086571
Change-Id: Id89f54f58bb2d5f7294c0244ab0ba39e90b5ecac
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
7 years agoARM: dts: msm: update the battery data for cobalt
cyizhao [Mon, 7 Nov 2016 08:09:39 +0000 (16:09 +0800)]
ARM: dts: msm: update the battery data for cobalt

FG profile data is updated for cobalt battery according to the new
battery characterization process.

CRs-Fixed: 1086571
Change-Id: Id0a74bc74e5ef1fc08af63ace50ab4774820597c
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
7 years agoqcom-cpufreq: skip frequencies that round to same rate
Rohit Gupta [Mon, 22 Aug 2016 23:50:59 +0000 (16:50 -0700)]
qcom-cpufreq: skip frequencies that round to same rate

Since not all frequencies line up between speed bins,
the common cpufreq table sometimes has frequencies
that round up the same actual frequency.

Fix this by skipping those frequencies.

Change-Id: I0516cc67a1343150f3d1f838b9d9b329e8e1e498
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
7 years agocore_ctl: Export boost function
Olav Haugan [Tue, 15 Nov 2016 00:14:23 +0000 (16:14 -0800)]
core_ctl: Export boost function

Export core control boost function to make it accessible to kernel
modules.

Change-Id: I94359afa433ad57dd5bfeae3cb78a1f196cd02fe
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agoARM: dts: msm: Remove min svs level for A540 in msmcobaltv2
Oleg Perelet [Wed, 2 Nov 2016 20:48:09 +0000 (13:48 -0700)]
ARM: dts: msm: Remove min svs level for A540 in msmcobaltv2

Per hardware requirements update dtsi file to remove
min svs power level.

CRs-Fixed: 1085733
Change-Id: I066804e9f8bc527d58dd5199664a5756a0f3d298
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
7 years agomsm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE
Skylar Chang [Mon, 14 Nov 2016 22:39:48 +0000 (14:39 -0800)]
msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE

When IPA uC fails to stop a GSI channel with GSI STOP_IN_PROG
state, apps needs to sleep for 1ms and retry.

Change-Id: I9e6022ab996861d3d78721aadea9e6116ded4e0f
CRs-Fixed: 1087474
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agoRevert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency"
Deepak Katragadda [Wed, 9 Nov 2016 00:23:11 +0000 (16:23 -0800)]
Revert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency"

This reverts commit bfebb79e7c52 ("clk: msm: clock-gpu-cobalt:
Update the graphics core clock frequency") since we now want
to enable scaling the graphics core clock upto 710 MHz on
MSMCOBALT v2.

Change-Id: I2715197a2b5cbe41da5b1983ff3066fa5d42c483
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
7 years agoiio: adc: qcom-tadc: cast raw ADC readings before conversion
Nicholas Troast [Fri, 4 Nov 2016 20:51:11 +0000 (13:51 -0700)]
iio: adc: qcom-tadc: cast raw ADC readings before conversion

Currently the code depends on implicit type conversion when converting
ADC readings. Make the type conversions explicit.

Change-Id: I09b5d4cd219b0a53559176525d9b501e5a6dc0c9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoARM: dts: msm: update TADC ibatt scale for MSMCOBALT
Nicholas Troast [Fri, 4 Nov 2016 20:44:56 +0000 (13:44 -0700)]
ARM: dts: msm: update TADC ibatt scale for MSMCOBALT

Currently when the battery is charging (sinking current) the ibatt is
positive. Change the scale polarity so that ibatt is negative when
the battery is charging.

Change-Id: I431dcc766df94adb7ee85d4cb32d9181a74d871a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoqpnp-smb2: allow parallel charging during supplemental mode
Nicholas Troast [Mon, 14 Nov 2016 19:22:17 +0000 (11:22 -0800)]
qpnp-smb2: allow parallel charging during supplemental mode

PMI8998 register 0x1690 BIT(2) is incorrectly documented. This bit enables
a feature to disable the parallel charger via STAT when the PMI is
supplementing a system load using the battery. This feature is not
recommended since SW is limiting the power that the parallel charger can
draw based on the input power available, and the default power
distribution ensures that 50% of the available input power is allocated to
the PMI. Disable this feature.

Change-Id: I1e5400eb64b6b61076617b5b26fc750c6e8d0270
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2
David Collins [Sat, 12 Nov 2016 01:13:52 +0000 (17:13 -0800)]
ARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2

Update the qcom,allow-aging-voltage-adjustment property for
VDD_APC0, VDD_APC1, and VDD_GFX CPR regulators in order to match
hardware fusing.  Aging fuses will be blown for VDD_APC0 and
VDD_APC1 on parts with local CPR revision 4 and for VDD_GFX on
parts with global CPR revision 3.

Also update the open-loop and closed-loop voltage adjustments so
that the maximum 15 mV aging margin is applied on all parts in
which aging adjustments are not enabled.

Lastly, enable open-loop aging adjustment for VDD_GFX so that
the aging voltage margin is added back into the open-loop voltage
as needed at runtime.

Change-Id: I481abdd54ce1e75bdebf908a61d6b484b377f55a
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
7 years agonet: rmnet_data: Handle buffer bloat for TCP scenarios
Subash Abhinov Kasiviswanathan [Mon, 14 Nov 2016 19:40:34 +0000 (12:40 -0700)]
net: rmnet_data: Handle buffer bloat for TCP scenarios

After commit 605ad7f184b60cf ("tcp: refine TSO autosizing"), kernel
throttles uplink TCP data in case there is not sufficient amount
of socket buffer available due to delayed release of buffers
through TX completions in the physical net device.

Work around this by orphaning the socket buffer. This makes the
kernel assume that more packets can be sent in this scenario.
Out of band signaling and flow controlling at qdisc / HTB layer
should guarantee no issue for flow control.

Throughput difference for IPv4 TCP UL -

Before change : 143Mbps
After change  : 146Mbps

CRs-Fixed: 1088104
Change-Id: I251ed7938c29e08954d4c81d3041cb235a39d266
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
7 years agoqpnp-smb2: clear the ICL override during probe
Nicholas Troast [Mon, 14 Nov 2016 19:12:29 +0000 (11:12 -0800)]
qpnp-smb2: clear the ICL override during probe

When PD negotiates a higher input current limit the ICL override bit will
be set. If a reboot happens then the ICL override will still be set after
the reboot. Clear the ICL override during probe to ensure that the correct
ICL is honored since PD is neither enabled nor has it negotiated a higher
ICL yet.

Change-Id: Iaa5f221d530721f7ff4a413a609192baf98ff359
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agonf: IDLETIMER: Fix use after free condition during work
Subash Abhinov Kasiviswanathan [Fri, 11 Nov 2016 02:36:15 +0000 (19:36 -0700)]
nf: IDLETIMER: Fix use after free condition during work

schedule_work(&timer->work) appears to be called after
cancel_work_sync(&info->timer->work) is completed.
Work can be scheduled from the PM_POST_SUSPEND notification event
even after cancel_work_sync is called.

Call stack

-004|notify_netlink_uevent(
    |    [X19] timer = 0xFFFFFFC0A5DFC780 -> (
    |      ...
    |      [NSD:0xFFFFFFC0A5DFC800] kobj = 0x6B6B6B6B6B6B6B6B,
    |      [NSD:0xFFFFFFC0A5DFC868] timeout = 0x6B6B6B6B,
    |      [NSD:0xFFFFFFC0A5DFC86C] refcnt = 0x6B6B6B6B,
    |      [NSD:0xFFFFFFC0A5DFC870] work_pending = 0x6B,
    |      [NSD:0xFFFFFFC0A5DFC871] send_nl_msg = 0x6B,
    |      [NSD:0xFFFFFFC0A5DFC872] active = 0x6B,
    |      [NSD:0xFFFFFFC0A5DFC874] uid = 0x6B6B6B6B,
    |      [NSD:0xFFFFFFC0A5DFC878] suspend_time_valid = 0x6B))
-005|idletimer_tg_work(
-006|__read_once_size(inline)
-006|static_key_count(inline)
-006|static_key_false(inline)
-006|trace_workqueue_execute_end(inline)
-006|process_one_work(
-007|worker_thread(
-008|kthread(
-009|ret_from_fork(asm)
---|end of frame

Force any pending idletimer_tg_work() to complete before freeing
the associated work struct and after unregistering to the pm_notifier
callback.

CRs-Fixed: 1088590
Change-Id: I4c5f0a1c142f7d698c092cf7bcafdb0f9fbaa9c1
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
7 years agoqcom-charger: WA for cc2 removal with medium and high rd
Harry Yang [Mon, 7 Nov 2016 23:08:47 +0000 (15:08 -0800)]
qcom-charger: WA for cc2 removal with medium and high rd

In PMICv2, typec removal is known when CC detachment is detected,
but this does not work due to a HW bug, when orientation is CC2
with medium or high rd.

Currently in HW, after cable is removed, rd reading switches to
std from medium or high. The software workaround is to catch this
very change in cc state update, and then force a cc detach irq.

CRs-Fixed: 1079913
Change-Id: I284ca8f2221f596432d67117d89e7d501d2bd9a8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agoqcom-charger: WA for typec cc2 sink removal with rdstd
Harry Yang [Tue, 1 Nov 2016 08:18:51 +0000 (01:18 -0700)]
qcom-charger: WA for typec cc2 sink removal with rdstd

In PMICv2, typec removal relies on CC detachment detection,
but CC removal event does not fire when orientation is CC2
with rdstd, due to a HW bug.

The software workaround is to force typec sink cycles and
poll CC states, until cc status reading confirms detachment,
and PD is notified of typec removal.

CRs-Fixed: 1079913
Change-Id: Ie9ed65d421df57c9bfa4db8e44d358da3b0cdc36
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agoqpnp-fg-gen3: add support to show time to full and empty
Nicholas Troast [Wed, 7 Sep 2016 16:20:58 +0000 (09:20 -0700)]
qpnp-fg-gen3: add support to show time to full and empty

Estimate the amount of time it will take to charge or discharge the
battery. These values are exposed through power supply properties
time_to_full_avg and time_to_empty_avg.

Change-Id: I53c24deb1cfbd7fea1b2a598ed58c6352c5ff9a2
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agosmb-lib: remove cached vbus present status
Nicholas Troast [Mon, 14 Nov 2016 18:28:39 +0000 (10:28 -0800)]
smb-lib: remove cached vbus present status

USBIN_INT_RT_STS_REG can be read to determine whether vbus is present
therefore caching the result is unnecessary. Remove it.

Change-Id: Idace48373333dc3ab36aa10e0d90098a68af315d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agomsm: mdss: fix logic to enable secure display/camera
Ingrid Gallardo [Sat, 12 Nov 2016 03:23:02 +0000 (19:23 -0800)]
msm: mdss: fix logic to enable secure display/camera

Current logic that optimizes the skip of the enable
and disable of the secure display/camera has a
problem which results in skipping the secure
configuration always. Fix the logic to make sure
we only skip the configuration in two cases:
1. If both features secure camera and display are
disabled and state remains same for current frame.
2. If one of the features is already enabled and
the state remains the same for current frame.

Change-Id: I614aeadf022e01f17660791c0037ceb9f73456a3
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
7 years agosmb-lib: use plugin real time status for USB present prop
Nicholas Troast [Mon, 14 Nov 2016 17:13:01 +0000 (09:13 -0800)]
smb-lib: use plugin real time status for USB present prop

The USB and DC power supplies should reflect the real time plugin status
in POWER_SUPPLY_PROP_PRESENT.

Change-Id: I08987a383edff181e8e4867d8d795dae58ecf084
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agomsm: kgsl: Fix pt NULL pointer dereference
sathish [Mon, 7 Nov 2016 10:28:46 +0000 (15:58 +0530)]
msm: kgsl: Fix pt NULL pointer dereference

Add a NULL check for pt pointer variable in
a4xx_submit_preempt_token(), to avoid NULL
pointer dereference.

CRs-Fixed: 1083045
Change-Id: I6f8abe55f3d99d2ff46e4bb2a8cd11a067be7508
Signed-off-by: Dumpeti Sathish Kumar <sathyanov14@codeaurora.org>
7 years agoARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer QRD
Zhenhua Huang [Mon, 14 Nov 2016 05:30:15 +0000 (13:30 +0800)]
ARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer QRD

Add PMIC devices and remove reference of PMCOBALT/PMICOBALT from all
client device nodes. This is for QRD only as it is a different design from
MTP and CDP. In the parallel, delete reference from storage.

Change-Id: I5842c32fbfcd62692a3585f23bfcb0d9c4b5f6c5
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
7 years agoclk: qcom: Remove initial configuration from PLL enable function
Amit Nischal [Mon, 14 Nov 2016 05:44:51 +0000 (11:14 +0530)]
clk: qcom: Remove initial configuration from PLL enable function

In alpha PLL enable function, PLLs do not require to do
initial configuration as it can be already configured
by pre HLOS. clk_alpha_pll_configure() should be called
explicitly where HLOS configures the PLLs. So remove the
call to clk_alpha_pll_configure() in PLL enable function.

Change-Id: Id3542f6649209929d83e5a2d6230f1d3d7dfa776
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoARM: dts: msm: Add rpm-smd node for msmtriton
Raju P.L.S.S.S.N [Thu, 10 Nov 2016 05:52:59 +0000 (11:22 +0530)]
ARM: dts: msm: Add rpm-smd node for msmtriton

Add rpm-smd node for communication with RPM subsystem over glink.

Change-Id: I28be6557fa97d65ec9add1d31c854576e21b47e1
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
7 years agoARM: dts: msm: Support only dummy clocks for falcon/triton rumi
Taniya Das [Mon, 14 Nov 2016 05:16:38 +0000 (10:46 +0530)]
ARM: dts: msm: Support only dummy clocks for falcon/triton rumi

As RUMI platform does not require real clocks, add back dummy clocks for
this platform.

Change-Id: I774ffb1e55971ec8097994d1cfe664db5902a8ce
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoMerge "msm: mdss: dp: handle fast attention events"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:10 +0000 (13:51 -0800)]
Merge "msm: mdss: dp: handle fast attention events"

7 years agoMerge "msm: sde: add buf_finish callback to clear last fd"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:09 +0000 (13:51 -0800)]
Merge "msm: sde: add buf_finish callback to clear last fd"

7 years agoMerge "clk: msm: mdss: fix potential use of un-initialized variable"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:08 +0000 (13:51 -0800)]
Merge "clk: msm: mdss: fix potential use of un-initialized variable"

7 years agoARM: dts: msm: Change GPU clock plan for msmcobalt interposer
Rajesh Kemisetti [Sun, 13 Nov 2016 19:39:26 +0000 (01:09 +0530)]
ARM: dts: msm: Change GPU clock plan for msmcobalt interposer

Change GPU clock plan based on requirements for msmcobalt
interposer platform versions.

Change-Id: I817859817eeb76c565d1604fcb1cc11b0df2dd30
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt"
Linux Build Service Account [Sun, 13 Nov 2016 12:22:15 +0000 (04:22 -0800)]
Merge "ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR settings for msmcobalt v2"
Linux Build Service Account [Sun, 13 Nov 2016 05:39:15 +0000 (21:39 -0800)]
Merge "ARM: dts: msm: update VDD_GFX CPR settings for msmcobalt v2"

7 years agoMerge "defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon"
Linux Build Service Account [Sat, 12 Nov 2016 13:13:47 +0000 (05:13 -0800)]
Merge "defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon"

7 years agoASoC: compress: Fix compress capture stream handling
Satish Babu Patakokila [Thu, 4 Aug 2016 13:01:48 +0000 (18:31 +0530)]
ASoC: compress: Fix compress capture stream handling

Compress framework considers the stream as PLAYBACK
always irrespective of the direction.
Derive substream based on the tx/rx direction from
compressed stream.

CRs-fixed: 1072067
Change-Id: I62c51c23a47f26b221dccef6f83c03aef9f095a7
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
7 years agoMerge "defconfig: Enable android-verity and FEC in msmcortex"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:52 +0000 (20:05 -0800)]
Merge "defconfig: Enable android-verity and FEC in msmcortex"

7 years agoMerge "msm_11ad: disbale L1 for 11ad device"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:51 +0000 (20:05 -0800)]
Merge "msm_11ad: disbale L1 for 11ad device"

7 years agoMerge "usb: gadget: Do not disconnect unregistered dev"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:50 +0000 (20:05 -0800)]
Merge "usb: gadget: Do not disconnect unregistered dev"

7 years agoMerge "usb: core: Add support to skip extended bus resume delay"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:48 +0000 (20:05 -0800)]
Merge "usb: core: Add support to skip extended bus resume delay"

7 years agoMerge "qpnp-fg-gen3: Fix empty SOC handling"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:47 +0000 (20:05 -0800)]
Merge "qpnp-fg-gen3: Fix empty SOC handling"

7 years agoMerge "soc: qcom: Replace ARRAY_SIZE macro with strlen"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:46 +0000 (20:05 -0800)]
Merge "soc: qcom: Replace ARRAY_SIZE macro with strlen"