Andrejs Cainikovs <andrejs.cainikovs@xxxxxxxxxxx> wrote: > Some WiFi/Bluetooth modules might have different host connection > options, allowing to either use SDIO for both WiFi and Bluetooth, > or SDIO for WiFi and UART for Bluetooth. It is possible to detect > whether a module has SDIO-SDIO or SDIO-UART connection by reading > its host strap register. > > This change introduces a way to automatically select appropriate > firmware depending of the connection method, and removes a need > of symlinking or overwriting the original firmware file with a > required one. > > Host strap register used in this commit comes from the NXP driver [1] > hosted at Code Aurora. > > [1] https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_sdio_mmc.c?h=rel_imx_5.4.70_2.3.2&id=688b67b2c7220b01521ffe560da7eee33042c7bd#n1274 > > Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@xxxxxxxxxxx> > Reviewed-by: Alvin Šipraga <alsi@xxxxxxxxxxxxxxx> 2 patches applied to wireless-next.git, thanks. 255ca28a659d mwifiex: Select firmware based on strapping 562354ab9f0a mwifiex: Add SD8997 SDIO-UART firmware -- https://patchwork.kernel.org/project/linux-wireless/patch/20220422090313.125857-2-andrejs.cainikovs@xxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches