Commit graph

575401 commits

Author SHA1 Message Date
Maya Erez
096ca9dc58 wil6210: fix wiphy registration sequence
Currently wiphy structure is initialized and registered
in wil_if_alloc, before some information is available such
as MAC address and capabilities. As a result there is a
small chance user space will get incorrect information
from calls such as NL80211_CMD_GET_WIPHY.
Fix this by seperating the registration and moving it
to wil_if_add which is executed later, after all
relevant information is known.

Change-Id: Id38c8e21a853907c884bccd2978f2fd0a547a1ca
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 2690c4c0e83b1aa5aa8b8b258ae422b067720224
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:51:22 +03:00
Maya Erez
dd2c4e67bf wil6210: prevent usage of incorrect TX hwtail
txdata->enabled is used in order to determine if the TX vring
is valid. As the data transmit is handled in a different context,
in case txdata->enabled is set before vring->hwtail is updated,
an old or corrupted vring->hwtail can be used.
Protect setting of txdata->enabled and vring->hwtail to prevent a
case where TX vring start handling TX packets before setting
vring->hwtail.

Change-Id: Id17271823d167677a323dd1f52c7de4c6025b56e
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: dc90506f145875b9d88160802cc5fe06a7c79dda
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:50:36 +03:00
Lazar Alexei
f3d407b89b wil6210: Fix driver down flow
Stations disconnection is executed as part of wil_reset so no
need to do it in wil_down.
Removal of the disconnect operation will also preserve the lock
of wil->mutex during the whole reset flow and prevent handling of
connect event while resetting.
Set wil_status_resetting in earlier stage in the flow to prevent
double resetting call in case communication with FW fails while
bringing the interface down.

Change-Id: Ifb92501aab14843309fed8e1214a867b2ccccfce
Signed-off-by: Lazar Alexei <qca_ailizaro@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: b0c0e688e523eba14abf21ac246b7dd88f5574fa
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:49:49 +03:00
Maya Erez
ff026fee54 wil6210: fix stop p2p device handling
fix stop p2p device handling to identify between search
and listen and update the upper layers with the appropriate
notification.
The stop of p2p radio operations also needs to be performed
in __wil_down.

Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: d35c2b6f8ffa75d430fd0fbbc5062f738c44f6e4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Change-Id: I79f8522ae84dd209cb98c3bbc52cfaeb199dd342
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:48:58 +03:00
Lior David
ada668c8a1 wil6210: change HALP logging category to IRQ
Change the logging category of HALP functions from
MISC to IRQ, since the HALP mechanism is closely
related to interrupts. Both HALP and IRQ create
a heavy load of logging messages when enabled,
so their logging is typically disabled during normal debug
scenarios. Having them in the same logging category
will make it easier to disable logging for both in one go.

Change-Id: I51e58438672a45d210df5db3ac813e656cb525df
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: ef86f249fa4980fc78fe1546e45d8cab6be424b6
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:48:10 +03:00
Maya Erez
4e5eb632f4 wil6210: support rx key setting for all TIDs
According to the spec the PN should be calculated per TID.
In the current implementation, the PN and key_set were set
only for TID 0, therefore only traffic for TID 0 was supported.
In order to support all TIDs, the key_set and PN should be set
for all the TIDs.

Change-Id: Ib5c55a37208d76505658635b12afc88552d5a220
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 74b6ac586d9cb7f45c894841e4204b3648ae865c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:47:24 +03:00
Maya Erez
b6719a8452 wil6210: align to latest auto generated wmi.h
Align to latest version of the auto generated wmi file
describing the interface with FW.

