Commit graph

589246 commits

Author SHA1 Message Date
Abhijeet Dharmapurikar
9e2a6b5541 qpnp-smb2: don't stomp over D+/D- during hard reset
Currently when we are in hard reset, the driver requests to remove
the float of D+/D- when VBUS drops and once VBUS is back, it requests
to float D+/D- again. This behaviour ends up stomping over D+/D- lines
leading to noncompliance with PD spec.

Fix it by ensuring we only run the CC2 workaround while VBUS dips
in hard reset.

Change-Id: I2bb9364b890b3a227dd3ea3e0a34a415b600e21a
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-05-01 14:43:19 -07:00
Abhijeet Dharmapurikar
eae9df7833 qpnp-smb2: report main charger's share in its current_max
Currently main power supply reports the value of the input current limit
set on the usb path. This is incorrect, it should report its own
share. When parallel is disabled, it will end up reporting a value
close to current limit, rounded by 25mA steps.

Note that it should report INT_MAX when there is no limit set on
the ICL - the case for hvdcp chargers.

CRs-Fixed: 2037898
Change-Id: I9859f3d759644a08c6f762e929c471a41b1cdf8f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-05-01 14:43:18 -07:00
Skylar Chang
a3488e9398 msm: ipa3: fix channel stop retry logic
Stopping a PROD channel might result in a timeout because the
channel is not empty, or IPA is busy. Whether or not to retry
a stop operation is determined by channel owner.
This change removes the common retry logic of retrying to stop
a PROD channel and adds a retry only for the scenario it is
actually needed.

Change-Id: I7ac1e81f7f99de2b0c3162aa5aaea2102a450838
CRs-Fixed: 2037955
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-05-01 12:18:40 -07:00
Vinayak Menon
c00be33263 defconfig: disable slub debug on sdm660
Disable default enablement of slub debug on sdm660
debug defconfig to prevent skb allocation failure
due to increase in order of allocation.

Change-Id: If63822a5abf3b297a34b95e5e5f973556631bd68
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2017-05-01 17:00:43 +05:30
Vinayak Menon
b41072b6f9 defconfig: enable uid stats on sdm660
'commit 6a61b529b4 ("ANDROID: uid_sys_stats: rename
uid_cputime.c to uid_sys_stats.c")' renamed CONFIG_UID_CPUTIME
to CONFIG_UID_SYS_STATS and enabled the new config on relevant
defconfigs except sdm660. Enable it and sync the config to
remove the reference to CONFIG_UID_CPUTIME. Task IO accounting
is enabled as CONFIG_UID_SYS_STATS depends on it.

Change-Id: Ib7163cf090c4fe86030469a257c49be1f6558984
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2017-05-01 16:59:44 +05:30
Mohit Aggarwal
34164b74a6 diag: Open glink channels in workqueue context
Currently, on loading WDSP, diag is trying to close socket
transport and opening glink channels. Due to this, deadlock
is happening and wdsp channels are not getting opened properly
which leads to WDSP log stall. This patch fixes the issue by
moving opening of channels in workqueue context.

CRs-Fixed: 2030858
Change-Id: Ib6153b04cdda80275a94b16842032a19b2a5bb75
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-05-01 15:47:02 +05:30
Vijay Viswanath
00229f96af mmc: cmdq_hci: Avoid releasing clock twice during DCMD error
When erase DCMD commands fail, a completion notification may get raised
by host controller for the task in addition to error interrupt. This
can result in the done function of mmc request getting called twice
and release the clock twice and mess up the clock request counter. The
done function should be called only once for DCMD commands except flush
commands.

Change-Id: Ie3a96e48ca98872cf686049eb5caa060f143f9cb
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2017-05-01 02:05:53 -07:00
Vijay Viswanath
d212c508bd mmc: queue: Remove BUG_ON() in cmdq_thread
If any discard requests fails, the mmc driver should not cause kernel
panic. The error handling and informing block layer about error will be
done by completion context.

Change-Id: I0c88ad851ad12c392a557bcb94d3b21dfc62d1f8
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2017-05-01 02:05:40 -07:00
Vidyullatha Kanchanapally
f179a6cfb7 cfg80211: Add macros to indicate backport support for FILS
This change adds two macros, one to indicate backport support for the
new connect done event which takes connection response parameters as a
structure instead of function arguments and the other macro is to
indicate backport support for FILS shared key authentication offload to
driver.

Change-Id: I6fb562741bb2abacbe1c7c7ffbf4b2afb25e555b
CRs-Fixed: 2028536
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-05-01 01:58:53 -07:00
Vidyullatha Kanchanapally
6ee553ab2e cfg80211: Add support for FILS shared key authentication offload
Enhance nl80211 and cfg80211 connect request and response APIs to
support FILS shared key authentication offload. The new nl80211
attributes can be used to provide additional information to the driver
to establish a FILS connection. Also enhance the set/del PMKSA to allow
support for adding and deleting PMKSA based on FILS cache identifier.

Add a new feature flag that drivers can use to advertize support for
FILS shared key authentication and association in station mode when
using their own SME.

Change-Id: I75d47301b767e691d6240fd6c20c28b9bfaaa571
Signed-off-by: Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: a3caf7440dedd2399f90f27ff11ac390bf03e6c4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2028536
[vidyullatha@codeaurora.org: backport to kernel 4.4 - This commit includes
the changes from following commits in include/uapi/linux/nl80211.h to
compile for msm-4.4 -
4a4b8169501b18c3450ac735a7e277b24886a651 :
cfg80211: Accept multiple RSSI thresholds for CQM]
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-05-01 01:57:25 -07:00
Johannes Berg
6ea5a099d6 wireless: define cipher/AKM suites using a macro
The spec writes cipher/AKM suites as something like 00-0F-AC:9,
but the part after the colon isn't hex, it's decimal, so that
we've already had a few mistakes (in other code, or unmerged
patches) to e.g. write 0x000FAC10 instead of 0x000FAC0A.

Use a macro to avoid that problem.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 228c8c6b1f4376788e9d5ab00d50b10228eb40d3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-Fixed: 2028536
Change-Id: I1507de1ee316182d429186ff33a932675013ba7d
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-05-01 01:56:46 -07:00
Vidyullatha Kanchanapally
283327c2a6 cfg80211: Use a structure to pass connect response params
Currently the connect event from driver takes all the connection
response parameters as arguments. With support for new features these
response parameters can grow. Use a structure to pass these parameters
rather than passing them as function arguments.

