Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1718566lql; Wed, 13 Mar 2024 06:31:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXphaswP/dZUtchSUXAqCdk70ZOdEA2tPVVyNeS0C1f26jsQizqf3lkrRfjgrc5eAfzU0zcE2ayw5FRoJqjEKpUYCwyc55XPgQ1MSLi9A== X-Google-Smtp-Source: AGHT+IGYKxAzHF5Vy1suQWN2kZdRtAOmKqKRvFB/bdNIzqQe5i5a2jKJC94+xUktx+5c5F5bUr5Z X-Received: by 2002:a05:6a00:22c9:b0:6e6:6cc8:acb8 with SMTP id f9-20020a056a0022c900b006e66cc8acb8mr2981394pfj.19.1710336708241; Wed, 13 Mar 2024 06:31:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336708; cv=pass; d=google.com; s=arc-20160816; b=ae++UyRYslOuCMkuvW81O0dvzceJH97hKXDsMlHynppwfFvO6QuMTYUhrRf1HJ8hwj eDA6LKJhE80NU+98/HC73NnHOJm7e2eEo2COOP4glGpOj4YN09Vz2E0j4i2vx7bTH4By 0WYnsezKHWFDNm3SBkxn/OgxjR0S9EwkMG03xDPgc4ZjUHJUZGaQY66Nr/G/hxL9RJz3 HW9a62AxzhxKiK+gLLLK7UGWDD5RH0uh+/T71xi76LZSyKWe20IEs1W6qKQws4ZLvT0q OixQ/26faad4clr/XEAIU1WgvJlY8oybFszMsRpQBUB1kCDrC3WNLgWsZiIjc1n3h09k 9FuQ== 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=1L/86snXKBj7Q9wqx/tgTlwZNZvI8ypujv6xatqFY04=; fh=0Ydqth12gAUoLLAAyW2+RaENejIdLXNZF/S4h2NTz9s=; b=Ol2pOXTrduNyc4FbWStPu8RcXRzLGYXrlRkISNM8H/zFqpFDJqVR9bkDdG+tETNwA1 68R0rcCBODmlAFrGGv3BQ5PsOboC1CJpp07VE5Z15Jb8ZiLfhJl3xncj0x7L/AfAdXLx jbzAkblvU9645+KKVCPSc1qc5Oi7c+uZM7lb/75ekpptXRGPO8iZL/6K80e+NMO+Lh71 R33AQVGeqKwOAPW4lleC8NTEgsSKp6OYnsN1d4ZN8HgVwbzofcjNSd/Esl2WQGLvUJm7 2Ouu4yOSNVvw26LoGObp182S/yYLF3l55I02IEcXUtTS3GN353pI2Qp3Lq6t158uTnox gv2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101534-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j11-20020a63ec0b000000b005df469b4f7asi9225991pgh.489.2024.03.13.06.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:31:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101534-linux.lists.archive=gmail.com@vger.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 55FA4B2430E for ; Wed, 13 Mar 2024 13:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20DE84CDE0; Wed, 13 Mar 2024 13:28:01 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 181774C635 for ; Wed, 13 Mar 2024 13:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336480; cv=none; b=AV36l5oHxGonszqZE3tRsQYEw/MkxgvLB8cBZy3mYdIupvwkVb19mPDbKcTvBUkQ8hmFyMtkrmWNw7swKxxMGo+3hjjmxE3zj6L6gly6RMXtLBwrTwqJzbeOJThjNsNqTy73vDsqy4fQAsek/MPyf9OAXZ/kslnCIKpXLaAt48M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336480; c=relaxed/simple; bh=vRs3n5/VvktrDKffUva4cA+VkrhArBq2AHk083ajy2w=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=ecA2I/drrv5UDjrH75IPv8N+6Sr8hlemA4Uq63ZQbDRC4BwXCabnWs0xgF6h0Lz5AUFBq/jf+iteqGo2/+UDUWX2WxZhQVE4dSJ9kJV7nSIJQfVD0OqH0X/nwrXfjxox6sh9ubD2DBLWi5actzq8oDPkdtwzarCitHDAWQQjtQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tvrt5453gz4x3j; Thu, 14 Mar 2024 00:27:57 +1100 (AEDT) From: Michael Ellerman To: linuxppc-dev@lists.ozlabs.org, Michael Ellerman Cc: christophe.leroy@csgroup.eu, robh+dt@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231214103152.12269-1-mpe@ellerman.id.au> References: <20231214103152.12269-1-mpe@ellerman.id.au> Subject: Re: [PATCH v2 1/5] of: Add of_machine_compatible_match() Message-Id: <171033598342.517247.6905314816188419212.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, 14 Dec 2023 21:31:48 +1100, Michael Ellerman wrote: > We have of_machine_is_compatible() to check if a machine is compatible > with a single compatible string. However some code is able to support > multiple compatible boards, and so wants to check for one of many > compatible strings. > > So add of_machine_compatible_match() which takes a NULL terminated > array of compatible strings to check against the root node's > compatible property. > > [...] Applied to powerpc/next. [1/5] of: Add of_machine_compatible_match() https://git.kernel.org/powerpc/c/c029b22f8a98e14988f800d5c0176a9eaec3c8db [2/5] of: Change of_machine_is_compatible() to return bool https://git.kernel.org/powerpc/c/cefdb366dcbe97908b6055595a15bf7689556bf8 [3/5] of: Reimplement of_machine_is_compatible() using of_machine_compatible_match() https://git.kernel.org/powerpc/c/1ac8205f907517a306b661212496fedce79d7cc5 [4/5] powerpc/machdep: Define 'compatibles' property in ppc_md and use it https://git.kernel.org/powerpc/c/28da734d58c8d0113d0ac4f59880d94c9f249564 [5/5] powerpc: Stop using of_root https://git.kernel.org/powerpc/c/2a066ae11861257223500d7515e1541199cb7832 cheers