From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 240D1C433F5 for ; Mon, 22 Nov 2021 20:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MdRq5MVhREkfCEN5Hd0Oebt0wQzljSl94tLPaO9/uVU=; b=PxSbi72XEEsHEp /1RMbQfcUNfLVDev1vxyNZgBd6qx79zHHje4rSaAHdD369imf1lP+ajJzD/nXxlxwlVmuIt50edvW kRqI5A6QsDF365a+kV6sRIwMVuQ6j6ojGANb5l6vxXsOEbRuGXvRppfvHixyMBQedgEFmxpDRvfSD 48AHIoThschaLJ2zAZw7m78ywfwgE0hnz+fPEqGk+Ksys9PRFq+sR+SCz+kADJUAtv043+fFWJEML 6Rmx4Z4Kiz/lNoaNbFn6n3ApezORUpmM3KwbclLhb96+rxTdz1gCG+pVfJneoGx2VdFeNg9LB9Ann oikf6FBycZt7dp5BglSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpGFV-00HZbr-E2; Mon, 22 Nov 2021 20:49:13 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpGFS-00HZZz-42 for linux-arm-kernel@lists.infradead.org; Mon, 22 Nov 2021 20:49:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 2957C5808FC; Mon, 22 Nov 2021 15:49:01 -0500 (EST) Received: from imap47 ([10.202.2.97]) by compute3.internal (MEProxy); Mon, 22 Nov 2021 15:49:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type; s=fm3; bh=se5bfYkPT7kIXF8J2Gea1/9IMltq BeaRSW+HQ4r0XQo=; b=esM+8DaZPFF8rh3zwBamhCTEYqwG5W+xc699fM9sUDQI tmUtHh9A7DJf20QjCFZx0p+RdGr+HHzEEWRJoVibsPZpY7KjN6KbnVCNqs2Fd2Jh 3FWipDlFlXgAHWqzZBJ3cNTkXOSMuMpKRsxs5zoqx+1p1qrYpPDwuv5YdCrh5pDl jRNgaczzhvHX/rZSgmvpzY7Az4JPUqNXx8SxLmI83hl2g4yRcipo3yP0rmkoqsDA 02c3Y3XjyIIRL3QlA4ivGu/bnBhxCGInOc/X/2xhprvuBFgVWB9/qoWsuSQd/sod oHUU4TTM598FgY4NSfmBGp3ZXD3RCjZGSe0lcjAaPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=se5bfY kPT7kIXF8J2Gea1/9IMltqBeaRSW+HQ4r0XQo=; b=XgTLdh5o01Qbfri2YmZX/r 86xlrugzmzcHhtPYUto/UuikkkB7OvwUW+/pD4jTDUsMk0C6IElyUf4qzscz0rHS wMoPeWcmW6Bh0U5MZYMaLTB3M+Xj2WT6XlZHldPIRGm0KYNkzyAyhwsixZPfSedH hF+8ARnlOYZEItRAYh/Usp1U54vXtPHYwaCKFHZlLfEb0nhNb8EJR7tf01H6Vvov A+gyTrph1z7esarM2pPT51Ajb2pu/ia6sS5+sJOmukgqDMmnEs3iQgDtdOXTtv1p OCFKVLQuQIzNpLzBaGFwzogBnhBHph9Oj4VIkMD0ePHyPTRDxh5buYObyyZTvrew == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeeggddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfuvhgv nhcurfgvthgvrhdfuceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpeekleelfefhtdduieekffetkeevhfdthffghfeggedvvdehkeeikefgvdev tdejgfenucffohhmrghinhepohiilhgrsghsrdhorhhgpdhkvghrnhgvlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhes shhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7EAFA27405DA; Mon, 22 Nov 2021 15:49:00 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1371-g2296cc3491-fm-20211109.003-g2296cc34 Mime-Version: 1.0 Message-Id: In-Reply-To: <20211122175903.GA28130@jannau.net> References: <20211121171545.27402-1-j@jannau.net> <20211121171545.27402-3-j@jannau.net> <2baebbe6-0080-4cff-86de-a00f23aea95e@www.fastmail.com> <20211122175903.GA28130@jannau.net> Date: Mon, 22 Nov 2021 21:48:39 +0100 From: "Sven Peter" To: "Janne Grunau" Cc: "Hector Martin" , "Alyssa Rosenzweig" , "Rob Herring" , "Wolfram Sang" , "Olof Johansson" , "Arnd Bergmann" , "Mark Kettenis" , "Rob Herring" , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: i2c: apple, i2c: allow multiple compatibles X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211122_124910_299305_89B26EE0 X-CRM114-Status: GOOD ( 20.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 22, 2021, at 18:59, Janne Grunau wrote: > On 2021-11-21 21:22:47 +0100, Sven Peter wrote: >> Hi, >> >> On Sun, Nov 21, 2021, at 18:15, Janne Grunau wrote: >> > The intention was to have a SoC-specific and base compatible string >> > to allow forward compatibility and SoC specific quirks, >> > >> > Fixes: df7c4a8c1b47 ("dt-bindings: i2c: Add Apple I2C controller bindings") >> > Signed-off-by: Janne Grunau >> > Cc: Mark Kettenis >> > --- >> >> Yeah, this should've been "apple,t8103-i2c", "apple,i2c" all along :/ >> Given that we have no i2c nodes in the dts yet and that this binding was >> only added for -rc1 I think it's fine to just drop "apple,t8103-i2c" >> here instead of marking it as deprecated and keeping it around forever >> if Mark Kettenis also agrees. >> >> > Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 9 +++++---- >> > 1 file changed, 5 insertions(+), 4 deletions(-) >> > >> > diff --git a/Documentation/devicetree/bindings/i2c/apple,i2c.yaml >> > b/Documentation/devicetree/bindings/i2c/apple,i2c.yaml >> > index 22fc8483256f..f1cb96c08212 100644 >> > --- a/Documentation/devicetree/bindings/i2c/apple,i2c.yaml >> > +++ b/Documentation/devicetree/bindings/i2c/apple,i2c.yaml >> > @@ -20,9 +20,10 @@ allOf: >> > >> > properties: >> > compatible: >> > - enum: >> > - - apple,t8103-i2c >> > - - apple,i2c >> > + items: >> > + - enum: >> > + - apple,t8103-i2c >> > + - const: apple,i2c >> >> Nit: the enum makes sense once we add t6000-i2c but right now >> >> properties: >> compatible: >> items: >> - const: apple,t8103-i2c >> - const: apple,i2c >> >> also works and look a bit less weird. > > I split it from change which in addition added "apple,t6000-i2c" as > second enum value. I have no strong preference but the weirdness will > hopefully vanish soon. I'm slightly in favor of not introducing the enum. You'd have to fix the indentation if you wanted to introduce it anyway [1] (checkpatch there also seems to complain about the commit hash for the Fixes tag but that looks like a spurious warning to me since df7c4a8c1b47 is in Linus' tree [2]): yamllint warnings/errors: ./Documentation/devicetree/bindings/i2c/apple,i2c.yaml:25:9: [warning] wrong indentation: expected 10 but found 8 (indentation) Best, Sven [1] http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20211121171545.27402-3-j@jannau.net/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df7c4a8c1b47 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel