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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>