Received: by 2002:a05:6a10:eb0a:0:0:0:0 with SMTP id hx10csp1919120pxb; Thu, 10 Mar 2022 20:31:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrpToBL1UWulsLnWcIdncmaXu1GwhvjL0rTsBfKh+GcF0e/7xNQ984we6g2zhdGY2ysYuJ X-Received: by 2002:a17:906:d554:b0:6da:8a8e:2f2 with SMTP id cr20-20020a170906d55400b006da8a8e02f2mr7027294ejc.434.1646973100862; Thu, 10 Mar 2022 20:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646973100; cv=none; d=google.com; s=arc-20160816; b=n3vzFq+QDeIS4ASeNIUKA6bzaSWRY8/+RKvPTsbeGDIIwhfDs1pDQ0ZSbBzGSN9g5T xcJkT/RJXtMKjbXv6heSFKYzFYE9yQv7kyFOpw/LvtYHPzfruyEwIQqm1pU3QDUOQ06H 0oLqDqnZzPBrUEOebPyqHK8tiTiNlqNZnS2fnz/LcQR3uNCt1mkELZbfHHF+SurIwTkp dZTabXv6Oe5/7R9W5WaPrlF6cGEEVZe3i8RhIXis739gPgl+AYs0+vnjTPfRjRZIxkKI ZC0Il8YdESXWtELpf69VF/CllBl2PpXdkN+yLpDxSkPdylFBeedMqKTYUBATWd+dXMwG Q8MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=s03Zvz/3tpsX8t4sXfVvFCdnfbfhkd3UhQgJ2925gto=; b=yj5P+x31wQpneW1h4Q8+JhEwo4HCDidUvNbuBJ9nQS0SJLtIVT0auqVtoD0+NLYU6t vjKzWFLGGUuW1//lZXuBPL5Eth4vH1WYqSAE2httIo5wZSvFJmdU+5j4C6SRmgVKBGJ8 L6y+1bNHOrQ2WRl+I9tliHbYH6o9gywZa7aF7/76sW+M5D/B+0BsPzaHBfs4++UgvlEB 6JYwLcoVYPYuKpmP9U60lafPmtppkr5A76OEwMQtyJ+gX0cgbDReXmgKzBb5qhsAuO5Z rpA2L75DL3KLqyhDDPWSwNEL53zXPL6VH6ndWEy1RJFtmeSvcXdMy+IY8/AW4COU36jq 35mg== 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 he37-20020a1709073da500b006db0a5bddcdsi5050885ejc.543.2022.03.10.20.30.17; Thu, 10 Mar 2022 20:31:40 -0800 (PST) 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 S237030AbiCKCTb (ORCPT + 99 others); Thu, 10 Mar 2022 21:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345615AbiCKCTa (ORCPT ); Thu, 10 Mar 2022 21:19:30 -0500 Received: from smtpproxy21.qq.com (smtpbg701.qq.com [203.205.195.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D5A3E4D14 for ; Thu, 10 Mar 2022 18:18:27 -0800 (PST) X-QQ-mid: bizesmtp69t1646965078ti4250p1 Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 11 Mar 2022 10:17:51 +0800 (CST) X-QQ-SSF: 01400000002000C0H000B00A0000000 X-QQ-FEAT: 0Mv5E39fBgZJWkMX5kM5Y8J2ER76W0t/aUWrYFb8CUB+PVKoLkyYMz1zg3Jme GFCmFhH9lUK8E8FxDRQFaYd+5s4MWfMF5UuGCvcOe4DY4nWDyZjllk/XN46sTOKFcGpZIsg M7pX58nnsj8AHLPbAmXvVfTFFOwSn/OzJasq9egOA1F+YUlvnSV+ldrAO0TBrbj99DI/uoY MibaaDVRuk7Tf8rkdKtDA4iMm6GTC39zUJabTk4pTq9ygt6OkMJ/zoTsZxftHC0fIWjdgcY J3KshvbISZK8Cwl7MMzjrA3OnL73k8oqCTTfDRfYrhdbXID9IRRytFbEkB+Eu0zA8EXThQV 9BaOdlU6s1vQ23s9oVXg7I5ZB4IzB4YHjG2Gu1V X-QQ-GoodBg: 2 From: Meng Tang To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Meng Tang Subject: [PATCH] Bluetooth: btrtl: btmrvl: Fix firmware filename for rtl chipset Date: Fri, 11 Mar 2022 10:17:50 +0800 Message-Id: <20220311021750.24021-1-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-bluetooth@vger.kernel.org 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 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index c2030f7e25b4..c10e07ad2fa3 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" }, /* 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 }, /* 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), @@ -184,7 +184,7 @@ static const struct id_table ic_id_table[] = { { IC_INFO(RTL_ROM_LMP_8852A, 0xa, 0xb, HCI_USB), .config_needed = false, .has_rom_version = true, - .has_msft_ext = true, + n.has_msft_ext = true, .fw_name = "rtl_bt/rtl8852au_fw.bin", .cfg_name = "rtl_bt/rtl8852au_config" }, }; @@ -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"); -- 2.20.1