Commit graph

585295 commits

Author SHA1 Message Date
Jouni Malinen
dcfe151610 cfg80211: Allow cfg80211_connect_result() errors to be distinguished
Previously, the status parameter to cfg80211_connect_result() was
documented as using WLAN_STATUS_UNSPECIFIED_FAILURE (1) when the real
status code for the failure is not known. This value can be used by an
AP (and often is) and as such, user space cannot distinguish between
explicitly rejected authentication/association and not being able to
even try to associate or not receiving a response from the AP.

Add a new inline function, cfg80211_connect_timeout(), to be used when
the driver knows that the connection attempt failed due to a reason
where connection could not be attempt or no response was received from
the AP. The internal functions now allow a negative status value (-1) to
be used as an indication of this special case. This results in the
NL80211_ATTR_TIMED_OUT to be added to the NL80211_CMD_CONNECT event to
allow user space to determine this case was hit. For backwards
compatibility, NL80211_STATUS_CODE with the value
WLAN_STATUS_UNSPECIFIED_FAILURE is still indicated in the event in such
a case.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
[johannes: fix cfg80211_connect_bss() prototype to use int for status,
 add cfg80211_connect_timeout() to docbook, fix docbook]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: bf1ecd210541ef5f3a110e88e8ca5d33b4aa5c23
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2004380
Change-Id: I43e2a7d588ee86a8470cf72ac0a95daaae569fa0
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
2017-03-06 21:18:26 -08:00
Vishnuvardhan Prodduturi
abf8e86fe6 msm: mdss: set interface stopped flag properly during suspend
In current implementation while disabling interface, the
interface stopped flag is not keeping the correct value. This
is causing issues when later if we use this flag during command
autorefresh feature disable. So update the flag properly after
wiping out display context structure to store correct value.

Change-Id: Id2cc64e3f10711b92f8b8f4f36f73f716c9ac831
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-07 10:43:21 +05:30
Vishnuvardhan Prodduturi
6ab42d60d1 msm: mdss: fix conditional check for panel LP configuration
Add change to correct the conditional check for entering the
panel in and out of LP configurations. Remove the unused enum
structure related to panel blank status.

Change-Id: Ic1140eafcc7cdd8d64c107bddc824eeca844462d
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-07 10:42:14 +05:30
Vishnuvardhan Prodduturi
eb973791c0 msm: mdss: enable tearcheck while entering LP1 state
In current implementation we disable tear check block when
transitioning into ultra low power or power off state for
doze mode. But it is not enabled back when moving from
ultra low power state(LP2) to low power state(LP1), after
which updates are expected. This change enables back tearcheck
block when transitioning to LP1 from LP2 state.

Change-Id: Ic0d8f97752ccf88470da2423f3f8d56a32de227f
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-07 10:41:01 +05:30
Vishnuvardhan Prodduturi
4072ee7757 msm: mdss: do not report overflow errors during read commands
During a DSI DMA read command transaction, it is expected to have
DSI FIFO overflow if the read operation duration exceeds one BLLP
line time frame. Make sure not to trigger DSI FIFO overflow recovery
sequence for such cases where DSI FIFO overflow error is masked.

Change-Id: I0762a0f51d580a44cfa24ffac60cc465c241c733
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-07 10:39:46 +05:30
Ray Zhang
8249ee7f55 ARM: dts: msm: add rm67195 panel driver for SDM630/SDM660 PM660A QRD
rm67195 AMOLED FHD display panel will be used for SDM630/SDM660
PM660A QRD, so add a new panel dtsi file to support that.

Change-Id: Icbdb68874e2e119b3a805a8959b01045e0dd63c9
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-03-07 12:20:30 +08:00
xiaonian
85c766e037 ARM: dts: msm: config SD card GPIO on SDM660 QRD
As GPIO 54 has already been connected to an external
pull up resistor, config it to no pull to save power
consumption.

CRs-Fixed: 2015121
Change-Id: Id13588be53b8756e4d9792035bcc6adfbaa8c3f7
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-03-07 09:30:37 +08:00
Walter Yang
05f4374845 ASoC: Add backend user count checking
Add backend user count checking to protect the index
boundary.

Change-Id: Ic1b61d1f7130252cc54da0b16553858714988dbd
CRs-Fixed: 2009216
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:34 -08:00
Walter Yang
3ef1c4591b ASoC: wcd934x: mark AIF4 MAD TX as ignore suspend
Mark AIF4 MAD TX as ignore suspend so that MAD path
will not power down during suspend mode.

CRs-Fixed: 2003858
Change-Id: Iae55e2778edcdd8efa6ae13b746795d8a1594a41
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:28 -08:00
Walter Yang
b91bc18535 ARM: dts: msm: remove hph_en nodes for sdm660 qrd
HIFI headphone path is not present in sdm660 qrd board.
So there is no need to add these two hph_en nodes under tasha node.
These two nodes get initialized by msm_cdc_pinctrl driver and make
gpio24/25 as output low, which causes some power leakage.
Remove these two hph_en nodes for sdm660 qrd.

Change-Id: I527ce45296cd3b168bea67804e0909f668f74221
CRs-Fixed: 2011375
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:21 -08:00
Patrick Fay
6b82744603 Perf: arm64: Use all 6 counters in tracecounters
Tracecounter code was only displaying the values from the first
4 PMU counters. This patch will display all 6 PMU counter values.
Change output strings L2CTR0, L2CTR1 to CTR4, CTR5 respectively.

Change-Id: I111355513bf30a2544bf10e4fbfda79f4cf2678c
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2017-03-06 15:46:56 -08:00
Nicholas Troast
e573d8b6b0 power: qcom: smb-lib: enable HVDCP auth IRQ before APSD rerun
Currently the HVDCP auth IRQ is only enabled upon USB removal. When APSD
is rerun the USB type is not updated to HVDCP_3 since the IRQ was
disabled.

Fix this by enabling the HVDCP auth IRQ before APSD is rerun.

Change-Id: Ic9ec2dca5915651864582abea9165ca8c4290169
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-06 11:37:08 -08:00
Rajesh Bondugula
1346afb1ea msm: camera: sensor: Do not dump the CCI registers
Remove the code to dump the CCI registers in msm_cci_wait.
Clock access to the CCI may be halted and may potentially cause
a crash while accessing the registers.

CRs-Fixed: 2005506
Change-Id: I6c7e61dc3ebc0a599e801acfedb98f523beb090b
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
2017-03-06 11:04:18 -08:00
Vishnuvardhan Prodduturi
d1a2e03ebb msm: mdss: clear BTA_DONE interrupt during DSI read operations
In cases where DSI DMA done operation is performed but isr is
not triggered due to CPU delays, we clear only the DMA_DONE
interrupt. There is a possibility of a DSI read operation for
DSI command mode panels where the DMA_DONE interrupt is cleared and
DSI link clocks are turned off. After some time, the DSI isr gets
triggered for BTA_DONE interrupt and since DSI link clocks are off,
this causes an interrupt storm due to BTA_DONE interrupt not getting
cleared. Clear the BTA_DONE interrupt as well for cases where DMA_DONE
operation is done but isr not getting triggered.

Change-Id: Iceb02e6dd78f4bbf313e2b4d252d6a30699619f0
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-06 09:22:30 -08:00
Se Wang (Patrick) Oh
01c4ad06a8 ARM: arch_timer: force re-selection of the best clocksource
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So make it possible to select
the best clocksource right after arm arch timer initialization, so that
jiffies can be increased by multiple counts since then.

Change-Id: Id8c4e3ce9b9e44061fef7ad7e678ca1c27d84bb1
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-06 09:17:36 -08:00
Se Wang (Patrick) Oh
54547c9f75 clocksource: add API to force re-selection of the best clocksource
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So add API to force re-
selection of the best clocksource among registered clocksources so
that the best clocksource can be selected whenever it is available.

Change-Id: I481de3cdf1df8f0e35ed10aee7ab3882bf7a35b3
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-06 09:14:05 -08:00
Laxminath Kasam
0ef57978d0 ASoC: codecs: Fix override of codec driver private data
In SDM660 internal codec drivers, both platform dev probe and
snd_soc codec probe allocate different structures but
update allocated address pointer to same driver data info.
This causes override of earlier structure location.
Combine the structures to make single codec private data.

CRs-Fixed: 2012230, 2013959
Change-Id: I6c6c43f408fb00003ca43d78919f54ba87f37ffd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-06 20:03:05 +05:30
Tharun Kumar Merugu
be44242e5d ARM: dts: msm: Setting alignment size of adsp cma region to 8MB for SDM660
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Change-Id: I7f774dd193435f045243b34fc0d4f2a9ff24329f
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 06:24:01 -08:00
Rajesh Kemisetti
c350700002 defconfig: msm: Enable Cx ipeak driver for SDM660
Enable common Cx ipeak driver for various multimedia
clients like GPU, MDP, Venus and Camera modules.

This is needed to handle Cx ipeak limit on SDM660.

Change-Id: I95a46964fdf9df48cc0aeb2891426f88c1ff72f9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-03-06 19:21:13 +05:30
Odelu Kukatla
c21d2cb83d ARM: dts: msm: Add SPDM feature for sdm660
SPDM feature requires to be enabled, so add SPDM settings
for APPS CPU bus client.

