Commit graph

590741 commits

Author SHA1 Message Date
Skylar Chang
eda316b410 msm: rmnet_ipa3: fix QMAP command xfer
Fix QMAP command packets TX to modem.
These packets needs to be sent to Q6_WAN_CONS pipe.

Change-Id: Ib718ad7308004ba7727e30e64f4b50bf4e521da3
CRs-Fixed: 2068048
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-06-27 15:17:41 -07:00
Linux Build Service Account
c0f6993430 Merge "msm: ipa: fix hdr table full condition" 2017-06-12 21:43:19 -07:00
Linux Build Service Account
cfec669251 Merge "power: qpnp-fg-gen3: Qualify aborting capacity learning" 2017-06-12 21:43:18 -07:00
Linux Build Service Account
a5ab1b911f Merge "drm/msm: Fix kernel address issue of profile buffer" 2017-06-12 21:43:17 -07:00
Linux Build Service Account
54726d07cd Merge "qseecom: Fix accessing userspace memory in kernel space" 2017-06-12 21:43:16 -07:00
Linux Build Service Account
dd7a94047f Merge "msm: kgsl: Log clk set, enable and prepare failure" 2017-06-12 21:43:15 -07:00
Linux Build Service Account
b9d279f54f Merge "soc: qcom: update return value for minidump add region" 2017-06-12 21:43:14 -07:00
Linux Build Service Account
91e88c87dd Merge "clk: qcom: Add regmap mux-div clocks support" 2017-06-12 21:43:13 -07:00
Skylar Chang
6e0ccc547b msm: ipa: fix hdr table full condition
The header table is managed by IPA driver and header cannot be
moved. Instead a "free list" is maintained for deleted headers.
This change fixes a bug on header addition where the table is considered
full only if it is full and the free list is empty.

Change-Id: Ief8a384ea105c6f0179faaf95a98b9731fe6a01e
CRs-Fixed: 2048799
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-06-12 14:11:45 -07:00
Subbaraman Narayanamurthy
b9c7f08657 power: qpnp-fg-gen3: Qualify aborting capacity learning
Currently, capacity learning algorithm is aborted when the
charging status goes to not charging. This can happen with qnovo
enabled charging where stopping the pulsing can lead to charging
status change. Qualify aborting capacity learning based on the
qnovo enable status and input presence.

While at it, abort the capacity learning when the charging status
goes to discharging and charger is removed.

Change-Id: I4546e8880be0658748157cb13f048610eee932a3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-06-12 12:04:39 -07:00
Subbaraman Narayanamurthy
1a3659dcd4 power: qpnp-fg-gen3: fix an unbalanced irq disable for delta_bsoc irq
Currently, rerun_election() is called on delta_bsoc_irq_en
votable to disable delta_bsoc interrupt during probe. However, it
doesn't set the internal variable for votable to not allow a
similar vote again. When a vote is made later to disable the
interrupt again, it can end up in invoking the callback again.

This leads to an unbalanced interrupt disable warning. Fix it.

CRs-Fixed: 2058754
Change-Id: I30c35be5275b5b310cf9b17ea4660a3e2e89c59a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-06-12 12:04:38 -07:00
Linux Build Service Account
85baaeb2e2 Merge "Policy_engine: Add module parameter to disable PD" 2017-06-12 10:41:38 -07:00
Linux Build Service Account
5a580b8916 Merge "diag: Remove BOM in file" 2017-06-12 10:41:37 -07:00
Linux Build Service Account
584b2405fd Merge "usb: gadget: Bind android devices for all UDC gadgets" 2017-06-12 10:41:36 -07:00
Linux Build Service Account
0b271fdd58 Merge "ARM: dts: msm: specify a PWM mode threshold for BoB on SDM660" 2017-06-12 10:41:35 -07:00
Linux Build Service Account
86bcb4d5ab Merge "SDM660: ADSPRPC: Handle NULL pointer dereference" 2017-06-12 10:41:34 -07:00
Linux Build Service Account
5be8865912 Merge "defconfig: arch: arm64: Disable CONFIG_CC_OPTIMIZE_FOR_SIZE defconfig" 2017-06-12 10:41:33 -07:00
Linux Build Service Account
60ad3ce1b9 Merge "ASoC: sdm660_cdc: Update micbias regulator to power saving on use basis" 2017-06-12 10:41:32 -07:00
Brahmaji K
ed85b5e79f qseecom: Fix accessing userspace memory in kernel space
Use put_user API to write the data from kernel space to
userspace to avoid accessing userspace memory directly
in kernel space.

