From patchwork Fri Oct 20 20:59:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 156318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1322026vqb; Fri, 20 Oct 2023 14:02:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFa27IFZaLPqkcBnGkuX1sszflRoFIb+EB6EkFOxH+m+FkLelDfIius6nQfPmeyguCw6GnG X-Received: by 2002:a05:6e02:1ba2:b0:349:296c:9b8a with SMTP id n2-20020a056e021ba200b00349296c9b8amr3029832ili.2.1697835723648; Fri, 20 Oct 2023 14:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697835723; cv=none; d=google.com; s=arc-20160816; b=Z2LUt4k56MEofKHXtSraumekkhBS3GankZG1OQ+oKu1Oyp374Fwn7EBcfO2Y/j0oqK qq6W/jmeWB+VjNVdKcr2zSf0RJE7rSeivo4WB79PnOwU3WtTGkLe8pYwc9s1fJ8LgAtK 7LEwqT7W/DpvCLDW9KTmpwpZzFtsXUM8i3wE1TQdEHPUPYi+h+czMKJnL+acLE69DhR6 1t6Ll6R8AMDg1w37wpJz9ZPyVeNmG16uPPNOc6TkJnv15BZRrvvCo+Kocqlg/RSdCm27 35NFtNGjy9MIcRERUo1nRBFnVxiL4Pzegs9OCeXFCzzl8dgs0C8ZPQHZ5SAoBaNpw0kx 1msQ== 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=yo+YzGcf5ti2JGohRAjm5fHeXV6DLkhxTHbBeTwM3H0=; fh=QTwcjjE1YkAumNHkWExmYLSnRg8mN9we+uTuVRHRaC8=; b=B9SQBj6ZLaEGOu9vPT6pxyCXyts6FkfrjmD25jnVpmFjSqMuffF1rh6dMxIyKi+0nD w7K4RAfCz0G7sg431xK78TuTHH87QH8gyplANOBQ0ITHttgxeeNFf/Pwj04NTvvFGKUO 8TSUfPPQdYbGNZiuXd1T9H9Z85GwgTmtdc4NrNY8PE6QhPhzURHQpcAooSzit60vlkBo mgqEhssEgKrTV+JqsMerPYWwDHC3JnzQyJn4Jq5YidEXdJvYLP3wJsl3kSkeSLTF4b2Z H/vmrRT3U4gihWV0TljGtiLkN4axvnT08y6rEpmfQbmp314esYU8sp2YB0b3QJtzNOMK VuEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MljrZ35f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bu23-20020a632957000000b005b881cc9497si1514925pgb.320.2023.10.20.14.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 14:02:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MljrZ35f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 845D48047DB3; Fri, 20 Oct 2023 14:00:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjJTVAP (ORCPT + 26 others); Fri, 20 Oct 2023 17:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjJTVAO (ORCPT ); Fri, 20 Oct 2023 17:00:14 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F318DD61 for ; Fri, 20 Oct 2023 14:00:07 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7a669a4ec51so43041339f.3 for ; Fri, 20 Oct 2023 14:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1697835607; x=1698440407; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yo+YzGcf5ti2JGohRAjm5fHeXV6DLkhxTHbBeTwM3H0=; b=MljrZ35fuWC/vULrQCsvfEHcgSbKShqFujcpQzw+LM6LYimQz73S2hLDLLswYoQ265 VEeXEhLrQiXDtowKBzqB3sYAPVLuTpW8qnHeOm0fmYReqCkCwLg6/NgolDORzd2GkJgQ 3Ou09kSKdh25ZajWZz9RttoxC0oTGc9O5WgTg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697835607; x=1698440407; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yo+YzGcf5ti2JGohRAjm5fHeXV6DLkhxTHbBeTwM3H0=; b=qR+YyFkXV0BwHDUZhmlZ9IZplcVcsUqZS7zDCsV6L0MEbgL2GzZRg2ZlY4gsAB29BP 4c5VSHti4fSHSgNWVrdKag5MjLy16DE62D2pCejl80hi4frlTAaGP8uNSvsboTq2niZN MkeHqlnHgxV57VpR2xARNqnt8yDvmuB1kzrACYPRphQXMMG+25C6NGKhOSc7QnI1IR+e fnLfnfP2bmyB85saiYbfc7rV3YNGnRJia7+0abylCpnqfJaPe8k0xIxRz96y4y/4jcgH TmuFqjDO1UQ/QrnNE68dvFcvT8wH+k+OGGT5YtX14bp9vsNOctllXJBkiuIw64KhJXz5 PbwA== X-Gm-Message-State: AOJu0Yz7GaZ8qf7YgPH4tijlRiOm1u83JwczNTjqIztv1E/kiFDRGBiO jnNUlksPN2L8ZM48GaXnVgi4+kHLGfTeg/tzHts= X-Received: by 2002:a05:6602:1355:b0:7a2:a6db:9a58 with SMTP id i21-20020a056602135500b007a2a6db9a58mr3565751iov.15.1697835607174; Fri, 20 Oct 2023 14:00:07 -0700 (PDT) Received: from markhas1.lan (71-218-45-6.hlrn.qwest.net. [71.218.45.6]) by smtp.gmail.com with ESMTPSA id y127-20020a6bc885000000b0076373f90e46sm850966iof.33.2023.10.20.14.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 14:00:06 -0700 (PDT) From: Mark Hasemeyer To: LKML Cc: Curtis Malainey , Mark Hasemeyer , stable@vger.kernel.org, Bard Liao , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Takashi Iwai , alsa-devel@alsa-project.org, sound-open-firmware@alsa-project.org Subject: [PATCH v1] ALSA: SOF: sof-pci-dev: Fix community key quirk detection Date: Fri, 20 Oct 2023 14:59:53 -0600 Message-ID: <20231020145953.v1.1.Iaf5702dc3f8af0fd2f81a22ba2da1a5e15b3604c@changeid> X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 14:00:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780309791685801952 X-GMAIL-MSGID: 1780309791685801952 Some Chromebooks do not populate the product family DMI value resulting in firmware load failures. Add another quirk detection entry that looks for "Google" in the BIOS version. Theoretically, PRODUCT_FAMILY could be replaced with BIOS_VERSION, but it is left as a quirk to be conservative. Cc: stable@vger.kernel.org Signed-off-by: Mark Hasemeyer Acked-by: Curtis Malainey Acked-by: Pierre-Louis Bossart --- sound/soc/sof/sof-pci-dev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c index 1d706490588e..64b326e3ef85 100644 --- a/sound/soc/sof/sof-pci-dev.c +++ b/sound/soc/sof/sof-pci-dev.c @@ -145,6 +145,13 @@ static const struct dmi_system_id community_key_platforms[] = { DMI_MATCH(DMI_PRODUCT_FAMILY, "Google"), } }, + { + .ident = "Google firmware", + .callback = chromebook_use_community_key, + .matches = { + DMI_MATCH(DMI_BIOS_VERSION, "Google"), + } + }, {}, };