Change-Id: I35fdafcefebcd3fb6e59f3e55bb68d07403abc74
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-06 18:35:29 +05:30
Charan Teja Reddy
fdadf59c92 ARM: dts: msm: update cti gpio configuration on sdm660
Update the proper GPIO configuration for the QDSS so that CTI output can be
mapped to the GPIO to generate the proper trigger.

Change-Id: Icc8915522f9c5707869572cf80b7bd345d59eca4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-03-06 18:31:43 +05:30
Tharun Kumar Merugu
5111aa7c04 ARM: dts: msm: setting alignment size of adsp cma region to 8MB for SDM630
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Change-Id: Idf7865712a97870fd56d1957b464b98fb92fad2a
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 04:57:51 -08:00
Satish Babu Patakokila
4dd51b1015 ASoc: msm: qdsp6v2: Add timestamp support for offload playback
Add timestamp support for offload playback.
Modify asm driver to write the buffer from predefined offset.

Change-Id: I58dda331de660568d293a483529e2ab6b7084368
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2017-03-06 04:56:48 -08:00
Krupal Divvela
c924ded6b5 msm: camera: cpp: Add support for CX iPeak limits Management
Make a vote call  with TCSR block whenever the clock frequency
driver computed clock goes to turbo. This vote call handles the
situation when many subsystems are in turbo and where a need
arises to throttle the CDSP current.
Remove the vote when coming out of turbo clock.

Change-Id: I11f68d46da4143674e7b0ae7f4e27bdf79e0d8cc
CRs-Fixed: 1097748
Signed-off-by: Krupal Divvela <kdivvela@codeaurora.org>
2017-03-06 18:11:47 +05:30
Linux Build Service Account
783427f7ad Merge "ARM: dts: msm: add device nodes to support DP on sdm630" 2017-03-06 04:28:46 -08:00
Linux Build Service Account
d372046ab7 Merge "ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998" 2017-03-06 04:28:45 -08:00
Linux Build Service Account
5570b43a11 Merge "leds: qpnp-wled: add support to control PSM dynamically" 2017-03-06 04:28:44 -08:00
Linux Build Service Account
574ce4f484 Merge "ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660" 2017-03-06 04:28:44 -08:00
Linux Build Service Account
22f29dc93c Merge "msm: mdss: trigger BTA during active region of display" 2017-03-06 04:28:42 -08:00
Linux Build Service Account
629c363b24 Merge "msm: mhi_rmnet: Keep wake when processing transfer" 2017-03-06 04:28:40 -08:00
Linux Build Service Account
6b590fff54 Merge "msm: mhi_rmnet: Add support for platform devices" 2017-03-06 04:28:40 -08:00
Linux Build Service Account
eaa533f9f9 Merge "ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox" 2017-03-06 04:28:39 -08:00
Linux Build Service Account
0c356c964d Merge "ARM: dts: msm: Add cpp micro reset flag for SDM660" 2017-03-06 04:28:37 -08:00
Neeraj Upadhyay
974186e7cd ARM: dts: msm: update device nodes for SDM658
Core 6 (MPIDR:0x102) and core 7 (MPIDR:0x103) are not
present in SDM658, SDA658 variants; so make relevant
updates to disable the cpu and other device nodes for
them.

Change-Id: I4633a3c36d367cc4ed5bbca525087d3d1cb57421
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-03-06 04:12:34 -08:00
Laxminath Kasam
8a3478a7f7 ASoC: msm: Fix invalid access of codec pointer
From SDM660 internal codec, call soundwire speaker
set mode from respective audrx_init API. This
avoids invalid codec access in sdw codec driver.

CRs-Fixed: 2012230, 2013959
Change-Id: Iaaa5de5a8170a5e51f458b968057f6b1ca1c28fe
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-06 17:31:51 +05:30
Gaurav Kohli
e4ddde04b8 ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM630
Add sub-device node to allow mba to be able to load in carveout
memory region for SDM630.

Change-Id: Id249ca6512732572b9dce8d59b2e2713caaa7f9e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2017-03-06 03:22:38 -08:00
Krishna Chaitanya Devarakonda
7f07fcf389 msm: mdss: Disable secure session after Flush for video mode panels
For video mode panels, the secure session (display/camera) should be
disabled after the Flush. This is to make sure that the secure buffer
is no longer being fetched, before disabling the secure session.

Change-Id: I9cef6a00fa16f4e23cb5d860548a3502951a7281
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
2017-03-06 16:47:53 +05:30
Maulik Shah
3b2e3dcd9a lpm-levels: Return from idle enter for negative mode
Return immediately from idle enter if there is no mode
selected. Log idle exit as failure to enter LPM in the
events that cpu needs to be rescheduled for another task.

Change-Id: I25a444682a8f8c9060f426c03e2f183f86d2fa3a
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-06 03:12:32 -08:00
Saranya Chidura
bc5f81f28e ARM: dts: msm: lpass cti removed on sdm660
cti-lpass0 and cti-lpass1 are not accessible as few of clocks/regulators
are not enabled to trigger the LPASS CTI.This cause device crash on
triggering the LPASS CTI on sdm660.Thus lpass-cti's are removed as
they are not planned to support from HLOS.

Change-Id: I76f81086919ea38b6966106f8ee6141baee183d6
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-03-06 03:05:02 -08:00
Taniya Das
888f9aacd0 clk: qcom: Update the source clock for 24MHz MCLK
The source clock of MMPLL10 has better jitter specs for MCLK than GPLL0_DIV
clock, so update the same to obtain 24MHz clock.

Change-Id: I57a77a83a5028c85d82fda4af53732f0bfb263e7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-03-06 16:14:09 +05:30
Prakash Gupta
b95657a9d2 ARM: dts: msm: add MBA carveout for sdm630
Add MBA carveout of size 2MB after ADSP region and a buffer
region of size 1 MB in sync with v3 memory map.

Change-Id: Iaab9c43310d9ee4764ac73367bff3a448ea1f4d4
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2017-03-06 16:12:44 +05:30
Vishnuvardhan Prodduturi
9dda3223bc msm: mdss: add return values to MDSS recovery events
When the target is in suspend or when shutdown is pending,
the DSI recovery need not be taken care of. Add change to
handle this case based on the return value of the MDSS
recovery events.

Change-Id: I5a5cd6743c15cca7ca42a40db7dcd552c95b20b6
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-06 15:17:04 +05:30
Johannes Berg
2c12b78a37 wil6210: include moduleparam.h
This now declares a module parameter, so include the necessary
header file for that.

Change-Id: I430c996ef2d35d0af86ab0822baccdf477db229e
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 949c2d0096753d518ef6e0bd8418c8086747196b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-03-06 11:40:36 +02:00
Dhoat Harpal
ab59b289fe soc: qcom: glink: Move channel to dummy xprt with lock
In core_channel_cleanup function channel is moved to dummy xprt
without taking channel lock. This leads to race condition where
transport poniter is pointing to dummy but channel still belong
to old transport.

Channel is moved to dummy with channel lock.

CRs-Fixed: 2005731
Change-Id: I91903140c1bfa29d909847f318d1339bb717fffc
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-03-06 14:30:48 +05:30
Rajesh Kemisetti
272435a9b1 ARM: dts: msm: Enable Cx ipeak support from multimedia clients on SDM660
Enable Cx ipeak support for multimedia clients to handle peak
current limit using common Cx ipeak driver.

Change-Id: I3366986369e9742fb8e2560b99f28224abe828d3
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-03-05 23:24:58 -08:00
Srikanth Uyyala
8628870cc9 msm: camera: isp: correct the CX iPeak voting logic
Do not set turbo clock if voting with TCSR block fails

Change-Id: I66bb6d708134ffa6af1149413d850c80e52d9fe5
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2017-03-06 12:20:23 +05:30
Mohit Aggarwal
b8cd1fca02 diag: Add NULL pointer checks in mask updates
Currently, NULL pointer checks are missing in mask
update functions which might lead to NULL pointer
dereference issues. This patch fixes the issue by
adding appropriate checks.

CRs-Fixed: 2015104
Change-Id: I9df99208e283c8d90921c6e20a6a80f88c18a327
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-03-06 11:52:50 +05:30
Alok Kediya
7b9ebe142b msm: camera: Bound check for num_of_stream.
- num of stream comes from userspace and used without
any bound check.It may result to overflow update_info.

CRs-Fixed: 2006829

Change-Id: I8226e8f7081b28108dbed738ea4579e2051a85f2
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:50 -08:00
Alok Kediya
b1efe22c63 msm: camera: prevent Info leak from kernel driver.
- use %pK for kernel address.

CRs-Fixed: 2010501

Change-Id: I983d61b8ce714c0c66dcba68ba375447ef8a4714
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:33 -08:00
Alok Kediya
6bbe19f38d msm: camera: Prevent info leak in kernel driver.
-Use %pK for kernel address to avoid the information leak.

CRs-Fixed: 2009672

Change-Id: Ib0631d5578aba033510babe4f43e2a63bb959747
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:04 -08:00