Change-Id: I649fe2597e80ccad50cf16b355e220734810e94c
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-06-12 04:01:36 -07:00
Lingutla Chandrasekhar
f172706351 soc: qcom: update return value for minidump add region
If minidump is not enabled, minidump add region api returns
error number, clients can log the error to log buffer, which
flood the log buffer unnecessarily.

So return quietly if minidump support is not enabled.

Change-Id: I9c6428015ca40c5233f80471896bacecd0872bf7
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-06-12 16:24:10 +05:30
Georgi Djakov
30d76c4a56 clk: qcom: Add regmap mux-div clocks support
Add support for hardware that can switch both parent clocks and divider
at the same time. This avoids generating intermediate frequencies from
either the old parent clock and new divider or new parent clock and
old divider combinations.

Change-Id: I1b3f7e9422f5c27eeb391d309374167dc139e8ca
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Git-commit: 549f1a4028350851f73837ad8cce3ac5fd2abd11
Git-repo: https://git.quicinc.com/?p=kernel/msm-4.4.git
[anischal@codeaurora.org: Fix compilation issue with
mux_div_get_safe_parent]
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-06-12 16:00:16 +05:30
Mohit Aggarwal
780ffc2bf6 diag: Remove BOM in file
This file seems to have a BOM sequence to indicate the file is
UTF-8. There aren't any UTF sequences in the file though, and
this trips up sparse when running on files that include this
header. Remove the BOM so sparse is happy.

Change-Id: Ie25ce60077d1f2b4eb51bf0792635f02d1b33ae7
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-06-12 11:14:20 +05:30
Linux Build Service Account
c1a2472056 Merge "fbdev: msm: Allocate fd with O_CLOEXEC flag" 2017-06-10 02:20:47 -07:00
Linux Build Service Account
73d6c8e7de Merge "msm: mdss: Buffer overflow while processing gamut table data" 2017-06-10 02:20:46 -07:00
Linux Build Service Account
1bfc4b2e71 Merge "fb: msm_dba: add post-on-sleep support for adv7533 vreg" 2017-06-10 02:20:45 -07:00
Linux Build Service Account
12cf20b0e9 Merge "ARM: dts: msm: update nt35597 panel properties for msm8998" 2017-06-10 02:20:43 -07:00
Linux Build Service Account
0ca5c4d703 Merge "msm: mdss: Do not attempt to request TE irq again if already requested" 2017-06-10 02:20:42 -07:00
Linux Build Service Account
5564915b1f Merge "ARM: dts: msm: Enable secondary USB port for HDK660" 2017-06-10 02:20:41 -07:00
Kasin Li
5cb62a17f3 drm/msm: Fix kernel address issue of profile buffer
Current DRM adds offset when making IOVA but failed to add it when
making kernel address. This makes DRM write queue_s and submit_s to
wrong place if the profile buffer is not at the head of
a chunk of buffer.

Change-Id: I5af9c3050f4c6c5e0a54ed495bf79053f08f0bab
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2017-06-09 19:19:33 -07:00
Linux Build Service Account
69e7fcd32e Merge "icnss: Add APIs to store driver load count" 2017-06-09 18:47:16 -07:00
Linux Build Service Account
7c3a65b23d Merge "ARM: dts: msm: Disable MHI node for msm8996" 2017-06-09 18:47:15 -07:00
Linux Build Service Account
d3be51f52b Merge "ARM: dts: msm: add secure smmu cb node for msm8998" 2017-06-09 18:47:14 -07:00
Vijayavardhan Vennapusa
45d1d418d6 Policy_engine: Add module parameter to disable PD
Currently power Delivery (PD) is enabled by default which sends
PD Hard reset in SINK mode to negogiate PD contract with host machine
after connect, if no capabilities message is received from other device.
This impacts with compliance for example: PMI ignores type-c disconnects
during PD Hard Reset. Add module parameter to disable PD so that it
doesn't enable PD communication during USB3.1 compliance testing.

