Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp844297pxp; Wed, 16 Mar 2022 18:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVqNC/eyCj1nqBTGVA5cqW8ToccmRLZQTNtfMjTozwyBpO3oJ8iRWY+Tj4XsExyFL2oqCr X-Received: by 2002:a17:907:7e86:b0:6df:939a:81e3 with SMTP id qb6-20020a1709077e8600b006df939a81e3mr654353ejc.323.1647481859368; Wed, 16 Mar 2022 18:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647481859; cv=none; d=google.com; s=arc-20160816; b=BnpvOCT5KmPADwXeT9rdyG49WkU8acvMkHcBV7RJ/YGmpxl/1BNw/bSZmEYTnHuOuf pHDt7j5OcB73BY4zK1f7uFF2XVcypyazNepicrudYSakqVexXrNBNre5P3eZQvKgSftU tFQCKAKpGFW0DJNEGn2dxl4OdJwe7qjeST9NSpUjr33cmQUQx+E3quV7Gyw3m1id4RYE EpNDZVgYdDLqoKVKj6IW44bLT71w/TmyAMKJ6snJdKm0L2B2A+fMO9Zb0GmhMuDPi03g oiP2SS2QLhFTvgw2VMXFpSROKeCMS8RQ6/0Hv3m/nsTdBH8QxWQ0LXgLaJwymw+V4Y+K fvIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Euhy+u3ZvFRmOyJITc3F/l6IY1RO55ftFt7yfjZpi7Y=; b=Fju8x2oQbMafwxlsRU2e6BTXBWBcPI1ngqw1PK6w9uR0SHiVqxk1lZMZc+J4kA0sj3 UV/K+YDd/kyPk7gSUxFY38IOEMs7oICZOHa4HmZkjZCIWRkRKjWJigcBULssJC2P+tKi 7vZNxsRy52KDxkHAuY7RsgIDf87ljPKH9RZ7B53ZKSF5U8rkAFGKt53ikr8o1u05IpiZ LCMltr7vyfF2Tnqkv04saxeqxjLNQCUcR8SZunsIEP1HrjQaekS7yiub4+S1xOm99nB7 lrAEMEbb0G9NP/UMxMjO+P3JMTWBn+wah6AgtYfj4mFyJaXGLrsjZA7kDFMxr3/lzKeL RLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=CeOURO41; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170906768500b006d05aff0233si2162402ejm.617.2022.03.16.18.50.19; Wed, 16 Mar 2022 18:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=CeOURO41; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236306AbiCOSvZ (ORCPT + 99 others); Tue, 15 Mar 2022 14:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbiCOSvZ (ORCPT ); Tue, 15 Mar 2022 14:51:25 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC1556C3B for ; Tue, 15 Mar 2022 11:50:12 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id w4so5288edc.7 for ; Tue, 15 Mar 2022 11:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Euhy+u3ZvFRmOyJITc3F/l6IY1RO55ftFt7yfjZpi7Y=; b=CeOURO41HT7gHWQ7A9UL0rcVtX6vK+nYh39avpy8ns7jU/k4BjiBSut0ZEMRAb7cOX SAOfUFwFjpmvqmcuKgxU/EqWIKdam/7bVZMorkHMk3dJxXqeW7AyOayKwJzSIana98wT A3oJWDRgYc9ikBuWp7QyNASt4AhhR724/D+IuRqOxIdgmDVVFIeWj92MjGB9ywDY/rTM bMRUwy+8Jlqj0yTzoIQho8qKaN3zxb/Q8EhEx2H58EHBwojyXyKi6O4DO3iPk483e2o1 LPu55R7sprLc/WE7fkjF0B/bzB6VyI0groqb4r1WILO6U0L688PjCMe+WBbirdRyzysI h5MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Euhy+u3ZvFRmOyJITc3F/l6IY1RO55ftFt7yfjZpi7Y=; b=ZGrYsJW8KGqfIFD0JJ1GiLb63kAb0kQOIVtddJ9ERkX4vohq+LQECck/cnrPknB3ak kw/HheiExo9ij+5ngkA5j1D5WtmMNllva0KebozbJiSaxg35++4b/qsvCVEO8FXwxycI MCoVvqxceflwxMlKnhbvkSJVR6pvGlBZEdC9HJ76j2fYXAA/pbMNxTt7YV6km0qhc+2O Owx4ljTihmTdNoWAFq47aKoJiv5Txw/0plaVx6+YemMqNYx1nbmT4OTvZLuCa336pASG vxjJCDN0wK8R6SqUMfS+yzTcNS1tpbV5+WBX1jUzwwIlIG7wi8A8Qbu5xIkJBcJWyJcL WaUw== X-Gm-Message-State: AOAM5309HBV24OJNsZ0q5V6tJwwkBqaYWSGWwXscyop53HfvXO+bSsnK MyO8RbMSHrhzyk9Qw8Ip8wkhS7LfoSKPevKPaPgOYFyVHfo= X-Received: by 2002:a50:bac5:0:b0:416:4651:7782 with SMTP id x63-20020a50bac5000000b0041646517782mr26018190ede.219.1647370210871; Tue, 15 Mar 2022 11:50:10 -0700 (PDT) MIME-Version: 1.0 References: <20220315095129.15254-1-tangmeng@uniontech.com> In-Reply-To: <20220315095129.15254-1-tangmeng@uniontech.com> From: Martin Blumenstingl Date: Tue, 15 Mar 2022 19:49:59 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] Bluetooth: btrtl: btmrvl: Fix firmware filename for rtl8723bs chipset To: Meng Tang Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-bluetooth@vger.kernel.org Hello, On Tue, Mar 15, 2022 at 10:51 AM Meng Tang wrote: > > Firmware for rtl8723bs chipset is as part of the linux-firmware > repository in filename rtl8723bs_config-OBDA8723.bin. > > This patch fixes mwifiex driver to load correct firmware file for > rtl8723bs. This raises some serious questions for me: - the subject states that this patch is for the btmrvl driver - mwifiex is for Marvell based chips which to my knowledge are not related to any Realtek chips, so mwifiex should never try to load Realtek firmware files [...] > @@ -88,7 +88,7 @@ static const struct id_table ic_id_table[] = { > .config_needed = true, > .has_rom_version = true, > .fw_name = "rtl_bt/rtl8723bs_fw.bin", > - .cfg_name = "rtl_bt/rtl8723bs_config" }, > + .cfg_name = "rtl_bt/rtl8723bs_config-OBDA8723" }, This change is incorrect, see btrtl_initialize(): if (btrtl_dev->ic_info->cfg_name) { if (postfix) { snprintf(cfg_name, sizeof(cfg_name), "%s-%s.bin", btrtl_dev->ic_info->cfg_name, postfix); } else { snprintf(cfg_name, sizeof(cfg_name), "%s.bin", btrtl_dev->ic_info->cfg_name); This suffix (postfix) can be either OBDA8723, OBDA0623 or just be absent - see hci_h5.c (h5_acpi_match, h5_serdev_probe() which sets h5->id and h5_btrtl_setup() which uses h5->id). [...] > -MODULE_FIRMWARE("rtl_bt/rtl8723bs_config.bin"); > +MODULE_FIRMWARE("rtl_bt/rtl8723bs_config-OBDA8723.bin"); According to the driver code "rtl_bt/rtl8723bs_config.bin" is a valid value so I think it should not be removed. Adding "rtl_bt/rtl8723bs_config-OBDA8723.bin" is fine for me - if that's done then "rtl_bt/rtl8723bs_config-OBDA0623.bin" should be added as well. Best regards, Martin