Signed-off-by: Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
[add to documentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 5349a0f7bfbdd7d81b8418c707dcd1439c714647
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2028536
Change-Id: I340a96d052647f79248ef8aa2e0af2b6ba979b2d
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-05-01 01:53:03 -07:00
Linux Build Service Account
f1a10f1598 Merge "msm: kgsl: Perform cache operation with kernel address" 2017-05-01 00:11:58 -07:00
Linux Build Service Account
6e0bd9c66b Merge "mmc: core: Update the logic of controlling clk scaling through sysfs" 2017-05-01 00:11:58 -07:00
Saranya Chidura
d3f82b4f4c defconfig: msm: add dcc config for perf on sdm660
Add the DCC_CONFIG option in perf defconfig for SDM660
target.

Change-Id: I9f927176bcf4505cecc2c8b23a9a8c9896d45b3a
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-05-01 11:27:06 +05:30
Arun KS
6a88558416 esoc: mdm-4x: Add support for mdm9x45 and apq8096
Add mdm_ops for mdm9x45 and apq8064.

Change-Id: Iea167175b9bd35a515d15a72897947a889093c03
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2017-04-30 19:10:38 +05:30
Arun KS
fe1cc57aaf esoc: Add support for autoboot
Some of the external SoC are flash based and can boot independently.
Extend esoc driver to support such auto boot esocs.

This patch also adds support for primary esoc. Primary esoc are
esoc that control secondary esoc such as modems. Primary esoc have
control over reset/poweroff of secondary esoc. Secondary esoc don't
have control over reset/poweroff of primary esoc. In general modems
are considered as secondary esoc while apps processor is considered
as primary esoc.

Change-Id: Id02417fcd122ac108cf75d3381ee7955f0f8f783
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2017-04-30 19:08:54 +05:30
Arun KS
5c846e4f7c esoc: Add err_fatal signal status to clink_ops
Auto_boot esoc devices can boot and crash before
esoc driver comes up. But there is no way for the
user space code to know that it has crashed by looking
at status line alone. Hence, create a new ioctl entry
to export status of err_fatal line to user space.

Change-Id: Ie7d6115c749d4c63f06aefca29ba457d38eccc7f
Signed-off-by: Arun KS <arunks@codeaurora.org>
2017-04-30 11:21:18 +05:30
Arun KS
98bc7be821 esoc: Fix integration with SSR driver
SSR driver expects subsystem descriptor device type to be
struct platform_device, whereas esoc driver is passing a
struct device instead. This results in a NULL pointer crash
during platform_get_irq in subsystem_restart.c. Fix esoc
driver to pass platform_device.

Change-Id: I93d02623cb7ac14ea3171c3792a4c52c73a74dea
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2017-04-30 11:04:28 +05:30
Linux Build Service Account
1ccabf65ac Merge "ARM: dts: msm: move panel bindings to different msm8998 platforms" 2017-04-29 07:00:56 -07:00
Linux Build Service Account
586e3cc09b Merge "ARM: dts: msm: Remove I/O coherence for the GPU" 2017-04-29 07:00:55 -07:00
Linux Build Service Account
388991dd69 Merge "ARM: dts: msm: Change panel settings for sdm660 QRD" 2017-04-28 22:10:51 -07:00
Linux Build Service Account
fc78f267c8 Merge "ARM: dts: msm: control VCI register switch for rm67195" 2017-04-28 22:10:49 -07:00
Linux Build Service Account
eebdfc41ec Merge "drm/msm: Add explicit sync operations" 2017-04-28 22:10:48 -07:00
Linux Build Service Account
3e95a21f1f Merge "ASoC: qdsp6v2: Remove Eagle code" 2017-04-28 22:10:47 -07:00
Linux Build Service Account
6c740e8f93 Merge "Merge branch 'android-4.4@b834e92' into branch 'msm-4.4'" 2017-04-28 22:10:46 -07:00
Linux Build Service Account
21bd869992 Merge "power: smb-lib: Fix charger type reporting" 2017-04-28 22:10:45 -07:00
Linux Build Service Account
0ce1aff35a Merge "ath10k: Move logging prior to ath10k core destroy" 2017-04-28 22:10:43 -07:00
Linux Build Service Account
68dce56906 Merge "ARM: dts: msm: configure supply property for DSI on msm8998." 2017-04-28 22:10:42 -07:00
Linux Build Service Account
2bc49ab366 Merge "soc: qcom: Register for indication cb after obtaining state of remote pd" 2017-04-28 11:12:25 -07:00
Linux Build Service Account
1d0a503de0 Merge "icnss: Add support to handle SSR within SSR" 2017-04-28 11:12:24 -07:00
Linux Build Service Account
a471a0b077 Merge "qcom: PMRESR register read returns zero for un supported group events" 2017-04-28 11:12:22 -07:00
Linux Build Service Account
4fba233d73 Merge "arm64: Change cpu_resume() to enable mmu early then access sleep_sp by va" 2017-04-28 11:12:20 -07:00
Linux Build Service Account
c088d58b10 Merge "arm64: kasan: clear stale stack poison" 2017-04-28 11:12:19 -07:00
Linux Build Service Account
81abee4ace Merge "Revert "arm64: Change cpu_resume() to enable mmu early ..."" 2017-04-28 11:12:18 -07:00
Linux Build Service Account
ffee4e8638 Merge "msm: ADSPRPC: Initialize the list for global gfa maps" 2017-04-28 11:12:16 -07:00
Chandan Uddaraju
29860ce302 ARM: dts: msm: move panel bindings to different msm8998 platforms
Include the panel dtsi files as part of all the different
msm8998 platform specific device tree files. This will
separate panel properties from SOC specific MDSS binding.

Change-Id: I423a53b4601447d0c7be2bdc041b36495f99da3b
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2017-04-28 08:50:57 -07:00
Avaneesh Kumar Dwivedi
635cd0dd76 soc: qcom: Register for indication cb after obtaining state of remote pd
This change moves the registration of indication call back after inquiring
the state of remote PD, this is logical flow since in any case just after
registration we are inquiring the state and doing client notification.

With existing arrangement of code, sometime there is occurring a race
condition between inquiring the remote pd state and indication call back.

Change-Id: I2d4d5e0dc7afde9dfb89747b878c26862532bec4
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-04-28 05:29:41 -07:00
Avaneesh Kumar Dwivedi
b6bd6d1a3c soc: qcom: Clear the memory before freeing it up
It is a case of write after free, this is causing page allocation
failure due to corruption. This is due to freeing up of segments
allocated for venus subsystem, when venus fw loading fail midway.

Change-Id: I0019a05b1d1336dcf361264607597430e5f1625a
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-04-28 05:28:51 -07:00
Govind Singh
58717ee41c ath10k: Move logging prior to ath10k core destroy
ath10k core destroy frees the debug references and
this is leading to crash when ATH10K_DBG_SNOC mask is
defined.

Fix this by moving logs to prior ath10k core destroy.

Change-Id: If4fd96fdfd9faaf19480b6d523c501747f56d40e
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-04-28 16:58:38 +05:30
Rakesh Pillai
c49ca895c6 ath10k: wait for FW ready during initialization
Since the qmi service in snoc driver gets registered late,
it misses the first time FW ready is sent. This causes the
wait on FW ready to fail and eventually the driver loading fails.

Proceed with the driver initialization only once the FW ready
indication arrives. Handle error in case the wait for these
events timeout.

Change-Id: Ib20ddb3a2f8b5b48936cc97b38f637f31e4e0100
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-04-28 02:43:57 -07:00
Linux Build Service Account
0e233eddfb Merge "input: misc: hbtp-input: Support for FB_BLANK_NORMAL event" 2017-04-28 01:45:04 -07:00
Linux Build Service Account
66939ff491 Merge "msm: camera: isp: Rate limit tasklet overflow logs" 2017-04-28 01:45:03 -07:00
Linux Build Service Account
afc8bbbe14 Merge "ARM: dts: msm: configure PM8998 S5 and S7 for mode pin control on msm8998" 2017-04-28 01:45:02 -07:00
Linux Build Service Account
9024ae2828 Merge "soc: qcom: ipc_router_mhi_xprt: Handle xfer event in atomic context" 2017-04-28 01:45:01 -07:00
Linux Build Service Account
8ef51a8fee Merge "msm: mdss: dsi: reset phy during idle screen" 2017-04-28 01:45:00 -07:00
Linux Build Service Account
c999d51f5e Merge "cfg80211: size various nl80211 messages correctly" 2017-04-28 01:44:58 -07:00
Linux Build Service Account
fdc293285a Merge "cfg80211: Fix documentation for connect result" 2017-04-28 01:44:57 -07:00
Linux Build Service Account
0135897159 Merge "cfg80211: Add KEK/nonces for FILS association frames" 2017-04-28 01:44:56 -07:00
Veerabhadrarao Badiganti
4c2bdc5879 mmc: core: Update the logic of controlling clk scaling through sysfs
mmc clock scaling can be disabled/enabled through sysfs.
The present logic in this path deregisters/registers with devfreq
every time. Instead of this, we can simply suspend/resume the clock
scaling when requested for disabling/enabling clock scaling.
This patch updates the mentioned logic.

With original logic, observed deadlock between devfreq registration
and cmdqd thread in low memory conditions. The updated logic fixes
this deadlock condition aswell.

Change-Id: Ifee1ffbe24b13b8f5dc1c9f0579ce9ddf4b4faf3
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-04-28 13:52:58 +05:30