Revīziju grafs

22 Revīzijas

Autors SHA1 Ziņojums Datums
Surabhi Vishnoi
075cc964ce icnss2: Send rf_subtype to firmware via QMI command
Send rf_subtype based on dt node "qcom, rf_subtype" to
firmware using QMI_WLFW_WLAN_HW_INIT_CFG message after
qmi server arrive. Firmware will initialize different
halphy code based on rf_subtype sent by host.
Currently, this change will be applicable only for
adreastea targets which can have either slate RF or Apache
RF attached.

Change-Id: Iba327d0c221104a4ebb55a72d42e1a4b8dcb66c3
2023-01-05 10:28:42 +05:30
Rajesh Chauhan
ecb024f0d1 icnss2: Fix build issue when strict-prototypes is enabled
When strict-prototypes and format-insufficient-args are
enabled then icnss2 fails to build. Change prototype of
icnss_get_plat_priv() and remove extra arg from error log
in icnss_wlfw_wlan_mac_req_send_sync().

Change-Id: I81c7d90fa24b05d573a9ce47c0301d2798118182
CRs-Fixed: 3359853
2022-12-13 19:36:36 -08:00
Sandeep Singh
414f0dcf64 icnss2: pass fw build id in soc info to wlan host driver
Pass fw build id as part of  soc info to wlan host driver.

Change-Id: I6a8bced678ada0f88e744b5fd3f2ed58fa4173ef
CRs-Fixed: 3324963
2022-11-10 12:56:04 -08:00
Naman Padhiar
60f897b63a icnss2: Send WLAN_EN delay during Mode request
Send WLAN_EN delay during Mode On QMI request if temperature is
below threshold at that time.

Change-Id: I910168dafa09c25cc4a263a7756379eb8be46824
2022-10-02 01:17:36 -07:00
Naman Padhiar
4d21b48025 icnss2: Add support to configure WLAN_EN_DELAY
Add support to configure WLAN_EN_DELAY using sysfs.
When temperature detected is less than threshold
configure WLAN_EN_DELAY value from sysfs if it is
greater than default WLAN_EN_DELAY value.

Change-Id: I94ac0c6bb3bd2bc2da122d3cf1215b8fe964159f
CRs-Fixed: 3230892
2022-06-28 14:36:37 +05:30
Sandeep Singh
9f32f8da41 icnss2: Enable host trigger recovery for wpss adrastea
This change enables host trigger recovery for wpss
adrastea targets.

Change-Id: I23345f57531563e96352d61e5404ae9d68cdfbcc
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-06-14 11:49:23 +05:30
Sandeep Singh
9be6cc9072 icnss2: Enable power supply framework for 5.15 kernel
Icnss driver indicates vbatt voltage level to wlan fw
based on battery percentage. This change adds power
supply framework code to enable icnss2 driver to measure
battery percentage and update vbatt volatge level to
wlan fw.

Change-Id: I376805da38222a5e7a20ae4a1737bc978ee6a9ae
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-05-25 14:28:40 +05:30
Naman Padhiar
878c36c07a icnss2: Set WLAN_EN_DELAY based on temperature
Read temperature from the tsens given in DT. Based on that
temperature set WLAN_EN_DELAY value and send it to FW via
Host Capability QMI request.

Change-Id: I6a41dad58af28fa321932874c3974ca95beb59ac
2022-05-23 11:06:04 +05:30
Sandeep Singh
4e020a4c9a icnss2: Register for mpss subsys rather than modem subsys
From 5.10 kernel onwards, remoteproc team has renamed
modem subsystem to mpss subsystem. So, icnss driver
should register for mpss subsystem rather than modem
subsystem.

Change-Id: I68276c7b03a4819ba0e219f1019a73eafa3ac456
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-05-10 13:38:36 +05:30
Sandeep Singh
2bb5c9cb46 icnss2: Reject wlan host driver loading
Reject wlan host driver loading if wlan driver
dev_info is null. Wlan host driver needs to pass
correct dev_info to get driver loaded.

Change-Id: I6b4e94c42c6192a063d0e3ccf20deb73714fab8c
CRs-Fixed: 3178902
2022-04-27 15:31:01 +05:30
Sandeep Singh
c0e7f285a0 icnss2: Add change to enable icnss2 driver unloading
Rproc_put should gets called only after rproc
subsys shutdown as it decreases refcount. Rproc_put
should not be called from icnss_remove as refcount should
not be decreased without incrementing it using rproc
get_by_phandle api.

Change-Id: I26dc83d9750e45726e9e59d33a75d4ff402caa62
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-04-18 17:53:27 +05:30
Sandeep Singh
3f3761e143 icnss2: create soc wake wq only for wcn6750 device
Soc wake feature is only required for wcn6750 device.
So, this change moves soc wake wq creation only for
wcn6750 device.

Change-Id: Ib564d8bfd10c98aad3595bb10e5a2660f9049f85
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-04-18 17:43:05 +05:30
Sandeep Singh
2d00bd1bf8 icnss2: Enable wpss ssr for adrastea target
This change enables wpss ssr recovery handling
for adrastea targets.

Change-Id: I68a855db2b67d17dc4ba57337efb5ca406ba0873
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-04-18 17:18:43 +05:30
Sandeep Singh
e4e94ffa0d icnss2: Enable dms get mac address for wpss supported target
Enable dms get mac address for wpss supported target.
This change enables get dms mac address for adrastea
targets where rproc wpss loading is supported.

Change-Id: I76e4ae46833afb1d1150c3757cb2fc2f87ede2ec
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-04-18 16:53:08 +05:30
Sandeep Singh
a3d650f48a icnss2: Enable wpss loading for adrastea targets using rproc
This change enables wpss loading for adrastea targets using
rproc framework.

Change-Id: Ib9293a407c54da050d94b013ba6b6db58ab46893
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-04-18 12:41:53 +05:30
Sandeep Singh
9c8339eabe icnss2: Add code to pass device configs to wlan host driver
Add code to pass device configs to wlan host driver.

Change-Id: I977fc564914f9fbdabc0004eff4c5c2f14a1fc7c
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-03-22 22:35:22 -07:00
Sandeep Singh
3974704e22 icnss2: Remove vbatt feature code from icnss2
This change removes vbatt feature code as adc tm
api's functionalities has been changed and no
longer supports vbatt feature.

Change-Id: I431c1dfe1a5529809fd7d68d1cb15632de3b801b
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-03-22 18:47:20 -07:00
Naman Padhiar
09128bd57d icnss2: Properly handle ramdump device creation failure
Check return value from function and handle it properly.

Change-Id: I8016f2a63d3d951e3ee0557397cbb80b9c51bebc
2022-03-17 09:15:48 +05:30
Naman Padhiar
8b84662a7d icnss2: Register early SSR notification for WPSS
Consider a scenario where WPSS watchdog happens RPROC driver
gets interrupt and notified to GLINK layer(underlying layer
within QMI) now if ICNSS driver tries to send any QMI message
it will fail and ASSERTS. If ICNSS would have received legacy
SSR notifier it could have ignore ASSERT. But there is a race
where ICNSS sends QMI message between GLINK layer received
WPSS down and ICNSS receives WPSS down and ASSERT of QMI
failure cannot be avoided. To resolve this register early
SSR notifier from ICNSS which notifies about WPSS down to
ICNSS before GLINK. Based on that ICNSS can either avoid
sending QMI message or can ignore ASSERT.

Change-Id: Iada85a1bfff6ae420123afc5f86a738b662171fc
2022-03-12 08:43:47 +05:30
Sandeep Singh
48c98ff79f icnss2: Add prefix in file path for adrastea targets
This change will add adrastea prefix in fw file path
of adreatea targets. This changes enables fw files
to be picked from /vendor/firmware_mnt/image/adrastea
path.

Change-Id: Ic0ce57b7a8db08e4bf55c8a493a1f1500d93c427
CRs-Fixed: 3140070
2022-03-10 10:55:49 +05:30
Naman Padhiar
7f324af0bf Check if FW_DOWN is reason for SOC_WAKE REQ timeout
There is possiblity that after sending SOC_WAKE_REQ/RESP
SMP2P message WPSS might go down for some reason in that
case ACK for SOC_WAKE REQ/RESP from WPSS can never come
and request will get timedout and ICNSS asserts.To avoid
this, check if FW_DOWN is reason for SOC_WAKE REQ timeout
and avoid assert.

Change-Id: Id371d625b880847bf02392d0f722b58aa30fc2b2
2022-03-09 07:45:26 -08:00
Naman Padhiar
3983bc4503 wlan_platform: Bring initial files for ICNSS family drivers
Bring ICNSS family drivers from msm-5.10 kernel as of commit
'cb298739ee51 ("icnss2: Download bdf file for helium targets")'
to WLAN platform project.

Updated wlan_firmware_service files and makefiles to support
ICNSS2 compilation.

Change-Id: I02cf792b61772f07ac0607be7bb6b3bfda7815e4
2022-03-02 09:04:18 +05:30