Change-Id: I95c14c0fe7a33c078eb7d9aa44dd97a64f9b0fae
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 0163b03199006a6ba0d2c991c311e8ac93fcb208
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-18 17:46:35 +03:00
Linux Build Service Account
4e2a8a0fa1 Merge "Revert "usb: dwc3: gadget: always enable IOC on bulk/interrupt transfers"" 2016-09-17 21:07:23 -07:00
Linux Build Service Account
d39931458e Merge "Revert "usb: gsi: Queue control notification on gsi_resume"" 2016-09-17 21:07:20 -07:00
Linux Build Service Account
72c2d923b9 Merge "msm: sde: Move SDE rotator timeout evtlog outside of spinlock" 2016-09-17 21:07:20 -07:00
Linux Build Service Account
a8db147fc1 Merge "USB: f_accessory: Fix NULL pointer dereference in acc_read()" 2016-09-17 21:07:16 -07:00
Linux Build Service Account
f18d5b789d Merge "msm: camera: Add support for camera on version 2 of msmcobalt" 2016-09-17 12:59:53 -07:00
Linux Build Service Account
1befebc47d Merge "icnss: Handle multiple PD down notifications" 2016-09-17 12:59:52 -07:00
Linux Build Service Account
c93a92750e Merge "icnss: Top level reset if clocks are dead" 2016-09-17 12:59:52 -07:00
Bjørn Mork
f1734b19c7 cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind
usbnet_link_change will call schedule_work and should be
avoided if bind is failing. Otherwise we will end up with
scheduled work referring to a netdev which has gone away.

Instead of making the call conditional, we can just defer
it to usbnet_probe, using the driver_info flag made for
this purpose.

Change-Id: I0052ab287e40bac491a55f324eca4917cf9980ae
Fixes: 8a34b0ae87 ("usbnet: cdc_ncm: apply usbnet_link_change")
Reported-by: Andrey Konovalov <andreyknvl@gmail.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 4d06dd537f95683aba3651098ae288b7cbff8274
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2016-09-16 17:40:06 -07:00
Skylar Chang
a1d527f88f msm: ipa: add support for new QMI IDL
Add support for new QMI IDL in IPA driver for new message
QMI_IPA_INSTALL_FILTER_RULE_EX_REQ_V01 which allows to send
at most 128 rules.

Change-Id: I886e40f597169939ce4598863fd80145743d8db7
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-16 17:21:59 -07:00
Mayank Rana
eeddeda6f7 usb: gadget: gsi: Set NUM_OF_TRB as 15 for IN and OUT GSI endpoints
It is recommended to use NUM_OF_TRB greater than USB controller's
TRB cache size. Currently USB controller's TRB cache size on GSI
available platform is 12. TRB ring base address must be aligned to
TRB ring length rounded to power of two. Hence set NUM_OF_TRB as
15 for both IN and OUT GSI endpoints.

CRs-Fixed: 1067833
Change-Id: Iab8b0bc6fd17183fc6056f06a90421cde24987c8
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-16 16:21:44 -07:00
Prashanth Bhatta
7b2f56361b icnss: Handle multiple PD down notifications
During recovery, if another PD down notification received because
of crash then handle the case. If debug enabled then BUG_ON to
debug the second crash.

CRs-fixed: 1067873
Change-Id: I6e8e92ca0ee11830f933e198fea502c915d36e59
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-09-16 16:15:30 -07:00
Prashanth Bhatta
7f94163f80 icnss: Top level reset if clocks are dead
During recovery, if not able to force enable hardware clocks then
do top level reset only.

CRs-fixed: 1067868
Change-Id: Ie23ca022c94cd214a9e415e9fb774055cfaf881d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-09-16 16:15:11 -07:00
Runmin Wang
95a1ccc130 defconfig: msmcortex: Remove panic on SBE
Remove panic on single bit cache error because single bit error
can be corrected.

Change-Id: Id14ffa45a1326e47adc847c012e9ac21c6954990
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-09-16 15:29:55 -07:00
Runmin Wang
a9a0da48eb edac: cortex: Remove WARN_ON messages
Remove warn_on message since the required CPUMERRSR and L2MERRSR
info is already printed in the dmesg.

Change-Id: I2e93bcd1e84d43bc7a58af0be02d5337d936d4ee
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-09-16 15:24:07 -07:00
Venkat Gopalakrishnan
c3d29d4864 phy: qcom-ufs: remove warnings for optional clocks
tx_iface_clk and rx_iface_clk does not exist in newer version
of ufs-phy HW, hence remove the missing clk warnings for them.

