Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2827828pxj; Mon, 10 May 2021 11:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK+lL6Wnky0fUDW6MPkcp0CtACu37I+rMmJ3H/wtA+2g0USNqFMTPjK/HFQ0x6gb4+h7Zz X-Received: by 2002:a17:906:c01a:: with SMTP id e26mr27440179ejz.300.1620671841563; Mon, 10 May 2021 11:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620671841; cv=none; d=google.com; s=arc-20160816; b=T5Q51E6vysO8O/fpy27FvP1hq6O7kdIanWMhbTDqky6CUZpMADtotp0EuBJjzRwpGF AVnMscihiwuYK2CijUtgGyloDOtsesV5Oy5T/cyK2PbmaNHPXsc2FW7uEBuEDxXxDmUX 6xY3gFTTvE475O4QXtnF4YbQHtQQN3iPKs6tU2oVDHqySxNhNBfCJbQz2YikJNiwqyDx gYMHgVDFs4KwfF3gDAfS1+whi5QMDjB93Ln7zdqtpqzxAj9/9pNcuvf9XwNtRA3h6Xhp 8X+nQEc4DuKaY5OZHz0tKt4LyydHd8C563qQqdzSJjR8GJNR/EPJbaCBJSm/PZLsMInt Kuzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=JLvWnka4xQJRHly3ltAuvj1EbJGdJXHxRgXwsfntwb8=; b=EpVk3BjIJygblaeY4F39zsc8+MAOfH0df4Abltzifs123hWYkUlJhIAQ43GovKQvcL Ni9GmWYw8N/qzZ7HywpKlI7JjpTncbaTPgVUD1ilFdT2A4uoR0QnHVoOYK+RI4b7HWNu IJDfGRXWuhrX93une3O3FciHl0XessmeMGyVnXjyvPwRyW7Ga4fjuIVGy5o1nnpJyB82 wtIGoQ9NS3Q9JAk5S3fdWlkhdsdDT6mYODoelz0NI0PM3+5nZ9T41LHdyzqSDEMF47rR JvMfXF2Ax23GlRurrg26JrsFasixorPfYoKMEBLwHUBi9a6UgcBvSM1a3/qhFfI3jeXl aonA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G+UO8N2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si14463662edd.565.2021.05.10.11.36.57; Mon, 10 May 2021 11:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G+UO8N2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232712AbhEJSgm (ORCPT + 99 others); Mon, 10 May 2021 14:36:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:60346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbhEJSgl (ORCPT ); Mon, 10 May 2021 14:36:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF75D61483; Mon, 10 May 2021 18:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620671736; bh=B9SXyeC+hysLQ0q10lFZazvUoImWnEYseqN99FaOPq4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=G+UO8N2jvQH03gPeXoaM3Qsqo1k+W0p0ZTu4enq4CfX60YFMGXMtYHhgg7ZedukxU JvLD4na+1Z7SrnUOZOQQgo9K3OYPOitN6v+gk7gt0ZBBRiEf9NM1TO5+QvAlLkqfH6 MPr6rzTcZH7npPdpGjjXx9AJ9eQnNCLlGG6AYwAcmFLTmp7yEvfT4nO7mFAhhLJZzD RAGKmo50zoZuzd8OAGGPBTKkiwg5022DcP0gXvgMOSpF/4m0gb1ypyAzNTL9oWCCNs LZG9pRTFT7+00duB5kvlxLN9ltw4T7rEEBP46ueZW3zFRWgt/Th+i4egTjJGEus81R wqByp652Fdi0Q== Date: Mon, 10 May 2021 13:35:29 -0500 From: Bjorn Helgaas To: Linus Walleij Cc: Corentin Labbe , Bjorn Helgaas , Rob Herring , Hans Ulli Kroll , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , linux-kernel , linux-pci Subject: Re: [PATCH 1/2] dt-bindings: pci: convert faraday,ftpci100 to yaml Message-ID: <20210510183529.GA2289311@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 07, 2021 at 12:51:39PM +0200, Linus Walleij wrote: > On Thu, May 6, 2021 at 10:34 PM Bjorn Helgaas wrote: > > > I think it's nicer when content changes are in a separate patch from > > format conversion patches. Otherwise it's really hard to see the > > content changes in the patch. > > > > Maybe a preliminary patch could fix whatever is actually broken? > > > > Rob suggested a bunch of things that could be dropped. Maybe those > > could be removed in a second preliminary patch before the conversion? > > Or maybe the removals are only possible *because* of the conversion? > > I'm not a yaml expert. > > A bit of taste is involved. The old .txt bindings are for processing > by human brain power. Those lack regular syntax and strictness > because brains are designed for evolved natural languages. > > The YAML on the other hand is a chomsky type-3 strict regular > language and the .yaml file (and includes) defines this strict regular > grammar and as such admits less mistakes. The upside is that > it enforces some order. > > In the process of moving to YAML we often discover a slew of > mistakes and the initiative often comes with the ambition to add > or modernize something. > > In this case I wouldn't care with stepwise fixing because the > platform is modernized by a handful of people who all know > what is going on, so there is noone to confuse other than the > subsystem maintainer and the result will end up in the same > kernel release anyway. Haha, I'm in that large majority of people who lack deep knowledge of what's going on, so it definitely confuses me :) I think the stepwise fix would be helpful in making the patches more accessible to us non-experts, and I know it would save me time in reviewing. It may also be useful to people converting other bindings to YAML because it's more obvious what mistakes need to be fixed in the process. Also helpful: changing the subject line to match the existing convention, e.g., dt-bindings: PCI: ftpci100: Convert faraday,ftpci100 to YAML Bjorn