summaryrefslogtreecommitdiff
path: root/cnss2
AgeCommit message (Collapse)Author
2023-04-13cnss2: Validate maximum number of memory segmentsHsiu-Chang Chen
For WIN use case maximum number of memory segments requested by FW is increased to 52 in QMI layer. Since CNSS2 driver uses same QMI header files and message structures the same maximum number of segment is applicable for CNSS2. It means for memory allocation, FW can request 52 memory segments to CNSS2 via QMI indication but local CNSS2 variable which get segment info from indication supports maximum 32 segments. To fix it, change CNSS2 array variable size to same as number of maximum segment supported in QMI layer. Bug: 276750584 Test: Regression Test Change-Id: I661b55b53cb31327da12f064d0a516884159eb5b CRs-Fixed: 3355665 Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
2023-01-12cnss: Reduce timeout for RDDM inside panic handlerVictor Hsu
Normally mhi_ctrl->timeout_ms is 10 seconds and is reduced to 5 seconds during panic. But during firmware downloading the mhi_ctrl->timeout_ms is changed to 60 seconds and the original code changes the timeout to 30 seconds. Change mhi_ctrl->timeout_ms to 5 seconds to avoid watchdog bite. Bug: 262188328 Test: Trigger panic during firmware download and no watchdog bite. Change-Id: I01ab1ece0855644f14c12d4ba97b5e37b59369d1 Signed-off-by: Victor Hsu <hsuvictor@google.com> (cherry picked from commit 221cbd0585a9e58344896651b7b649c8fa337bc5)
2022-12-07Support multiple BDF files for different hw revsions and SKUsHsiu-Chang Chen
Bug: 259506035 Test: BDF file can be loaded in order successfully Change-Id: I097d1aaca854adc5c50da30813826b1b2029abca
2022-12-01cnss2: Add API to send WFC mode to WLAN FWHsiu-Chang Chen
Add and export API to host driver to send WFC(WiFi Calling) mode to WLAN FW. Bug: 251265470 Test: Regression Test Change-Id: I92d3d0baad9afc6fdf66f66b847a4e8a90a54341 Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
2022-11-17Increase the delay for power input to prevent TCXO unstableHsiu-Chang Chen
Bug: 254683370 Test: Airplane mode on/off stress test (3000 times) Change-Id: I0be78f723e0e77d2f11e8069f9d9130749f68931
2022-10-15cnss: Avoid flodding of logsVictor Hsu
Remove debug messges and print them only when error happens. Bug: 240393428 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I217d25b3a24951c0079b8f0af43ed55423412fbc
2022-09-16Merge "wcn6740: Update cnss/mhi/qmi/qrtr drivers" into ↵Hsiu-Chang Chen
android13-gs-pixel-5.10-tm-qpr1
2022-09-06wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to PostCS release Bug: 245009352 Test: Regression Test Change-Id: Icb90ab318ced3f028a19d6e329d509a23c3774a6
2022-09-05cnss: Dump TLMM_OD_EN, WLAN_JTAG_ID, wlan secure boot registers.Victor Hsu
Bug: 244411535 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I02097343f8ab3e7cbfa442aa17cc10ccb09455fa
2022-09-05cnss: Delay to start CBCVictor Hsu
If COLD_BOOT_CAL starts too early, the MHI powers on failed. Delay 5000 ms to start calibration. Bug: 243876449 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I83ae27bf5abd03aec0f1a8b9639ea7d3b2851f37
2022-08-08wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to CS release Bug: 241212055 Test: Regression Test Change-Id: Ie36e542452be8731a5d0a9b58de48e434cd1a33d
2022-08-04cnss: Control L1SS during runtime suspend/resumeVictor Hsu
Integrate PCIe RC L1SS functions into cnss suspend/resume flows. Bug: 240370036 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I220725414108642bc2b2f2a2d90d2dbf84f5dd6b
2022-07-05wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to preCS release Bug: 237922233 Test: Regression Test Change-Id: I02eb261b022db86ace9a9f25327d55da1452c065
2022-04-11wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to Rel4(ES1.1) Bug: 228562103 Test: Basic functions Change-Id: I48ab3c27af57d199363e47207153ad856f38b926
2022-04-09wlan: Enable and disable L1SS during suspend/resumeVictor Hsu
exynos_pcie_rc_l1ss_ctrl() is called to control the L1SS disabled or enabled during suspend and resume. Bug: 228662944 Test: Ensure L1SS disabled and enabled st suspend/resume Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: Iddc4b9c18f9d8f83b8c3c3fbaa91bbcfc4dc4752
2022-03-21wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to Rel3(Post CS7) Bug: 222600720 Test: Basic functions Change-Id: Ib90515b6c2966b90c6f8e6f357749fe52184cd85
2022-03-03Merge "wcn6740: Update cnss/mhi/qmi/qrtr drivers" into android13-gs-pixel-5.10TreeHugger Robot
2022-03-03wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to Rel2(Post CS5) Bug: 218419889 Test: Basic functions Change-Id: Ifd845bfba4ca35d14f5606b5cf2dde12e397801b
2022-03-01wlan: Configure states of BUCK pinctrlVictor Hsu
Configure the buck gpio pin to prevent from unexpected hardware errors during suspend/resume. Bug: 216250741 Test: Manunally check buck gpio pin not dropped. Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I9b7aa702fee0ad2eaf88f727ca9b3e032b557278
2022-01-19wcn6740: initialize sscd platform device before registerHsiu-Chang Chen
cnss_pci probe will retry when probe fails. Because the sscd platform device is defined as a static variable, we need to initialize the sscd platform device before registering to prevent using corrupted data. Bug: 213957306 Test: Device can boot after reprobe Change-Id: Id767ef9f63e7f41263a9ef962fe1ddf0e2baef7d
2021-12-24wcn6740: Update cnss/mhi/qmi/qrtr driversHsiu-Chang Chen
Migrate wlan codes to Post-CS4 Bug: 211358472 Test: Basic functions Change-Id: I4161d344a9260fb855712626048d80e5954e1ac1
2021-12-13wcn6740: Control buck GPIO to turn on WiFiVictor Hsu
Add WLAN driver codes to pull buck GPIO high when power on WiFi. Bug: 206066634 Test: Test it on reworked Cloudripper Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I499d464e67d7cece754a19183f83f80557a8e72d
2021-12-13wcn6740: support coredump crash informationHsiu-Chang Chen
Bug: 205246511 Change-Id: I61551923f2b727646fb1cc061d9621ee1666cfa0
2021-12-13wcn6740: Implement wlan coredump featureHsiu-Chang Chen
Bug: 204519778 Change-Id: Ic85052cd12d8e5b02637044998267a39795631b8
2021-12-13wcn6740: Change DMA allocation methods in mhi & cnss2Victor Hsu
PCI rc driver hooks the op of dma_alloc_attrs() for S2MPU To solve the allocation failure problem, change to use dma_direct_alloc() instead. Bug: 204280094 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: I86bdb8529d3fd2d3711ec8acbee76702ec9a4c06
2021-12-13wcn6740: Change the include path to out-of-kernel treeVictor Hsu
Change the include path to make sure to include the correct header files in out-of-kernel tree. Bug: 203725513 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: Iaff00aca3b1e3faa77ffb54bf7eb59b6ca296c58
2021-12-13wcn6740: Refactor cnss2Victor Hsu
Separate the platform related functions from pci.c to the different files. Bug: 203276660 Change-Id: If2e4995cc0897a118575dcff368b52a8964e3704 Signed-off-by: Victor Hsu <hsuvictor@google.com>
2021-12-06wcn6740: Add CNSS platform driver modulesVictor Hsu
Bug: 202572584 Change-Id: I6e2e81606910c6fe9c179492be0b14f1819a119f