Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1862681imm; Thu, 12 Jul 2018 09:01:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhT+hGay1JbIK7+1WpNDMLN+n1WLmDCQN558oMUYK6ZVWXVJOxmbQvtqtrLvZV0cVoy+wq X-Received: by 2002:a63:ad07:: with SMTP id g7-v6mr2633715pgf.19.1531411290734; Thu, 12 Jul 2018 09:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531411290; cv=none; d=google.com; s=arc-20160816; b=sifvLev9rya4XWeaps0FGEY91Mn9h4mraGODIs79BMYV27Cg+I/HAJxACU/bXyMbDK KbxUB9ZSLGHBFwlTsO+m+A3y3a5PII0uXFNivjmNrpGk3LAbubnV4DIeltFvSX5frgp3 dVlSHylwuzZhbQmqmB1nv5HjUcQNiV9A/9gDBV1y/LNQkbWnwrn1vJ0mBMPFnmBkzrJ+ 4kCzX2mRrcgq8THbzv6KnydI98bdmEAWpU1mhA/kRHS2Pmh6mAXXGCwYA/eQ9W2wM6/o ge3oWMsQSHKjb9xndx1wuikBw3FlmJShXXQMje+1Js4giqba0pCkPOIT5mUu61G4sLyW vOcw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=PImaZ/VFL1kJcoQ9mFuDGcEMkcRI/jUJXcAUvtbAK+0=; b=yFeEqIRIO5+MDF0qbn/FT3fl7V5XAY/geKMyxLPEvUy0cBYUNlNEyTCDnkrl47wl+o 3f325RpGZwyaVT89p3+ob3zxQ+lEwa/c/ZjUqFKtVfnvAcmHAGRszdNewv6IZ8zW+sRN FXEzFKLwH3G52s7+DNc/6N6rYkNSbeEAsMBbG4s5sZUGNpDxFT1nE5h6q+H62FioSXDi 3KJkEb5BL/AecBWk8jyof0zfDB45YqA8e7FtND2pvyJnzceSvc/lt8S+42k25UNYEPRP XHAerd6ctW22ji3liQrONT3PS2msFlJtrXmo0Fq71VUNUm+A6TvH/47hwTFhx+Ywm/Qp XXZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m2Z4Ymjh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s3-v6si21529007plp.443.2018.07.12.09.01.14; Thu, 12 Jul 2018 09:01:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m2Z4Ymjh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732359AbeGLQJ6 (ORCPT + 99 others); Thu, 12 Jul 2018 12:09:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:48036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbeGLQJ6 (ORCPT ); Thu, 12 Jul 2018 12:09:58 -0400 Received: from localhost (unknown [146.7.4.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B04F320652; Thu, 12 Jul 2018 15:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531411187; bh=0VAnb2QzGQGbzIp5741flZtAPgW8xyEHk9cO0cCynFc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m2Z4YmjhitcoezRwk4j8m1nmF5t4zRtSAvWGKNnK3dW5KIgn+rWGukrRyAaY7nF0+ 6WwUWgQQhIPQTVPF6X215lMP1amtPcQyVyyzPbf3w2mThxC6fkmPuyoOl5Nmgte5wT Wu/dsjwP68utj3+yYHv3K7/PYtgxRlW5rAG5QUmc= Date: Thu, 12 Jul 2018 10:59:46 -0500 From: Bjorn Helgaas To: Lukas Wunner Cc: linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] PCI: Document patch submission hints Message-ID: <20180712155946.GB28466@bhelgaas-glaptop.roam.corp.google.com> References: <153030390808.57832.2200774416664543563.stgit@bhelgaas-glaptop.roam.corp.google.com> <153030405971.57832.12860154795039493576.stgit@bhelgaas-glaptop.roam.corp.google.com> <20180701174508.GB28249@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180701174508.GB28249@wunner.de> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 01, 2018 at 07:45:08PM +0200, Lukas Wunner wrote: > On Fri, Jun 29, 2018 at 03:27:39PM -0500, Bjorn Helgaas wrote: > > --- /dev/null > > +++ b/Documentation/PCI/submitting-patches.txt > > @@ -0,0 +1,153 @@ > > +Start with Documentation/process/submitting-patches.rst for general > > +guidance. > > + > > +These are things I look at when reviewing patches. > > For an uninitiated reader who doesn't know that you're currently the > (sole) maintainer of the PCI subsystem, this sentence might look odd. > Who's "I"? What happens if you onboard co-maintainers, are you > going to change this to "we"? You're absolutely right. That was appropriate for email (where I originally posted this) but certainly not for the tree. > > + - Follow the existing convention Run "git log --oneline " and make > > + your subject line match previous changes in format, capitalization, and > > + sentence structure. For example, native host bridge driver patch > > + titles look like this: > > + > > + PCI: vmd: Remove IRQ affinity so we can allocate more IRQs > > + PCI: mediatek: Add MSI support for MT2712 and MT7622 > > + PCI: rockchip: Remove IRQ domain if probe fails > > A quick "git log --oneline --no-merges drivers/pci" shows that the prefixes > in use aren't consistent at all: Sometimes a slash is used to separate > "PCI" from the subpart touched by the patch, sometimes a colon, e.g. > "PCI/AER: " versus "PCI: shpchp: ". Your own patches aren't consistent > in that respect. Sometimes, only "PCI: " is given as prefix, even though > the commit only touches a subpart such as "sysfs", so could easily specify > more precisely what it's touching. > > If you value consistency, it would be good to codify the preferred form > right here. I was trying to make the point that whenever we're doing *anything* in a shared project like Linux, it's better to look at existing practice and follow it than it is to slavishly follow rules. So I purposely didn't enumerate all the cases. I think if you look at logs of individual files, they're pretty consistent. I generally use "PCI/XXX" for things in the core (mostly capabilities like MSI, AER, DPC, etc) and "PCI: xxx:" for drivers (shpchp, pciehp, etc). IIRC, I adopted this from previous practice. Of course there are things I don't apply that are different. And Rafael does most of the PM stuff, so I try to follow *his* convention for that. > > + - Always copy linux-pci@vger.kernel.org and linux-kernel@vger.kernel.org. > > I'd drop linux-kernel here. The volume on that list is already like > drinking from a firehose, I doubt it adds much value to cc it. It's useful as an archive and for people not subscribed to linux-pci who happen to see the occasional thing they want to respond to. Nobody expects to be able to follow everything on LKML. get_maintainer.pl reports LKML for everything, and I'm not trying to innovate by being different. But on reflection, I think the overall value of this writeup is minimal. It's a lot of repetition of things already documented elsewhere and most of it boils down to "pay attention to existing practice and don't do things differently unless you're innovating and adding value." That *should* be obvious, and if it's not, I doubt that adding one more thing to read is going to make it more obvious. Bjorn