CONFIG_ATH10K_DEBUG needs to enabled to get the
debug logs for various debug log levels.
Enable CONFIG_ATH10K_DEBUG to have debug log support
for ath10k driver.
Change-Id: Ibd8641fe79ca4cfb68e843247610dbd28d857cc7
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Remove array declaration in i2c write function of Synaptics DSX
touch driver and use the malloc function to allocate the memory.
This change is added to use heap memory instead of stack memory.
CRs-Fixed: 1010986
Change-Id: I8f2f75744bb442191d7d4577795d986e10ea1cf6
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
ATH10K_DBG_SNOC debug mask is incorrectly assigned.
Fix this by correctly assigning the debug mask
for WCN3990.
Change-Id: I261e4789e4c69cf2493b8e18df9ffb538b256b20
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Add the rate histogram for rate_index, band, ht,
vht and vht_nss for received data packet.
CRs-Fixed: 2019645
Change-Id: I52ae3b94c886b8a200162cd7d2a220548296bf91
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
Add support for ADSP Stream Cmd and Callback for PCM
and compress driver. Mixer controls are added as interface
for ADSP stream cmd and callback event.
CRs-Fixed: 2023802
Change-Id: Ib2de5aebe257332171c3b1ebe3d26b3422d61c97
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add debug RAM to store few important mmc data structures
on first point of failure(like mmc_card, mmc_host, sdhci_host)
for debugging purpose, otherwise it will be overwritten as
BUG_ON is removed now.
Change-Id: Ia1388a77aeed60d4d49a63b8798d3a925a60ac2c
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
Client name allocated dynamically during the registration
is not freed at the time of unregistration. This is
leading to memory leak issue. This patch fixes the issue
by freeing up the client name during unregistartion time.
Change-Id: I0fe75ce71fdf0ee9a1268d52ac244047cc3413d7
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Add service registry and PD indication support
Add support for USER PD service discovery and
associated notifications.
Enable recovery when USER PD DOWN indication is
received.
Change-Id: I548cd231f3d2090c5aa0ed328fbfb909d17467e8
Signed-off-by: Govind Singh <govinds@codeaurora.org>
As GPIO 54 has already been connected to an external
pull up resistor, config it to no pull to save power
consumption.
CRs-Fixed: 2024143
Change-Id: Ic52896f9bf0e001f505d1bb7400df2ae96f44d49
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
Driver registers net device in bind but does not unregister it upon
driver unbind. Upon composition switch ncm net device is no longer
in use, hence unregister and free it in driver unbind. Unregistering
net device sends notification to user space which can be used by user
space entities to perform necessary actions for example updating UI.
Symmetrically allocate and register net device in driver bind.
Change-Id: Ie1bb781aba8efee20cc98c1d6bf264403c3b087e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
The battery ID channel on the RRADC can be disabled
during initialization. Therefore update the sequence
to enable the channel before enabling the trigger and
continuous mode. After reading the battery ID result
from the RRADC controller, disable the trigger
and disable the channel after conversion request.
CRs-Fixed: 2023991
Change-Id: I461e04175ae351312b68771ef85cd928d5c0e4b1
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
CC_SOC_SW can accumulate error over time and get saturated high
during capacity learning. Prime it to a value based on battery
SOC when capacity learning begins. This way, it can be ensured
that CC_SOC_SW doesn't saturate in a capacity learning cycle.
Change-Id: I2866ed6dadee84e84bf28fb08dc3a5a0ae353852
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Currently, if a DMA error is present, SW sets CLEAR_LOG bit
in DMA_CTL register to clear it. Since this bit is not self
clearing, one has to reset this back to 0 after error handling
finishes.
Change-Id: I824543338f98e06661276da0364dcb6d7496f9cc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
In some cases, to offset the battery resistance which may be high
because of battery profile characterization and hardware layout,
negative connector resistance (Rconn) should be specified. Allow
configuring it.
Change-Id: Ief64ac13ba0a384a599fe6fffdbc0d093180d0b8
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add a retry mechanism when trying to stop a producer pipe.
This is to avoid a timeout on stop channel when IPA is busy.
Change-Id: If9e0df976def1195171730624e02c185142e2964
CRs-Fixed: 2024084
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
There is a chance that glink channel memory can be allocated multiple
times if wdsp_glink_ch_info_init() is called from multiple threads.
Avoid this scenario by protecting the private data structure.
Change-Id: I04fc19232b0f128b36a00dc1e73a3bed03664a93
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Initialize the local variable 'ret' which is returned
from the function.
Change-Id: Ie82e74ce55b622db924e353a6ea98323c7642fa6
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>