Change-Id: Ic8dd3e9521159ce8da064da38cfa12e75f07209f
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-16 15:14:08 -07:00
Tony Truong
e218ba7d2e msm: pcie: initialize var in GPIO init function
It is possible a variable will be accessed before
it is ever initialized. Properly initialize this
variable when it is declared.

Change-Id: Id1523786f1c87449ed3943f1726766dad6a4ade2
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-09-16 14:39:18 -07:00
Ingrid Gallardo
362342211d msm: mdss: avoid shutting down PHY PMIC regulators
As part of the PHY shut down sequence, current driver
disable the phy pmic regulators. This is not the
expected sequence, so make sure the pmic phy
regulators stay enabled.

Change-Id: Ia65a71347666ed9fa3f6bf92fe7c573638301254
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-16 14:36:48 -07:00
Sudheer Papothi
0e066fbe47 ASoC: wsa881x: Avoid removing of already deleted timer object
Cancel_delayed_work_sync in wsa881x_swr_down function is trying to
remove the timer object which is already deleted. Check for
pending work before calling cancel_delayed_work_sync to avoid
unnecessary removal of timer object which is already deleted.

CRs-Fixed: 1065347
Change-Id: I2d173d05642c58451d56d84d9e34ae65a00c1e3c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-09-16 23:55:35 +05:30
Vivek Veenam
b53eb89873 msm: camera: Export IR CUT device to mm-qcamera-daemon
Extend sensor_info structure with one more field to be able to export
the IR CUT device to mm-qcamera-daemon.

Change-Id: I63da161f90bce2c33d1e7e9d5822c8635e307fd5
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
2016-09-16 10:30:35 -07:00
Vivek Veenam
3951ec5f08 msm: camera: Add a driver to control IR CUT device
This driver is able to control a IR CUT device. The interface to
user space is:
CFG_IR_CUT_INIT
CFG_IR_CUT_OFF
CFG_IR_CUT_ON
CFG_IR_CUT_RELEASE

Change-Id: I30d1c4e6c40b8e58a70f06db9e05231b4c7f676f
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
2016-09-16 10:29:29 -07:00
Avaneesh Kumar Dwivedi
85689f1c26 soc: qcom: ssr: Return from acknowledgment wait if modem is crashed
During graceful shutdown we await acknowledgment before executing
reset sequence for subsystem, adding check to evaluate if subsys is
crashed in between so that we dont spend time for hopeless ack wait.

Change-Id: I34bba1ebc417a3d6daa3b6e0a38c4b519c82c606
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-09-16 22:33:03 +05:30
Oleg Perelet
19310c3b80 ARM: dts: msm: Remove 710Mhz frequency for A540v2 GPU.
Remove support for 710Mhz for A540v2 GPU because it is not supported.

CRs-Fixed: 1056661
Change-Id: Ida0d2d010f7bd226d7e2221f63e64a1d7e5a9075
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-09-16 09:41:20 -07:00
Linux Build Service Account
8a8abceb69 Merge "ARM: dts: msm: add new clk for native playback on msmcobalt" 2016-09-16 09:22:04 -07:00
Linux Build Service Account
a146b61be9 Merge "ASoC: wcd9335: Add ANC support on speaker path" 2016-09-16 09:22:04 -07:00
Linux Build Service Account
6635751452 Merge "ASoC: wcd934x: update TX modes" 2016-09-16 09:22:01 -07:00
Linux Build Service Account
eb79baaa6b Merge "ASoC: wcd934x: add handset speaker gain mixer control" 2016-09-16 09:22:01 -07:00
Linux Build Service Account
504c6dd5d1 Merge "drivers: mfd: set IIR and ANC registers as volatile" 2016-09-16 09:22:00 -07:00
Linux Build Service Account
7ba1c55052 Merge "ARM: dts: msm: enable bwmon4 for cpubw monitor for msmcobalt" 2016-09-16 09:21:59 -07:00
Linux Build Service Account
93470de0ae Merge "msm: kgsl: Trigger preemption from preemption complete interrupt" 2016-09-16 09:21:58 -07:00
Benjamin Chan
870adafb68 msm: sde: Move SDE rotator timeout evtlog outside of spinlock
During an timeout event in the SDE rotator driver, a spinlock with IRQ
is disabled in order to capture the rotator hw status registers. If
during this time performs an evtlog timeout logging, a mutex_lock
within the logging sequence will cause a panic. We must and only should
perform the evtlog timeout logging after the spinlock is released.