Change-Id: Ia3e39cee1e65895402c18b380b650f0a34fb0cec
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-06-09 16:52:26 -07:00
Amar Singhal
e090be48c6 icnss: Add APIs to store driver load count
Host wlan driver needs to know if the drive has been
reloaded and wiphy re-registered with the kernel.
Therefore add APIs to retrieve this information.

CRs-Fixed: 2058292
Change-Id: Ia323e31e9b6779e2f5279f42b6e1860a9259a189
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2017-06-09 12:45:06 -07:00
Linux Build Service Account
613ad18682 Merge "ARM: dts: msm: move tdm common prop to parent node for msm8996 auto" 2017-06-09 11:23:09 -07:00
Linux Build Service Account
ea7491238f Merge "ASoc: msm: add support for mixing data from different COPPs" 2017-06-09 11:23:08 -07:00
Linux Build Service Account
b93e191754 Merge "defconfig: add cfg80211 internal regdb suuport" 2017-06-09 11:23:07 -07:00
Linux Build Service Account
cf5d29992c Merge "msm: pcie: do not set irq chip data when using QGIC MSI" 2017-06-09 11:23:06 -07:00
Linux Build Service Account
a72ca7d8c8 Merge "msm: pcie: Fix for MDM enumeration issue" 2017-06-09 11:23:05 -07:00
Abhijit Kulkarni
f7aeaf28f9 ARM: dts: msm: add secure smmu cb node for msm8998
This change adds the secure context bank child node in mdss
driver, this is required for having both the secure and non-secure
smmu context bank support in the driver. This change also renames
the child nodes to avoid compilation issues on the builds where
fb driver mdss device file is also present. As a part of this
change the smmu driver registration is called as a part of
msm driver probe.

CRs-Fixed: 2053654
Change-Id: I90cd31fd792b0fd9772689dc6561bb0b429e1e3a
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-06-09 03:12:28 -07:00
Linux Build Service Account
3d12c58f77 Merge "sched: Fix the bug in select_best_cpu() that returns -1 as target_cpu" 2017-06-09 02:45:19 -07:00
Linux Build Service Account
48b8215ed5 Merge "icnss: Re-phrase debug message and rename state" 2017-06-09 02:45:18 -07:00
Linux Build Service Account
3570da6f66 Merge "icnss: Enable platform device to be a wakeup source" 2017-06-09 02:45:17 -07:00
Linux Build Service Account
8bb96fd0d3 Merge "PD: policy_engine: Add timeout for mode change through sysfs" 2017-06-09 02:45:16 -07:00
Linux Build Service Account
c42ce05512 Merge "drm/sde: add 4k hdmi support" 2017-06-09 02:45:15 -07:00
Linux Build Service Account
92ad29f0c1 Merge "scsi: ufs: fix unclocked register access" 2017-06-09 02:45:14 -07:00
Zhaoyang Liu
39a8bb4fad defconfig: add cfg80211 internal regdb suuport
Enable CFG80211_INTERNAL_REGDB to support WiFi 5G channels.

Change-Id: I7d53d2a09c30173d121368ec2e3584217ddc5093
Signed-off-by: Zhaoyang Liu <zhaoyang@codeaurora.org>
2017-06-09 01:33:57 -07:00
Tony Truong
df92ddf7ad msm: pcie: do not set irq chip data when using QGIC MSI
When using QGIC MSI, the MSI controller is GIC not PCIe host
driver. Only set irq chip data if PCIe host is the MSI
controller.

Change-Id: I0ba9e78127424ab3da4b1f46b3ed3fa5d65d05f6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-06-09 01:31:39 -07:00
Hareesh Gundu
cd94470626 msm: kgsl: Log clk set, enable and prepare failure
Handle the clk API return value so that it’s easy
to catch un clocked GPU register access.

Change-Id: I5a1a9a6cbd673394f126bb17b849393268a22b1b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-06-09 13:34:56 +05:30
Liangliang Lu
24a72da8c2 ARM: dts: msm: Enable secondary USB port for HDK660
Enable secondary USB port for HDK660 platform which use
host only mode.

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: I936a4012c30e0cd84144b12e34fb780cada541ae
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-06-09 00:43:35 -07:00