Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2563935lqp; Mon, 25 Mar 2024 02:45:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUD7MnPJIkMG1BNvcM+dv9+gTgAubUgUkNWObL/PAKmKxw6k4zW96qixVNxzT0ZE1T7lLwkL/4oOAjVr+4qiZprsyD9mDiHvokThZByg== X-Google-Smtp-Source: AGHT+IGqxyqWrc4+dgpUNJ64hN3vi/uu1Ndka+GSnwHngbT1iz952Kht8gdczx+b6i4iwD6dcGiP X-Received: by 2002:a05:6808:13c4:b0:3c3:d48e:ca9a with SMTP id d4-20020a05680813c400b003c3d48eca9amr294075oiw.51.1711359903908; Mon, 25 Mar 2024 02:45:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711359903; cv=pass; d=google.com; s=arc-20160816; b=vaPAnSO+0X0KAMo0VtLivxEgrJbQU9qCnYBwBa1iHU3AWLqsImcQBIwozOBkXm2n9u RUiQFh95Dey1pU33qMByW7WlfhwgV5QqXWDvhn0DQf4Ve+A7jH/FYyVrS+fmBzg2idha UJDcw8T8WLIiBNFMgXsIDvnpt+JRoapzJZFF7eGbHUb+okDBhbaUNSQXNXRtGvxTEl8l EA4+GXrqyqKl9uJHxK8w+LpY9iJT4ofvgJPHB6aCiFiDUSB9fmsRjybyYtU/h/FW1xen mpaNAojSuuo8HJVF1LNTk9iOs/VcISMj2CXuEwhnlcsMh6ZUG+Vic/hLQ2EXtAtS3FRU m0dQ== 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=qpOF7UJuvFtSdPzEhHp0UZlRfVX6Sd6Kce/YwbJpQ/E=; fh=gNr67fX0k3xGlJjrz3lc/59teyFmdWmYL18Ih3XHXT4=; b=0IPBbtX6w/DirjpEotyzyzWrw9Efyn1mfmlhCk7qoX1T+UGw8wh9DIEXRHCMUYATJl LU1K1kObpCwdn9NWpe0uq1PEOPJ9KJHvA5mLbH+95cFT7N2HMzBbXwUITHdxrjvarqLy wrJ9o2yJRDWpRpOpbjZTVk5fQX9ISsq4lr2Z3cGmkPOMHFQqdyOs6VG6j3XTUNjoHboJ KDNdltAZA2dGKS2sw9FPmQApj68QzPPWHlUbXwHU3/1UL4paqw8I4vH+Auz3gDnJ6Qr1 mBTK1r79+Ovz1qnchxw5OsFrmOybiHWFfsSWqmFO9YVWpuRLi3awh/d/kDWCLPDq7VXh MFPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrFPAfzf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c20-20020a63d154000000b005d6b61e24afsi7162294pgj.763.2024.03.25.02.45.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:45:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrFPAfzf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115754-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1FFF7B3816E for ; Mon, 25 Mar 2024 09:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AB36369DEF; Mon, 25 Mar 2024 02:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nrFPAfzf" 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 CADAC12D76B; Sun, 24 Mar 2024 23:12:30 +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=1711321950; cv=none; b=SpB6fvxpf1fYYT8P9azotCnd9zxahvEVl0yUaFiJdVroQemLOEmnAWwcNW8SRgKSC0/C4kAU+NZKsFrXVCu3ET90HJlj/0bQ4NHSA8uXuKQq/QN7E+EcS4/1s8GEzoymIzOj83mKqh8cLNM1ajbc4+qT6ROZBW7KilMAGGho0+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321950; c=relaxed/simple; bh=f65IT3YJW0iM5S2hwJ/ZJqvbC+2+6g5WS+AfeSKUXOI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a7dgkJzX3brVkKZ6qjnRXeI0xHafD9EIv63qQ81nlvtg3LtfFCLm4b00zl2QcME69GuDp+bErY/RbiTRrJHBTNHk7MidJaEHrDp/B284hko4uzhj4SvfTd92MwNNBsR7OnSsOZV/tnSvXdqs35nvL5MigtrIxEjp7F6ma+HqxQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nrFPAfzf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D678C43390; Sun, 24 Mar 2024 23:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321950; bh=f65IT3YJW0iM5S2hwJ/ZJqvbC+2+6g5WS+AfeSKUXOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nrFPAfzfNJp7ZUEaAwfBxQYLe82WxPu40amS2Drfzx5OdN3AyF+R3NZGBoDcmRdz4 aHwFEieJ5V1nrISMTz37OaDygzckDwDJP5faB490YaEPEapiDlEGJrTSowCN39MXgA SL3T7CSQ0/c0uwaHeWVl7zS8mZvn4Lt+/Ikp/jfWJegCM3hTJ1/5o7ChudNsMcHieF Yht3/U6tNX/c0XaqNUDqQ7tY+bkcZM5e66IhmuhpDEdOLlv5a9ifWRi5ayJIRSSpMp G+jXn1JUJB4LGZpniD7WmB8zHsQtLqRNDvFQDbFyS9WRLX5m07xiuZXbMmVfJbC4GQ YX9NT0w6XMAYQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Mark Brown , Sasha Levin Subject: [PATCH 6.1 022/451] ASoC: rt5645: Make LattePanda board DMI match more precise Date: Sun, 24 Mar 2024 19:04:58 -0400 Message-ID: <20240324231207.1351418-23-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 844d14d4c9a51..aac9140749968 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3802,6 +3802,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