boundarydevices / linux

Kernel tree for Ezurio (ex-Boundary Devices) platforms
https://www.ezurio.com/
194 stars 290 forks source link

Pass1 cypress #71

Closed simong01 closed 1 year ago

simong01 commented 1 year ago

Cypress latest release

https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Cypress-Linux-WiFi-Driver-Release-FMAC-2023-05-23/td-p/445808

Cypress fmac patch files (208 patches)

FW

https://github.com/boundarydevices/cypress-firmware/tree/lwb5plus-sdio-sa-firmware-10.54.0.13

Tested on imx8mp-nitrogen_smarc

WiFi station / client mode works. WiFi AP mode works. WiFi AP + STA mode works !!

Patch information:

Not applied ...

0014-non-upstream-fix-continuous-802.1x-tx-pending-timeou.patch # Already in 6.1 0fa24196e4257bcad0c5c82d93508536426db4a2

0016-brcmfmac-add-CYW43570-PCIE-device.patch # Already in 6.1 8ec10f1576d633a65118c0aad9e08b7684acd514

0017-non-upstream-fix-scheduling-while-atomic-issue-when-.patch # Already in 6.1 09be7546a602ea2d0959fc13515765221da248f2

0018-brcmfmac-Support-89459-pcie.patch # Already in 6.1 dce45ded761946c053b9901f4b49f0439d934251

0022-brcmfmac-increase-dcmd-maximum-buffer-size.patch # Already in 6.1 11eda8f01d6a1b16341235459a6b2b5bf9a28669

0053-brcmfmac-Fix-to-add-skb-free-for-TIM-update-info-whe.patch # Already in 6.1 2eee3db784a045289ebc62fc3bdbe0eb36b73a3d

0054-brcmfmac-Fix-to-add-brcmf_clear_assoc_ies-when-rmmod.patch # Already in 6.1 5606aeaad01e0b0ad09c021cfa44ee18fc4ae33b

0081-brcmfmac-add-support-for-CYW43439-SDIO-chipset.patch # Already in 6.1 ?? be376df724aa3b7abdf79390eaab60c58a92f4f0

0083-brcmfmac-add-CYW43439-SR-related-changes.patch # Mostly Already in 6.1, except for 1 change in drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c that does NOT work ??

0111-brcmfmac-Improve-the-delay-during-scan.patch # Reverted later in patch 0113 0113-Revert-brcmfmac-Improve-the-delay-during-scan.patch # Reverting patch 0111

0162-cfg80211-fix-u8-overflow-in-cfg80211_update_notliste.patch # Already in 6.1 0163-cfg80211-mac80211-reject-bad-MBSSID-elements.patch # Already in 6.1 0164-cfg80211-fix-BSS-refcounting-bugs.patch # Already in 6.1 0165-cfg80211-avoid-nontransmitted-BSS-list-corruption.patch # Already in 6.1 0166-brcmfmac-Fix-potential-buffer-overflow-in-brcmf_fweh.patch # Already in 6.1

0180-wireless-brcmfmac-Use-netif_rx.patch # Already in 6.1

0189-non-upstream-sdio-t-put-tuning.patch # Needed ? struct sched_param ? sdio.c:4707:28: error: storage size of ‘param’ isn’t known

0194-non-upstream-fixing-compile-error-on-kernel-5.9-onwa.patch # Not needed in 6.1

0200-brcmfmac-prevent-double-free-on-hardware-reset.patch # Already in 6.1 cb774bd35318c1b4cb61f6f2caac85537d07fbde

Do we need the following ? brcmfmac: TWT: Add a new feature source & header file for Target Wake Time Lots of warnings on compile 0204-brcmfmac-TWT-Add-a-new-feature-source-header-file-fo.patch 0205-brcmfmac-TWT-Add-support-to-handle-the-async-TWT-eve.patch 0206-brcmfmac-TWT-create-a-debugfs-file-to-expose-the-TWT.patch 0207-nl80211-Update-IFX-NL80211-Vendor-source-and-header-.patch

Applied manually

0032-brcmfmac-add-54591-PCIE-device.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c

0033-non-upstream-support-DS1-exit-firmware-re-download.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c

0047-brcmfmac-move-firmware-path-to-cypress-folder.patch

0048-brcmfmac-add-support-for-sof-time-stammping-for-tx-p.patch

0051-brcmfmac-add-a-timer-to-read-console-periodically-in.patch

0057-brcmfmac-load-54591-firmware-for-chip-ID-0x4355.patch

0075-brcmfmac-Fix-PCIE-suspend-resume-issue.patch

0082-brcmfmac-add-BT-shared-SDIO-support.patch # New config if you want to use this BRCMFMAC_BT_SHARED_SDIO

0085-brcmfmac-support-43439-Cypress-Vendor-and-Device-ID.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c

0087-brcmfmac-Add-SDIO-verdor-device-id-for-CYW89459-in-h.patch # Mainly include/linux/mmc/sdio_ids.h

0088-brcmfmac-Add-CYW89459-HW-ID-and-modify-sdio-F2-block.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c and drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c

0093-Revert-non-upstream-make-setting-SDIO-workqueue-WQ_H.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h

0097-brcmfmac-use-request_firmware_direct-for-loading-boa.patch

0100-brcmfmac-add-PCIe-mailbox-support-for-core-revision-.patch # Mostly Already in 6.1

0103-brcmfmac-add-support-for-CYW55560-PCIe-chipset.patch

0107-nl80211-add-roaming-offload-support.patch

0115-brcmfmac-add-FW-AP-selection-mod-param.patch

0120-brcmfmac-support-11ax-and-6G-band.patch # warning: unused variable ‘ch’ struct brcmu_chan ch; drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c:1268 Fixed in (0169-brcmfmac-compile-warning-fix.patch)

0127-brcmfmac-report-cqm-rssi-event-based-on-rssi-change-.patch

0138-brcmfmac-update-firmware-loading-name-for-CY5557x.patch

0143-brcmfmac-Implementing-set_bitrate_mask-cfg80211-ops-.patch # error: initialization of ‘int (*)(struc... drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:6627 (ADD: unsigned int link_id)

0147-brcmfmac-add-interface-to-set-bsscolor-for-bring-up-.patch # error: ‘struct cfg80211_ap_settings’ has no member named ‘he_bss_color’. Its now in struct cfg80211_beacon_data *beacon = &settings->beacon;

0169-brcmfmac-compile-warning-fix.patch

0181-brcmfmac-replace-SDIO-function-number-with-definitio.patch

0185-non-upstream-sdio-t-put-tuning.patch

0186-brcmfmac-get-chip-info-from-SDIOD-if-chip-common-spa.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c

0191-brcmfmac-add-protection-for-PCIe-Read-Write-out-of-b.patch

0192-Added-DSCP-to-WMM-UP-mapping.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c

0196-brcmfmac-Add-support-for-ethtool-packet-statistics.patch # Mainly drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c

0197-brcmfmac-Add-55500-chip-support.patch

gibsson commented 1 year ago

Thanks for the PR. Please fixup your last commit with "brcmfmac: load 54591 firmware for chip ID 0x4355" as the issue comes from the manual cherry-pick (see 0057-brcmfmac-load-54591-firmware-for-chip-ID-0x4355.patch). This will fix bisectablility of the branch.

simong01 commented 1 year ago

Well spotted! Fixed now.

gibsson commented 1 year ago

Thanks Simon!