Commit Graph

12 Commits

Author SHA1 Message Date
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