Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1464532ybz; Wed, 22 Apr 2020 22:25:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJL1Vwx9A77kry+YRd93EUTrm+rBaybeA1Bnl31RO1umu0oSsHDqobBEALGKV3YZ8rFWYs1 X-Received: by 2002:a17:906:3da:: with SMTP id c26mr1321586eja.290.1587619502921; Wed, 22 Apr 2020 22:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587619502; cv=none; d=google.com; s=arc-20160816; b=ER7kILsWAoaYqJpCkcPWdIpCh2dMsjloHO6WkYNtV3ANHPH8Q7cnqa6+Hy2y8UPLSu X+7E3hWBDBB7xMqnQE+yzHhKt+EDKWEGvuAMLtQbT6y57mwZQdy8+P/OiqwQKcO5qUH7 s8ScGvwELjX6EMHBsddr7k2/Z/qlXm6MezSMHdJo8fMdVLt6k70+XoIKOV+oUy3pO0x3 L08MVV2IGdOeovHSqZYc0jnWc1J95uLBlAvLFRgf1b81Ama45nK13v3CkizkrnI++GPu zeF/D18wN49LOJipVNp6OXlSTEXzfXcJ1PVPHDuNO/kUwBqeuXTV+cBIsxphVaPj+RAe me9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oci5tTKQiA6Lr6Rv+wmG9Gup7Dv11o46lM0MHOm2MGY=; b=GJjy8EI/ye5+hyAXYVdkr6ydr/APHhGi4hFWzrxl9T35tWz6p8nTn0kMdbHlmt++qp 3FuTg4Rwjia0gUEQQuBo+hYzfAFrcOL4kR1IHbWaWauJ3cfr8dr884Phl0WRGcL+lwAQ oC76EEFt3OR4NWWid1km86GQRne+ih6Lw3oQmTS7rxD0PnfG5QABJO9AhK7EG8SpJl9H qOLk/Mhio3yIom96py9AMuHouCiJtPnzUZnt8cOhY+aTh6m/R3MB/AkO/VyluNlDiBfV HBVc2G9K3JGFea3i9lm9nZ5+OCV2lA4fR1CWEmmJfik95ofwdYDbNR3zaQQzz9ius6s8 RVaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si763568edb.156.2020.04.22.22.24.39; Wed, 22 Apr 2020 22:25:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgDWFXL (ORCPT + 99 others); Thu, 23 Apr 2020 01:23:11 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:59348 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgDWFXL (ORCPT ); Thu, 23 Apr 2020 01:23:11 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 6E5D68046E; Thu, 23 Apr 2020 07:23:05 +0200 (CEST) Date: Thu, 23 Apr 2020 07:22:58 +0200 From: Sam Ravnborg To: Joe Perches Cc: Rob Herring , devicetree@vger.kernel.org, Laurent Pinchart , Neil Armstrong , Adrian Ratiu , "linux-kernel@vger.kernel.org" , dri-devel , Andrzej Hajda , Collabora Kernel ML Subject: Re: Rule for bridge yaml dt binding maintainers? Message-ID: <20200423052258.GA9926@ravnborg.org> References: <87d082jtfn.fsf@collabora.com> <20200420175909.GA5810@ravnborg.org> <9a32f150f85f851d04afd148b2a9a5cf203f7ce1.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9a32f150f85f851d04afd148b2a9a5cf203f7ce1.camel@perches.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=XpTUx2N9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=8nJEP1OIZ-IA:10 a=7gkXJVJtAAAA:8 a=pbkAPnaIUECbBO13-8AA:9 a=wPNLvfGTeEIA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe. > > > > > I would also be great if you or someone else could: > > > - teach get_maintainers about .yaml file listed maintainers > > > > It already does to some extent. IIRC, there's a mode to extract email > > addresses from files. > > --file-emails > > > I was hoping that the MAINTAINERS file split happens sometime and we > > can just generate a MAINTAINERS file for bindings. > > I don't see the value really. > > > > - teach checkpatch that it is OK to convert .txt to .yaml > > I suppose that get_maintainer _could_ enable --file-emails > for .yaml files. > > something like this (more comments below too) > --- > scripts/get_maintainer.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > index 6cbcd1..9d947a0 100755 > --- a/scripts/get_maintainer.pl > +++ b/scripts/get_maintainer.pl > @@ -527,7 +527,7 @@ foreach my $file (@ARGV) { > $file =~ s/^\Q${cur_path}\E//; #strip any absolute path > $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree > push(@files, $file); > - if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) { > + if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails || $file =~ /\.yaml$/)) { > open(my $f, '<', $file) > or die "$P: Can't open $file: $!\n"; > my $text = do { local($/) ; <$f> }; > @@ -539,7 +539,7 @@ foreach my $file (@ARGV) { > } > } > } > - if ($file_emails) { > + if ($file_emails || $file =~ /\.yaml$/) { > my @poss_addr = $text =~ m$[A-Za-z?-?\"\' \,\.\+-]*\s*[\,]*\s*[\(\<\{]{0,1}[A-Za-z0-9_\.\+-]+\@[A-Za-z0-9\.-]+\.[A-Za-z0-9]+[\)\>\}]{0,1}$g; > push(@file_emails, clean_file_emails(@poss_addr)); > } > That would be a good step forward. So people editing yaml file will actually copy the maintainers and not just Rob as it is today. There is a growing tendency to rely on tools only for the list of people on cc, which is fine, but we should make those tools then do a good job. Thanks for looking into this. Patch is: Acked-by: Sam Ravnborg > > I don't see checkpatch being able to check much of what comes up in > > review. Maybe indentation. > > Likely better done with another external tool. > > Could be added to checkpatch as an external > call like spdxcheck.py If we grow anything more than: "Indent shall always be an even number of spaces and no tabs" kind of rules then yes, an external tool would be fine. Sam