Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3240034pxp; Mon, 14 Mar 2022 14:14:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRGhFMN2bumpEyFGdwe2E0Fy8iWMhfXWC0IQNzcRh8WRInshO6klJAsGUw7lAOKArZhJMv X-Received: by 2002:aa7:c4cd:0:b0:418:7c2b:e1c8 with SMTP id p13-20020aa7c4cd000000b004187c2be1c8mr7599500edr.4.1647292498411; Mon, 14 Mar 2022 14:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647292498; cv=none; d=google.com; s=arc-20160816; b=aEr9euXViJKW0xFvY5AssWp8Vw2cXcDvwazmb/FkqgendqNmZq/AuJ2A8Ght41JJLa Y0GSJCZQad4jmDKYYj0jxqhAoEw8p5nkc38cXqtJXdJRGSolv9z67TG/f2NjPOOstANI Z1n/3ggxhcfbi3q4Ma/BF14r4v3vS35WLCRTW4VslnrqbqT2jLD+vm96B0mkr9yDzly5 6Qh/noIjLH/z/3zGxYtlBb8Auid66AcjTVPK/anlnfkGY16FVu/44xIjjJjLB2iKJ5Mw VenTtQenyBWTWWxv3mDrA/TkTLXFqVhneqK8FTEnLudsOnmO/XVsZH+59yexC1GjdAmz wJJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=G3Gr+KJIocCOdh8fIzMjCNwelvZKEGLwNFGEbdsphFQ=; b=zhqdkYr9J0ueaEx8kD4BjgWK3VN9zhWAyVVS1AbozpefiiSzPmLfsb1j7L6odfCOhx M9dVdzzjdUaG1Q+2s+Ws9+IlZp82MEC61409EJ2jo2ceHKlH9IxhLO2MVuIH+7ybUh1Z lHxuq0PA59bZM7+m9GFoGpPJZe38TlSXqpinXTh6taCsfyna+Jg6FK7q3opUIdmEzVoP 65m9ruQDMPuQ8ufJDfmNTjgtXZX5tlFUuoJIIgTx6nIb9NYS6ZssyWZ+cso4aAE+qapp PGgsNLM0mm9Y55o/jJiVBecbS2ch4UmJcvX7I142UXobzxddxJoxfZ+3Sh+Lo45wlVEO tDwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a1709061ba100b006d07f388e25si10049144ejg.908.2022.03.14.14.14.14; Mon, 14 Mar 2022 14:14:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235572AbiCNPWj convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Mar 2022 11:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239722AbiCNPWg (ORCPT ); Mon, 14 Mar 2022 11:22:36 -0400 Received: from mail.holtmann.org (coyote.holtmann.net [212.227.132.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 22FE8140F1; Mon, 14 Mar 2022 08:21:25 -0700 (PDT) Received: from smtpclient.apple (p5b3d2183.dip0.t-ipconnect.de [91.61.33.131]) by mail.holtmann.org (Postfix) with ESMTPSA id 3F406CECC5; Mon, 14 Mar 2022 16:21:24 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: [PATCH] Bluetooth: btrtl: btmrvl: Fix firmware filename for rtl chipset From: Marcel Holtmann In-Reply-To: <20220311032620.28362-1-tangmeng@uniontech.com> Date: Mon, 14 Mar 2022 16:21:23 +0100 Cc: Johan Hedberg , Luiz Augusto von Dentz , BlueZ , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <6FCDA0C9-59CD-44F1-B31A-27DDB7FB8D25@holtmann.org> References: <20220311032620.28362-1-tangmeng@uniontech.com> To: Meng Tang X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Hi Meng, > Firmware for rtl chipset is as part of the linux-firmware repository > in dir linux-firmware/rtl_bt. Today, the rtl8761a_config, > rtl8821a_config, rtl8723b_config and rtl8723bs_config files are used > in btrtl, but it doesn't actually exist, which causes errors like: > > bluetooth: Direct firmware load for rtl_bt/rtl8821a_config.bin > failed with error -2 > > According to the files in the rtl_bt directory in the Linux firmware, > fixes the driver to load correct firmware file for rtl. > > Signed-off-by: Meng Tang > --- > drivers/bluetooth/btrtl.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c > index c2030f7e25b4..e3cfe0dff07d 100644 > --- a/drivers/bluetooth/btrtl.c > +++ b/drivers/bluetooth/btrtl.c > @@ -88,14 +88,14 @@ 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 not explained. > > /* 8723B */ > { IC_INFO(RTL_ROM_LMP_8723B, 0xb, 0x6, HCI_USB), > .config_needed = false, > .has_rom_version = true, > .fw_name = "rtl_bt/rtl8723b_fw.bin", > - .cfg_name = "rtl_bt/rtl8723b_config" }, > + .cfg_name = NULL }, .config_needed is set to false. Then we better use a request_firmware version where the existence of the file is optional. And even if we wanted to remove it (which would make the .config_needed obsolute), we are not doing a NULL assignment, we just remove the line. > > /* 8723D */ > { IC_INFO(RTL_ROM_LMP_8723B, 0xd, 0x8, HCI_USB), > @@ -116,7 +116,7 @@ static const struct id_table ic_id_table[] = { > .config_needed = false, > .has_rom_version = true, > .fw_name = "rtl_bt/rtl8821a_fw.bin", > - .cfg_name = "rtl_bt/rtl8821a_config" }, > + .cfg_name = NULL }, > > /* 8821C */ > { IC_INFO(RTL_ROM_LMP_8821A, 0xc, 0x8, HCI_USB), > @@ -131,7 +131,7 @@ static const struct id_table ic_id_table[] = { > .config_needed = false, > .has_rom_version = true, > .fw_name = "rtl_bt/rtl8761a_fw.bin", > - .cfg_name = "rtl_bt/rtl8761a_config" }, > + .cfg_name = NULL }, > > /* 8761B */ > { IC_INFO(RTL_ROM_LMP_8761A, 0xb, 0xa, HCI_UART), > @@ -921,15 +921,12 @@ MODULE_VERSION(VERSION); > MODULE_LICENSE("GPL"); > MODULE_FIRMWARE("rtl_bt/rtl8723a_fw.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8723b_fw.bin"); > -MODULE_FIRMWARE("rtl_bt/rtl8723b_config.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8723bs_fw.bin"); > -MODULE_FIRMWARE("rtl_bt/rtl8723bs_config.bin"); > +MODULE_FIRMWARE("rtl_bt/rtl8723bs_config-OBDA8723.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8723ds_fw.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8723ds_config.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8761a_fw.bin"); > -MODULE_FIRMWARE("rtl_bt/rtl8761a_config.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8821a_fw.bin"); > -MODULE_FIRMWARE("rtl_bt/rtl8821a_config.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8822b_fw.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8822b_config.bin"); > MODULE_FIRMWARE("rtl_bt/rtl8852au_fw.bin"); Regards Marcel