Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2765187iob; Mon, 16 May 2022 05:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4VgVt8fUFYcNbJnDR3LCDPfTGn8LTI4AkazSk1RpTDb1v232UOWINJwBxb6gan527QgNO X-Received: by 2002:a17:907:3e90:b0:6f7:f63:78b6 with SMTP id hs16-20020a1709073e9000b006f70f6378b6mr15061676ejc.3.1652705723000; Mon, 16 May 2022 05:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652705722; cv=none; d=google.com; s=arc-20160816; b=XE5S9AksdVDP5Q5bhH5oieHzJnlYOES8wZoHCJhrB3Ur85ABc5N2LhU1Jt5lQMlSIX yqKkfarSG9AB1N1F2vOLdnANNXOnvYvdJlhg1NLNizqf+qdbfwrysBV7GhMPxSy9RVkO weCrTWdq8rKQBpfMBDv9RPb6aLLzYIXl3tAikmBYFf1g5bnayYryMXR0sPAjH+CbCPoa OSonXxm9FUnx5Vs3kB0tjm3k/lbgnduAjm/eIO1RchOAHinl6doOdOvxC/UU4fvVHkzr 92YkQQvF4c3MdfQmJIWxODrsosv4SxEM4KWtp2ZKts8nmGFpuia/7aFj1KqEC5cZ+gY4 SHQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TUibuYqafZinFeGpIWxhluJu+JS1ezOTLiTJU5+HIcw=; b=dhV1SHhOdlH0owcXwdZOHJM1PQiWno8kyu/IoNEqGtGAKkWQH+tqrIbGZyuGLbD/AG GTOWryHGRJS9VXntLIZ49FFOtryik/Pay2pFyDQ1oeT6btLdl5cvFo7cyq3dmHtypAFs IKLjqMYS/7qtuwhM6UgkPFDgKyLQsO9VProqULIpVsl5OP9BSHSyxyrgdOc9vawn8o62 hYZgIUkDz1plkowrUkfAzKNpGhjHt2Q9GXw4hkfyBf6bXPQN7URB42tF6CU8+WErT55q TdZqpC7MkT8ovaFJd18ToYBgugs6WTACOWMR2FslSMJc7mTiWnurc6d+hPgwdvDpIQL9 gJBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="X0r3/+eY"; 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=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a50a40c000000b0041e4c76fecfsi10626992edb.555.2022.05.16.05.54.44; Mon, 16 May 2022 05:55:22 -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=@canonical.com header.s=20210705 header.b="X0r3/+eY"; 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=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234217AbiEPKdy (ORCPT + 99 others); Mon, 16 May 2022 06:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239845AbiEPKdr (ORCPT ); Mon, 16 May 2022 06:33:47 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 248A01C934 for ; Mon, 16 May 2022 03:33:45 -0700 (PDT) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 11F453F21D for ; Mon, 16 May 2022 10:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1652697223; bh=TUibuYqafZinFeGpIWxhluJu+JS1ezOTLiTJU5+HIcw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=X0r3/+eYktM99g4TBpwyQzNVctB1jyt/CTEbYjUI9NbgA9tZdj13e+geAbS0MCTh4 M4A5pzuSSbm7eZS/QVb/squwCFttFKQGtUBUop59aFsG1Zzgj54PdfgowXlG3of5VM I5xxb2dXF6GsqnVmryI5rF1jNoE9sGrNp39/2JUHCDjV/xV9iZw21kypfKnrcvdd4B OXQFvctLP9UkCn+/+VjTmJw3aBqBGEbwtXqMLs2krn9TZHnKZyjmkp978y39d/MLm4 SM4NGWD3frtLeIGUJCae41Bat7aGJ7qdeCap5lf10+T5w4eHqYE/R7CVAaAnii6z5p 3JYuVhmgIU9Gg== Received: by mail-wm1-f72.google.com with SMTP id z23-20020a05600c221700b003942fd37764so10131216wml.8 for ; Mon, 16 May 2022 03:33:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TUibuYqafZinFeGpIWxhluJu+JS1ezOTLiTJU5+HIcw=; b=Eo9Eb0V1BZfN4ECuBnYBvTE5B6ZsWyTPBW6fEjD7n9yQgt4c+ehi1GYXlQpkgmXqoQ e/WGuCcaxYx38etYVOMXgyT6DZaoQP4lo5Q4Sj43oK9LwD6E0Wyf+ucczV2ScqZrUzrD HMq+eNLUdP5GmmZWdD0iDAHZUTtEBmuzu0s8xFDcvnzVCz1v2YvE/TDhBbwp+qKfE92s uOufExbmtDPQyIfEHD6trjungg7WNnRbpD+d5PW7655LzvuOQOgglBGXHm2Fz3lF9tsr i/E3iUwp2Lubb3cyyhbtu12OfVyg8GYXXEyILiH912I5v9Yc/Ch7EMnPeV+FPN+0UHW5 SB9g== X-Gm-Message-State: AOAM530uoaJt/tPHiAGEi4wW+eGrHPKr3CEwQ9ZbZqjy1rQqEeQEskfC N8hhTBxIvXsqsnKaAQAaj0Opmf96rBSPaQ1tDXj2WdV+KRHtRbnLeD1mfwBnbDC4Z943fivVUzb u3sTy4Vuz22l5kiGFXyoJPzoEpCgg9JPdbuKxYhBpasOOyg== X-Received: by 2002:a7b:cb86:0:b0:394:5d8c:2e7f with SMTP id m6-20020a7bcb86000000b003945d8c2e7fmr9436169wmi.12.1652697222606; Mon, 16 May 2022 03:33:42 -0700 (PDT) X-Received: by 2002:a7b:cb86:0:b0:394:5d8c:2e7f with SMTP id m6-20020a7bcb86000000b003945d8c2e7fmr9436159wmi.12.1652697222385; Mon, 16 May 2022 03:33:42 -0700 (PDT) Received: from localhost ([2a01:4b00:85fd:d700:83e2:e0d8:37ed:a918]) by smtp.gmail.com with ESMTPSA id a4-20020a05600c348400b003942a244ec4sm9810296wmq.9.2022.05.16.03.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 03:33:41 -0700 (PDT) From: Dimitri John Ledkov To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] Bluetooth: btintel: Correctly declare all module firmware files Date: Mon, 16 May 2022 11:33:29 +0100 Message-Id: <20220516103329.516952-1-dimitri.ledkov@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Strictly encode patterns of supported hw_variants of firmware files the kernel driver supports requesting. This now includes many missing and previously undeclared module firmware files for 0x07, 0x08, 0x11-0x14 hw_variants. This especially affects environments that only install firmware files declared and referenced by the kernel modules. In such environments, only the declared firmware files are copied resulting in most Intel Bluetooth devices not working. I.e. host-only dracut-install initrds, or Ubuntu Core kernel snaps. BugLink: https://bugs.launchpad.net/bugs/1970819 Signed-off-by: Dimitri John Ledkov --- Changes since v1: - encode strict patterns of supported firmware files for each of the supported hw_variant generations. v1 submission link https://lore.kernel.org/linux-bluetooth/20220509163259.1513242-1-dimitri.ledkov@canonical.com/ drivers/bluetooth/btintel.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index 06514ed66022..17022758b5bd 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -2654,7 +2654,22 @@ MODULE_AUTHOR("Marcel Holtmann "); MODULE_DESCRIPTION("Bluetooth support for Intel devices ver " VERSION); MODULE_VERSION(VERSION); MODULE_LICENSE("GPL"); -MODULE_FIRMWARE("intel/ibt-11-5.sfi"); -MODULE_FIRMWARE("intel/ibt-11-5.ddc"); -MODULE_FIRMWARE("intel/ibt-12-16.sfi"); -MODULE_FIRMWARE("intel/ibt-12-16.ddc"); +/* hw_variant 0x07 0x08 */ +MODULE_FIRMWARE("intel/ibt-hw-37.7.*-fw-*.*.*.*.*.bseq"); +MODULE_FIRMWARE("intel/ibt-hw-37.7.bseq"); +MODULE_FIRMWARE("intel/ibt-hw-37.8.*-fw-*.*.*.*.*.bseq"); +MODULE_FIRMWARE("intel/ibt-hw-37.8.bseq"); +/* hw_variant 0x0b 0x0c */ +MODULE_FIRMWARE("intel/ibt-11-*.sfi"); +MODULE_FIRMWARE("intel/ibt-12-*.sfi"); +MODULE_FIRMWARE("intel/ibt-11-*.ddc"); +MODULE_FIRMWARE("intel/ibt-12-*.ddc"); +/* hw_variant 0x11 0x12 0x13 0x14 */ +MODULE_FIRMWARE("intel/ibt-17-*-*.sfi"); +MODULE_FIRMWARE("intel/ibt-18-*-*.sfi"); +MODULE_FIRMWARE("intel/ibt-19-*-*.sfi"); +MODULE_FIRMWARE("intel/ibt-20-*-*.sfi"); +MODULE_FIRMWARE("intel/ibt-17-*-*.ddc"); +MODULE_FIRMWARE("intel/ibt-18-*-*.ddc"); +MODULE_FIRMWARE("intel/ibt-19-*-*.ddc"); +MODULE_FIRMWARE("intel/ibt-20-*-*.ddc"); -- 2.32.0