Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2573985lqp; Mon, 25 Mar 2024 03:09:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6EHqsWHyMH2H8JJyvYWfZxmGKXuS8V4gnrAy/OjZ2RvXhqD2EfSt4vfi4cxBHA/3TUaNQ4J2Ix6x1gIz7RPhgy67QhDk9KAzcc3V13w== X-Google-Smtp-Source: AGHT+IHprNy4BiOv7cxJ6Th/zPt2fLVJFTRXDJdopucuUv4zBHC560cq0nXC9NSdMp/Nq2+hwSH1 X-Received: by 2002:a05:6214:250e:b0:696:481a:e2ec with SMTP id gf14-20020a056214250e00b00696481ae2ecmr9541838qvb.22.1711361370935; Mon, 25 Mar 2024 03:09:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361370; cv=pass; d=google.com; s=arc-20160816; b=AzzXboo2pkPzaxxyJGM4UWZSuAzBDfmXWoQYOsVzhWZGJ6Js4UD9UBiG7RzeX4TrmR tRKdxmY78DlVrXbqLrBLKTr7njcCVZH6gaFo/4l8BIfeFydsNgGiHTpe/lfxkNTETsJV 3OyGhWNP5EoO7yofo15EUnxc5tyBOs9CLnxnIzBX+ehiee7IdbRC1x2qxxn+sg+6pJnY GzT1zyk+W5ZR1XSG3Mynoc3BbGOZ/nHz3r+Fjptj0+n6V3X0wMfcwcDvmyyK2g7mvSWe fX9tKP/Mtow7YrZjXpmdc3bCQ3OjdQHJvE2b1ERsgjXzRCZ5AlDoPYJ21KNyRiHH9oTk lB8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=b4nMX+fBLKxJ8GWGVv5O1Tq6OlhgFtXEqZpzVV0qF74=; fh=gNr67fX0k3xGlJjrz3lc/59teyFmdWmYL18Ih3XHXT4=; b=HLX3W5XMKCEnb0rA2fh572TmLnXi0h2ZqYQLrT/PuhPrEwC3PrMl7/cZ7CUL4gGc+W smMr/Ui5tvP1ZQePvLKl5I/Y/fxTjvjPUA5Zs3HK6SMQOzdjhM5y9hPie5Iyt34TGRPX 1m0MkoEmJwIRmtu2ZQU2K6hVXtrrsjEKs9O54OwAR3Al1ci1rF70p1y7ReZiGVszAiMx DAVpSpUhzFYJhhKWiRY+c5igGCVrPOlUWwcQ3KUZyQzr+mHWYiy5fbcOuH9N1YOqjkKk gTTP3Wm5xT8DoK3NjJzfB9t+Jzv56yzj1eBhBSfi41nujxh7SCg4Aq72xZ2F0jM2Tbp3 HHCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ijloQtLL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jz9-20020a0562140e6900b0069682bdee71si3668957qvb.226.2024.03.25.03.09.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ijloQtLL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A65C41C30B98 for ; Mon, 25 Mar 2024 10:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F8CB182F14; Mon, 25 Mar 2024 03:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ijloQtLL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C3372801FC; Sun, 24 Mar 2024 23:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323636; cv=none; b=WaoUS35zjxNMjLSfgQM/gM4UoLXA7N7nCYerJuTV2BVUwGXH4Hq/Z+pvV9LAP2k1q0rvrfILpxeOvkTXxb597XSwsbicos8/hNz7gHo//shK59KNXyOJDwDBEVACMKA6LNoPZT2PIGZllwHxbKn+gdgLcAJvZrO01dj7/1s5mA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323636; c=relaxed/simple; bh=wN9qknYWyXLhykrwy7deV6GMrdHRh+3YLf4iu0Y3Nyo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JWTEi4PahRLQ+lX7WFNLwUf6uyhw/Pw50V+uX3vDS2S5pxakt/MyPiVUWwFSRPNnMjisPd8e9UQln+mtCoCdJGHN91VblnD4yQR9FgR2dsIdigOaqMbV+GqyQGtdd8Fmws/sXAAwmKviB0+PLMfhw3sIlGJ0pyyhHd542YO8umI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ijloQtLL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C9A2C433B1; Sun, 24 Mar 2024 23:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323636; bh=wN9qknYWyXLhykrwy7deV6GMrdHRh+3YLf4iu0Y3Nyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ijloQtLLT4Cc3q8p3gBW47KIf8Wte33UMOZiO/59UWWdbKhwuQq0md7kczOZPOyua P8lKNtPXeoj59GC5uvNrfquXmeXxCIed4OwW/D59r6GNJi2yOcHUXonGjjz6h8KAF/ 1OgKMPs/eErrz2EZqAi//XniZqRV3Wh640DmHU/sJ9+7W6vETOB5IagD04LU0m6plb z6S+Muap1vpGp3tckoGZyeB1PUzGfZWupClH0pDoFp7r3CFP7EY77ZoCwPMt/9BtdN nlLysxNnrP+HQC3JMTU5wycxu4q2AUSTc449Tg/MTXzNlNLFaORqKo3JYWyuI/fJYy GCFXIQgrW8KEQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Mark Brown , Sasha Levin Subject: [PATCH 5.10 007/238] ASoC: rt5645: Make LattePanda board DMI match more precise Date: Sun, 24 Mar 2024 19:36:35 -0400 Message-ID: <20240324234027.1354210-8-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Hans de Goede [ Upstream commit 551539a8606e28cb2a130f8ef3e9834235b456c4 ] The DMI strings used for the LattePanda board DMI quirks are very generic. Using the dmidecode database from https://linux-hardware.org/ shows that the chosen DMI strings also match the following 2 laptops which also have a rt5645 codec: Insignia NS-P11W7100 https://linux-hardware.org/?computer=E092FFF8BA04 Insignia NS-P10W8100 https://linux-hardware.org/?computer=AFB6C0BF7934 All 4 hw revisions of the LattePanda board have "S70CR" in their BIOS version DMI strings: DF-BI-7-S70CR100-* DF-BI-7-S70CR110-* DF-BI-7-S70CR200-* LP-BS-7-S70CR700-* See e.g. https://linux-hardware.org/?computer=D98250A817C0 Add a partial (non exact) DMI match on this string to make the LattePanda board DMI match more precise to avoid false-positive matches. Signed-off-by: Hans de Goede Link: https://msgid.link/r/20240211212736.179605-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5645.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 04457cbed5b4e..5db63ef33f1a2 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3772,6 +3772,16 @@ static const struct dmi_system_id dmi_platform_data[] = { DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), DMI_EXACT_MATCH(DMI_BOARD_VERSION, "Default string"), + /* + * Above strings are too generic, LattePanda BIOS versions for + * all 4 hw revisions are: + * DF-BI-7-S70CR100-* + * DF-BI-7-S70CR110-* + * DF-BI-7-S70CR200-* + * LP-BS-7-S70CR700-* + * Do a partial match for S70CR to avoid false positive matches. + */ + DMI_MATCH(DMI_BIOS_VERSION, "S70CR"), }, .driver_data = (void *)&lattepanda_board_platform_data, }, -- 2.43.0