CRs-Fixed: 1067811
Change-Id: I56b7e5713069ad8ac8d5ae43a492a0ab0f4e82ff
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-16 08:55:22 -07:00
Haynes Mathew George
8a52055cde ASoC: msm: qdsp6v2: Change device switch handling
First cut of NOIRQ driver used a sequence of
trigger commands (PAUSE, STOP, RESUME) to handle
device switch. This led to a state transition issue
where after resume trigger, the state of the stream
would change to OPEN instead of RUNNING. To fix
this, clients are expected to do RESET ioctl instead.
RESET ioctl does not change the state of the stream.

Bug: 30615611
CRs-Fixed: 1051762
Change-Id: Ife6146d28c8bc834a79e861959eca03e58e12d5e
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2016-09-16 03:18:24 -07:00
Dhanalakshmi Siddani
a605f4fab2 misc: qcom: qdsp6v2: SSR recovery support for NT decoder
Post ENETRESET error to omx component during SSR.

CRs-Fixed: 1044635
Change-Id: I8c5b8ffc62d34a44bfb47ec4f11477d4320d30a8
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2016-09-16 03:18:20 -07:00
Linux Build Service Account
6c104f8d40 Merge "ASoC: audio-ext-clk: avoid multiple initialization of pinctrl_info" 2016-09-15 22:51:56 -07:00
Linux Build Service Account
a97736505b Merge "ASoc: wcd934x: correct High-Z mode for dmic pins" 2016-09-15 22:51:55 -07:00
Linux Build Service Account
e3aa58fcc0 Merge "coresight-tmc: save TMC registers during abort" 2016-09-15 22:51:54 -07:00
Linux Build Service Account
cd31b17afd Merge "ASoC: wcd_cpe_core: add arch_setup_dma_ops call" 2016-09-15 22:51:53 -07:00
Linux Build Service Account
5025a44c78 Merge "ASoc: wcd9335: correct native playback widget on msmcobalt" 2016-09-15 22:51:52 -07:00
Linux Build Service Account
144554c35d Merge "msm: ipa: Allocate memory on send message" 2016-09-15 22:51:52 -07:00
Linux Build Service Account
38f8a6a313 Merge "input: touchscreen: pull down reset and interrupt pin before GT9xx powerup" 2016-09-15 22:51:49 -07:00
Linux Build Service Account
4ab368becd Merge "usb: gadget: gsi: Kick state machine with MESSAGE_PACKET_FILTER for RNDIS" 2016-09-15 22:51:48 -07:00
Linux Build Service Account
27332002f8 Merge "sound: usb: Send explicit device disconnect to clients" 2016-09-15 22:51:48 -07:00
Sudheer Papothi
865796aea8 ASoC: wcd9335: Add ANC support on speaker path
On msmcobalt reference platform, earpiece path is not connected
to receiver, instead speaker path is used as receiver. So handset
AANC(Adaptive Active Noise cancellation) needs to be supported
on speaker path. Change enables ANC support on speaker path.

Change-Id: I8104994adc30810085cce73662f5abd5e15106ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:20:30 -07:00
Vidyakumar Athota
fd2b9f1daf ASoC: wcd934x: add handset speaker gain mixer control
In msmcobalt platform, speaker path is used for handset mode also.
Add the mixer control to change gain in handset mode.

Change-Id: Ia291f7449cd04a855102a03324f7cdcb6f13dad0
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:09:15 -07:00