Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp436389lqp; Sat, 13 Apr 2024 03:52:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuhLooAY98LwIrv9w1gQwpMJGnzptSf7Q9Q9JikP9UtqOT4Bc8f1AjMuUC54Ull2PURBZ8u+3eeNr0hIsJ3mukE2lKbcLm/1w7Rhg8PA== X-Google-Smtp-Source: AGHT+IHelrkP+sc9eFgXcEQP5lBHlN7R801lmF1WlKZvThwMOCRam1ku4lrnV6Xr/a7X+2o3znaL X-Received: by 2002:a05:6a21:8102:b0:1a7:7ccf:2157 with SMTP id pc2-20020a056a21810200b001a77ccf2157mr4500562pzb.42.1713005533081; Sat, 13 Apr 2024 03:52:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713005533; cv=pass; d=google.com; s=arc-20160816; b=S71bKX9n8wnYplCO0i/5HbWNOon7BnZzBXdhpC7e/rXV1YdhuLr2u70iX8aFrsnUkT g0AQFf205W7SxhZE/q7MIuBza0PgwIQ8BjbqW24Qo0VnbE/Ukz/gMNILnlDaJc99UGke rHZqIVZrXbU37wD1rcxzQ1ynSGXuxpmejUfIscEj1vpPCJhUS8RIutXoG2oKpxn0cUsN 46HFMVJab4iO2ilabWUlZnWVLQPKqwE3/u9I+8DIsq04cy/3bcJn/PU680lB6hSAExQD QRDnzQnF7GJSoJ5OKBajF3iPGY0MvuiumiC3s4Tyy3fDz2NFhR3TWjCr6Yqf1a7uoEMu 1IcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=v8z4n/IKqgdjz9pyJi60rkWR01m6yN7JH58nw7s76EE=; fh=L8BZ/sHTgxFMMlTvx+yYXgnJhvMa/c2jcowxapngQSw=; b=LRhLaaN/zHJ5z4Lw2AQ1PmbnDkQPBpMjWtIiyVvzXVoiyKeb7XdmSEb7Gpxwbukp9n cMZp/JjFaaZ5301zpbMHuhCzSuVPzo8h7X7choyI13AUWKCJeN2vzzGrfQkflG6XSWt8 kc9XwKUoW/hpev/BGuyr24jJYqCGc43NBIBIHR05Zxe9S3REj5dNb7q72zxpaVUJgzXP ljlQ6+orDNp1EoMqERNYw1w5TXsPUixLUBAZgLEhnJSlRrbgj5KszLIfbvSN+u0ZBB6E RXfL1M0pQuQ96xrNGyK3yk2VS2+jMxcAnhTenunGOGgLUf30rVxkkbEKR8L19qVSmu/w EFlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-143692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143692-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 ff15-20020a056a002f4f00b006ed891673a7si345086pfb.97.2024.04.13.03.52.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 03:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143692-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 (google.com: domain of linux-kernel+bounces-143692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143692-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 A0151B21B99 for ; Sat, 13 Apr 2024 10:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CC943D0D9; Sat, 13 Apr 2024 10:51:20 +0000 (UTC) Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [176.9.242.62]) (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 27AAA3EA96; Sat, 13 Apr 2024 10:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=176.9.242.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713005479; cv=none; b=RojA6T9/7m7Ivt6Z0T5S1DHighyN0cupGKJYX9KoKBICQJ6FO838ynk0SWTSOezqReyw5z6X1XXbJreUBNerZrkd+jU5pH9qD1Ok62dUHNg3JHgK2fMAGP0Gc8wvxISfiIbD4TunPMUHmyJNZoORJnVcnKlbQTCpHs3tWo0R7II= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713005479; c=relaxed/simple; bh=8bpdfCe2nuq6dKsz2FLSG+VUZG2U5J6jqaUpYbF9eW4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jaOei+zXTLA8DQTGekgkyaoz4E2GLDwegenqG7qeYKvDZKU4DwjYgWcUZ2oob/FqTsPinFUrKPPuqyklkfmZNXmeVD7i1yTysPAEMWRcBDa+I1HX680awsrDFspKHRB8/Luv+oA/UBen1isrCwLrYxm/RYGf25o0FmGlDXm/WcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=176.9.242.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 4A4771029D24D; Sat, 13 Apr 2024 12:51:15 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 2C13048440; Sat, 13 Apr 2024 12:51:15 +0200 (CEST) Date: Sat, 13 Apr 2024 12:51:15 +0200 From: Lukas Wunner To: Krzysztof Kozlowski Cc: "M. Haener" , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Sverdlin Subject: Re: [PATCH 2/2] dt-bindings: tpm: Add st,st33ktpm2xi2c to TCG TIS binding Message-ID: References: <20240413071621.12509-1-michael.haener@siemens.com> <20240413071621.12509-3-michael.haener@siemens.com> <8c13a349-a721-44d3-9e23-2e01f4c2ca4d@linaro.org> <3d08cf54-f58f-446f-977e-21ba65986924@linaro.org> <889ca65c-c9c7-4658-9c34-5d89774218cc@linaro.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <889ca65c-c9c7-4658-9c34-5d89774218cc@linaro.org> On Sat, Apr 13, 2024 at 12:43:38PM +0200, Krzysztof Kozlowski wrote: > On 13/04/2024 12:34, Lukas Wunner wrote: > > The other patch just adds an entry to of_tis_i2c_match[] in the driver, > > pretty unspectacular: > > > > https://lore.kernel.org/all/20240413071621.12509-2-michael.haener@siemens.com/ > > Then why is it needed? The binding requires two entries in the compatible string used in the DT, the chip name followed by the generic string: items: - enum: - infineon,slb9673 - nuvoton,npct75x - const: tcg,tpm-tis-i2c This allows us to deal with device-specific quirks, should they pop up (e.g. special timing requirements, hardware bugs). We don't know in advance if they will be discovered, but if they are, it's cumbersome to determine after the fact which products (and thus DTs) are affected. So having the name of the actual chip used on the board has value. Thanks, Lukas