Received: by 10.213.65.68 with SMTP id h4csp226260imn; Fri, 16 Mar 2018 00:44:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELvp4WghIf9GTtLPTOWswsv4Fvqt8mfokHJytX9y1uIp+0lMm89pXInNyvxPgvQF9DLJcfM7 X-Received: by 10.99.125.19 with SMTP id y19mr701322pgc.125.1521186248988; Fri, 16 Mar 2018 00:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521186248; cv=none; d=google.com; s=arc-20160816; b=I/1zSWZH4avvNVNr2B5UBRCWVx5Loatpg7TOtIWM8SvQmzXzIRaKk6WlYdH3oTCh3o Aw5em2M6hSGenKsKg7zGy35VsTsx6qLIcQ59SaaSL712nZXwkuxnBr2EgBQnS6dTPt2R +tpSwt1woXLj7rWvcCC/81RyxueczMdtyZVjLaER22ZfZIIhxs/ibgAE6sTz4sB9m+K3 r0N+wiHoEmEId6P7e5LnBGCCoQ8EPrQk6UbdCjFcbbWf8RfdQAfnLT4tWw59b+wzNUFV bPXd1qaMSPK4bQhx163NCDijkqJZWS81NGvOZ+v+I5bHJKizacjPB1t4f78LTLJ4rGNX GH0g== 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=kXz81yocNPY/BgYU46hrollmJnnj6cNG8bK1TW4lsVw=; b=m4/ec7L9XhmliE4dxiYsnuVqHfSyGBodWFGR1Dnda0lTzvPLKFeh4Sm/ar7TCFIjjs fNEWt3QsIQePko34I1CjXcVF90N2DrvBFxLafS9g4XhCNu5Yu+XGVP6ar4ouzZe+nD8f o+bc5OmGtny/c1Q4eYkbN4yTr8k7WYsYMCCQP23FLlGMXdd/270ScEsWLK6NJi1jRQUd G5OJRYBTOXDbanGz/uZA8heUQukHTP/PeiperzT+qKfioH3+oDOVY0aOzE9L022ARvRa dp9A7RWCtx6HS3sNE1bX9XutYnxPWDP3psB6h5hH4Wmbys+7v9mKj5NdmQPv1E+Nz0de v88g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=v2yzN3Vm; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj8-v6si4436133plb.306.2018.03.16.00.43.55; Fri, 16 Mar 2018 00:44:08 -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=@oracle.com header.s=corp-2017-10-26 header.b=v2yzN3Vm; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbeCPHmc (ORCPT + 99 others); Fri, 16 Mar 2018 03:42:32 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:57872 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbeCPHma (ORCPT ); Fri, 16 Mar 2018 03:42:30 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2G7gMg1104779; Fri, 16 Mar 2018 07:42:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=kXz81yocNPY/BgYU46hrollmJnnj6cNG8bK1TW4lsVw=; b=v2yzN3VmJSige4hobXHgSoOQTDD5Qs1aBG4Uv9JkttuQb3uStIegzgicdrYyUSkEA/Jv mk1yrqv4DUSj9JIjOSflPfh+STC4eNEMkUiK1IzUC6oWC86qdce2QiAZHEB+0omDDWzX z5qhj3k562HtU8ge+GpkGFtgysUiNdjb9XkJHa+pT73Bp9xy5LzrcJaa1cRh0hwZdqL7 XpWnx4vslsxms/qvX9veHYTm47ufChOmKRv0G9PKZy5fV/pLt+uMkWthKavoU7Pgvqx+ rX2jlnIpxNKEu4csGDEKF+cfwxqjzlU65+BLraCQpgbivMf+3h3UuRUc5xLvQAnDptTJ hQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2gr9s4r00t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 07:42:22 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2G7gKTE021748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 07:42:20 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2G7gJJT011875; Fri, 16 Mar 2018 07:42:19 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Mar 2018 00:42:18 -0700 Date: Fri, 16 Mar 2018 10:42:11 +0300 From: Dan Carpenter To: NeilBrown Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, lkml , John Crispin Subject: Re: [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1 Message-ID: <20180316074211.aa3xjbiypzetsrgq@mwanda> References: <152105892255.22262.1902152685410223215.stgit@noble> <20180315104853.bthffdd4hzklzo6d@mwanda> <87vadxbnwe.fsf@notabene.neil.brown.name> <20180315112454.7p6gch4gq7jljk37@mwanda> <87po45ayz8.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87po45ayz8.fsf@notabene.neil.brown.name> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8833 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803160005 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 07:02:51AM +1100, NeilBrown wrote: > On Thu, Mar 15 2018, Dan Carpenter wrote: > > > On Thu, Mar 15, 2018 at 10:04:33PM +1100, NeilBrown wrote: > >> On Thu, Mar 15 2018, Dan Carpenter wrote: > >> > >> > This all seems fine. Generally the requirements for staging are that it > >> > has a TODO, someone to work on it, and it doesn't break the build. But > >> > some of the patches don't have commit message and those are required and > >> > some of the commit messages are just the changes you have made not don't > >> > describe the actual code... > >> > >> Thanks for having a look. > >> It seems odd to require detailed commit messages, when we don't require > >> the same level of quality in the code. > >> Naturally when the driver is moved out of staging a properly detailed > >> commit message should be added, but is that needed on the way in to > >> staging? At this stage I don't know much more than is already there. > >> After I've cleaned up the code I probably will. > >> > >> For patch 01/13 you asked "what kind of device this is". The subject > >> line makes it clear that it is a "pcie driver". What extra detail did > >> you want? Would it be sufficient to just copy the subject line so that > >> it appears twice in the commit message? > >> > > > > Ah... Sorry. It's literally a pcie driver. For some reason I thought > > it was a device that ran over pcie. > > > > We don't require a detailed changelog, but you have to put something... > > Probably just restating the subject and adding that it's for the gnubee1 > > is fine. > > I'll resend sometime next week with more words. However could you > please clarify a couple of things for me? > > 1/ Why do you (sometimes) call the commit message a "change log". When > I see the term "change log" in the context of a patch, my first > thought is that it it means a log of changes that have been made to > the patch - typically through the review cycle. But that isn't what > you mean. This has confused me a couple of times. > Sorry. Yeah. I do use them interchangeably which is probably not the right thing. > 2/ Why don't you consider the first line of the commit message to be > part of the commit message? Why is duplication required? > (You said "some of the patches don't have commit message[s]", > which isn't true, though some of the messages are only one line). > First of all, you're a writer. If you don't like to do things then you need to keep those skills hidden away. I never tell anyone that I know how to program in COBOL (True story. COBOL is great for formatting text on dot matrix printers and for doing decimal math.) This is a hard requirement from Greg, not something that specific to *me* although I do agree with the requirement as well. The idea of forcing everyone to write a commit message is that we're hoping they take a little time to tell a story about what the patch is. Sometimes they're not English majors or whatever and they just restate the subject and whatever, that's fine. The first patch I reviewed in this series was: [PATCH 03/13] staging: mt7621-gpio: ralink: add mt7621 gpio controller A good commit message might be: This adds Mediatek GPIO support for the mt7621 chip. It's used on the Gnubee NAS hardware and a couple other MIPS SoCs. This code originally came from the OpenWRT project. That information was all there in the patch 0 commit but that gets dropped. It's feels a bit weird to put that boilerplate information in every commit, but it means that it's there when we do a git log on the file so I think it's a good idea. Also, and this is my fault not yours of course, but my email client is all text and looks exactly like marc.info: https://marc.info/?l=linux-driver-devel&m=152105965413484&w=2 It's hard to see the subject so I normally don't even read it when I'm looking at patches. regards, dan carpenter