Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4419253ioa; Wed, 27 Apr 2022 03:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy606vtYF1XO/HPyIZBmfkImGtfd8WQ1qAXpIQ25032nccE/r7thRq3X08wEEHJrCncp8nW X-Received: by 2002:a63:f156:0:b0:3ab:ada6:b463 with SMTP id o22-20020a63f156000000b003abada6b463mr4141479pgk.462.1651055547844; Wed, 27 Apr 2022 03:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055547; cv=none; d=google.com; s=arc-20160816; b=TuFhN431dE0LjPzSBwU55S1XUUE1pPHswDa8ve6OaMGf1NnnIBStRrpQnbOBYqaPBj 7dcyEOVjZQF34e5VbP9nLVriVYEXriArz39h8G39DX4NVwSGGYIxlKA9gIuC9YZ5R8Nu RLar21jVytOHYaSzFBIE1l3po6EpuEczysCu392zKeZlir6GMn5KG99IKabA9NNHohSw vMYXsg6ybCfSr6VC//+uOL5cDBLE0EQuF9l2bn5d0DCMNOA8TyDMMt8ElnY4UAJbka+I vYMtiuc2lBG6PkL36pEvKukoCZrBbQ1wcJ7HoOVdz7OYkSioHVO0uZri/aqsRpr+uzcJ MvpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=8vbQC62YoGSjg5hLO+INp93MzxYgtsFFtsT6v6vD4LQ=; b=Vn/GxC+HZrdisX921+q9YgD37Xk8+VKSA4U3TDsyJ9LD0TusFZGkN96sjcLRqGQJd1 a9JKSe9P217u9nj1W5uZadhYOwk/NozvHz/kQDahe0wIa6YA18fiCG/9WZwJmlP7u72K ZxglJt+m7f6CYXeIHL8HvvipLZsD9FH2nMSFLvD34yFg8XUUFnX0T/30wyj1MtjuqDlB 8R0xkMcluf2pIr/CC7gv//wn3QjmqlYbfvpqxBjLzsAeFOhcJIx918rPtny8j+NUM2U8 h3jKTVHgjqQdbmeD71pL1CkmUHYIhsqqbfQlSF6xvXp07bGn/fXJ03ClYyoB89368y1F ITjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hDBgYSpO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y30-20020a056a001c9e00b0050d1fafc70csi1042251pfw.166.2022.04.27.03.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hDBgYSpO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B08553B1C77; Wed, 27 Apr 2022 02:46:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357747AbiD0FAF (ORCPT + 67 others); Wed, 27 Apr 2022 01:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238018AbiD0E77 (ORCPT ); Wed, 27 Apr 2022 00:59:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE3619036; Tue, 26 Apr 2022 21:56:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 49F7F612CC; Wed, 27 Apr 2022 04:56:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6114C385A7; Wed, 27 Apr 2022 04:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651035407; bh=MSFzUcRNg3RCAc6GuNvEe9PTcE9/ik3gOrUQlBnl3Oc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=hDBgYSpOPGO1mvQEty7EQ6hDFRPKePqy5hTQwmBE79HBmebBxT+qsgG/SI9sNK66G U57BkaZWVMTByMSWob7ynnUuY5iTx/sU/VmVH/iFInXNe9Xv9eBPgB3pcleUNM+iLk xiKdTXVlM4hVyxJijKlKuFfpeLC78tRKX8tyIX+neKe6EX7m3Z+UFeLm3xCFGTIgHc D7XIpXBlKCHfurXuOBtGnB7KLYUsc6yTt2ZKqJr+K6NELlauUSt6GQFEPDapxR6Z0T BTLq41j4g5Kevui6Wz6LmDuoo0Dg27jTZxd/HagpWKqohaJMqwgdTHGEQw5kzozBmP yuVfIM2oi2oAw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2 1/2] mwifiex: Select firmware based on strapping From: Kalle Valo In-Reply-To: <20220422090313.125857-2-andrejs.cainikovs@toradex.com> References: <20220422090313.125857-2-andrejs.cainikovs@toradex.com> To: Andrejs Cainikovs Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , Andrejs Cainikovs , "David S . Miller" , Jakub Kicinski , Brian Norris , =?utf-8?q?Jonas_Dre=C3=9Fler?= , =?utf-8?q?Alvin_=C5=A0ipra?= =?utf-8?q?ga?= , Francesco Dolcini , netdev@vger.kernel.org User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165103540307.18987.14473216112376027379.kvalo@kernel.org> Date: Wed, 27 Apr 2022 04:56:44 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Andrejs Cainikovs 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 > Reviewed-by: Alvin Šipraga 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@toradex.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches