Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp532401lqb; Thu, 29 Feb 2024 07:52:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5df6exeaXRR3CaUzwX3i4MSEEMnCqy9QuZkymFWzyqU+o4n/fgxn/7EAj7PdEFJmA1/xJW8nxsvq81NhTIxWKocGWcZogoZwacZ7Ddw== X-Google-Smtp-Source: AGHT+IER4D0BeNtIHvfJgVGBieTvzxqQSOayaXIUH1BdO1qdWslneL2uttdViiOYIcPqO/okzg4F X-Received: by 2002:a05:6808:23cb:b0:3c1:c8fb:89fb with SMTP id bq11-20020a05680823cb00b003c1c8fb89fbmr1491393oib.11.1709221957843; Thu, 29 Feb 2024 07:52:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709221957; cv=pass; d=google.com; s=arc-20160816; b=XxEwgNVJRovn9XiJw8/wzMDrIr9KRAnPvOg9Wh+FsERxXtNt0k3LaZs3YXLQ4UcJUK ubzmdAxGIYdT06VkBs7Y8xFNQA60krs8s6UjV/m7M/St1UAJSet4uAwaJqESioNGS479 vek4Ad/vxtZJIycJfpV3fe/1S1P+Rp3APAGusPbQQ6e8PlAOXb/E8QQtlFgwt1hVWlIe CogtAqr3naC/kt4Kg3FTcvRJJxs+F1YHDYAnkpvfMLH95wUNabHos2/jxqPQOQD2vff1 pOs7yf7OsHVC4/zfnRBhmS2rFuqz/YUd329rp3UYnt6qSOTvQU7m2qI4SkCqrJ/kzuIT 8D5A== 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=coRM7+uIcw/6YPYD6/rVH4Sap84g4k7hUVzb3Ld6AyY=; fh=TQTpCGTh+T4fbBMPDokrjqMX8HdiRJZk2kjrE0WFr/o=; b=bqa1Tagp7PCO3S1mfNvmNUH+y1ik4ndsU25cAWDPmqZ/HKhGu/QK1WThYQgXjqIxPK ETfBQ4nDe0fatBar+mwkbJ8yf/6izEv8tkMIsRfGm0iJBM3PF8vwjTCn09Od1Ic70NHt lKoXtMgVPH8U/fnFWl7B3sKalhiYqOq44F4UMPUCYqm65wkKX1lEJNSmwCXoUHmtrqXW pwGmdbtjAKFQhBHSWhq8Vbi4SYpRh1ToQGsVEJE5BZMEABEhu5oGGuA3dOXPHWvxsnBJ wxlM307d7oAccyoaR3R07fO4cdHseNmeEK+/j2TqIDHwN7jVnhzG6BgakhSefDsuF1Zr kJww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=leL1RNm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86961-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 q20-20020ac87354000000b0042eb163e7dcsi1479038qtp.237.2024.02.29.07.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:52:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86961-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=leL1RNm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86961-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 5DDFF1C2087B for ; Thu, 29 Feb 2024 15:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 253C315A498; Thu, 29 Feb 2024 15:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="leL1RNm6" 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 4AFDD159588; Thu, 29 Feb 2024 15:49:17 +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=1709221757; cv=none; b=tSggXKZgtOSI2BYh8UmTcgeXjtMM4Ok5mhCn1a05JRYwuWyF5kMLNiPP4PHuPMQE4ktvUbwJhFRNxhG/z03e/tgQ8yTTJ6UvXCPqhJ22p8Ww3wHO51r2YmxxYLLdenOTOZ4kTgsKKbUnzhKU0e0E/+CA7LUcE9PTYzqfzcUZcKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709221757; c=relaxed/simple; bh=GioALxuEMu4Tq7YYwE6PoDDN3bnUtHL6NHK51fNddk8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DM0TaAwOn0kjNjwwpw41YGuB2woqK592Zq0sUHV22Nb8gOawbDQ5fSM80i8KEPC65E6XhwuwRGqzQiM4HUL0GbNcgwTatoHbfFq2QFZadz4GEauNoPUatbbJZV1Ebhs4s+lGxXRR+eqOfvQC4aOrb0fmVOGIfnUx3H6vue76BqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=leL1RNm6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F33C433F1; Thu, 29 Feb 2024 15:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709221756; bh=GioALxuEMu4Tq7YYwE6PoDDN3bnUtHL6NHK51fNddk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=leL1RNm6ZaJkr6mVLzOtatNwmaiRY+/BUI2zj+BzaPEG/vuDUh479X02scCga/P6C 28e7ez1qlYZ0gC+uGuRp6OPsow/F2VcwWtExdVrDBKNK3bfMFmexvk4IZtIJqnd1U+ 9+90jRn+FNx1qbifiIOMysDnjgofg17Fqb8su7Tee488DCrBJ0Q/2aVObXDtHpSdVj VET9bQhaYQ9Re+Du/rsL9vfXftgqmePI14L4sd/XcNXEa9Fqjnj0PcUmEqqiwIc/u3 ABS0fWN/Ri5+miWtAe94TwEA2zoiERfvABgX4gF9uO37z02TVzH67sHCPvvBPA+Mrx ZZzBlbvNGXpDg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Mark Brown , Sasha Levin , oder_chiou@realtek.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.7 13/26] ASoC: rt5645: Make LattePanda board DMI match more precise Date: Thu, 29 Feb 2024 10:48:32 -0500 Message-ID: <20240229154851.2849367-13-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229154851.2849367-1-sashal@kernel.org> References: <20240229154851.2849367-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 X-stable-base: Linux 6.7.6 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 edcb85bd8ea7f..5ab36a6a7207c 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3828,6 +3828,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