Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp786769imm; Wed, 8 Aug 2018 05:52:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwO0e1Z7533qElB/m3DoJ2DcbXhsBccKM1RCXzaO3JBMzovrJaI9d9CKl9i0Izx5sfN3jXR X-Received: by 2002:a65:665a:: with SMTP id z26-v6mr2425735pgv.193.1533732775870; Wed, 08 Aug 2018 05:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533732775; cv=none; d=google.com; s=arc-20160816; b=gxkzXp2VirrO+2MVYClMvGqMWKgAANKOiuZPIbnOEtHSwTFz86X4juYRvpK95Y3t0b O2b/heAxGy0gtYf909yOGvytgldWf5/f9vLv2CZWTTHbSB6uCuvU8SmfFj4xJqXhWfr5 aaqQQ5qYXpbtSdFSkJ4+9a+zcm743o9ckD2ByPiP2yGM3mY8xW+idbhjaEoeWG8VHVgr L/XR7zPPzMheD7JqTnw4TaA02eT96JYFmIBkmNRcfgIc16uZV+mq+nohVZJUephPyAQS cbEziwVxkgYBxEz38S/AZQZknvzZ6D3+89iObrqSLUXxddk95VLKlPtySeBG6aXc963O W3rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:reply-to:dkim-signature:arc-authentication-results; bh=xMm106mCHWEnvfkl7WiGqtjnU6sBBYeXfiNefuXlZcg=; b=x01SpE9C8pLhOoHiwBca8pMU0H4DunS4ynjXl9VInYugUJAviEcJzSYux3ad+JKpqF bF1K4L4iXEe+prYNsyI2baEPFQpOnoGWTWMyQ9+h/Qcm8Y2pOlC8ltL5YF4PT5c/afio QRu5p+m0DAvAr6rIp74WBCeg/407cWrUXS++b12vugkd2kRnGSV2j1DA23YJtUnW60tS nL1NpbDFInR4dW7viHXROFQoSv6kHaPoWPbidM0dMPRsjbcI79X/4k/jx816blQznfWG CUnwTf/1HrvrWx9rsxHgSpvZSWVkwdTF69ghmE/dnGp4D48H0IamLS68bNV7Y/zTlQFm QaaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=aTSOOqRq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13-v6si4714854pfd.50.2018.08.08.05.52.41; Wed, 08 Aug 2018 05:52:55 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=aTSOOqRq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbeHHPLY (ORCPT + 99 others); Wed, 8 Aug 2018 11:11:24 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58950 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbeHHPLY (ORCPT ); Wed, 8 Aug 2018 11:11:24 -0400 Received: from [192.168.0.67] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 98AFC57; Wed, 8 Aug 2018 14:51:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1533732708; bh=y//qQYoIbU08EZuBytCqAM616fsUErEcG7lbzoui5uM=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aTSOOqRqQ9XhUVCOGBjJJkZUlWNUFeCayLymJvJi5hB2yL5ilfXR0idJ+cUgtkZSx 41ugbqFSSRumFCrGexcFemkPCIygWzNvsp8cxvC0DhU85VeZXEIJuofT6UiDb89nnx YHQPKw7iZZDpZK1jUZiWonLQEegd0KIv/LSb0tbo= Reply-To: kieran.bingham@ideasonboard.com Subject: Re: [PATCH] media: dt: adv7604: Fix slave map documentation To: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= , Laurent Pinchart Cc: mchehab@kernel.org, linux-media@vger.kernel.org, Rob Herring , Mark Rutland , linux-renesas-soc@vger.kernel.org, Kieran Bingham , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180807155452.797-1-kieran.bingham@ideasonboard.com> <505904fb-7bfc-c455-740e-b72a14731eb9@ysoft.com> <5273911.bCJl0SVgzf@avalon> From: Kieran Bingham Openpgp: preference=signencrypt Autocrypt: addr=kieran.bingham@ideasonboard.com; keydata= xsFNBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5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PNCsMTqeUkAKfbD8xW4LCay3r/dD2ckoxRxtMD9eOAyu5wYzo/ydIPTh1QEj9SYyvp8 O0g6CpxEwyHUQtF5oh15O018z3ZLztFJKR3RD42VKVsrnNDKnoY0f4U0z7eJv2NeF8xHMuiU RCIzqxX1GVYaNkKTnb/Qja8hnYnkUzY1Lc+OtwiGmXTwYsPZjjAaDX35J/RSKAoy5wGo/YFA JxB1gWThL4kOTbsqqXj9GLcyOImkW0lJGGR3o/fV91Zh63S5TKnf2YGGGzxki+ADdxVQAm+Q sbsRB8KNNvVXBOVNwko86rQqF9drZuw= Organization: Ideas on Board Message-ID: <4e8e3546-21f0-33c2-42b2-db0bbe9ed11d@ideasonboard.com> Date: Wed, 8 Aug 2018 13:51:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, On 08/08/18 13:33, Michal Vokáč wrote: > On 8.8.2018 12:25, Laurent Pinchart wrote: >> Hi Kieran, >> >> On Wednesday, 8 August 2018 13:23:32 EEST Kieran Bingham wrote: >>> Hi Michal, >>> >>> Thank you for your review. >>> >>> +Rob, +Mark, +Laurent asking for opinions if anyone has any on prefixes >>> through media tree. >>> >>> On 08/08/18 08:48, Michal Vokáč wrote: >>>> On 7.8.2018 17:54, Kieran Bingham wrote: >>>> Hi Kieran, >>>> >>>>> The reg-names property in the documentation is missing an '='. Add it. >>>>> >>>>> Fixes: 9feb786876c7 ("media: dt-bindings: media: adv7604: Extend >>>>> bindings to allow specifying slave map addresses") >>>> >>>> "dt-bindings: media: " is preferred for the subject. >>> >>> This patch will go through the media-tree as far as I am aware, and >>> Mauro prefixes all commits through the media tree with "media:" if they >>> are not already prefixed. > > OK, I did not know about that practice with the prefix. It's media specific. It used to be [media], but now changed to "media:" > Anyway, why should this patch go through media-tree when it is a single > patch affecting device tree binding only? I would expect it to be picked > by Rob or Mark. My change 9feb786876c7 went through the media tree, because it directly affected a media driver. This change affects the same thing, so I assumed it's a media-tree patch, but I could be wrong. I'll await to be told :) >>> Thus this would then become "media: dt-bindings: media: adv7604: ...." >>> as per my commit: 9feb786876c7 which seems a bit redundant. > > Agree that this seems redundant. Absolutely no offense, just a curious > newbee question - why is the "media:" prefix added later on to *all* the > patches at all? Mauro's tree style choice as far as I know. > I understand that each subsystem has it own convenience what subject > prefix to use. Given that all patches are propperly formated after > the review process is finished I do not see a reason why the subject > should be changed. > > So patches to "drivers/media/xxx" should land as "media: xxx: ..." and > patches to "Documentation/devicetree/bindings/xxx" should land as > "dt-bindings: media: xxx". > > This allows easier git log browsing. >>> >>> Is it still desired ? If so I'll send a V2. (perhaps needed anyway, as I >>> seem to have erroneously shortened dt-bindings: to just dt: which wasn't >>> intentional. > > I do not know. Some time ago I tripped over a patch from Rob explaining > how to properly format dt-binding related patches. I also read a bunch > of his replies to emails that were kind of "out of bounds" in this regard. > So I got an impression that he is starting to be upset that people still > make the same mistakes and do not read > devicetree/bindings/submitting-patches.txt Well - I didn't know that existed :) So I've learnt something new. Seems we now have three "submitting-patches" files to read: find | grep submitting-patches ./Documentation/process/submitting-patches.rst ./Documentation/hwmon/submitting-patches ./Documentation/devicetree/bindings/submitting-patches.txt Perhaps adding some rules into checkpatch.pl is the way forward to enforce prefixes where necessary ? > I deeply memorized that "rules" and once a while I go through the DT list > and reply to some emails that does not fit. Just because I am sure > that all maintainers are overloaded and surely have something more useful > to do than commenting on trivial mistakes. Absolutely! I believe that is a worthwhile thing to do :) and certainly eases the strain on maintainers. > Next time I will choose more wisely what emails I reply to :) >>> >>>> I think you should also add device tree maintainers to the recipients. >>> >>> Added to this mail to ask opinions on patch prefixes above. >>> >>> Originally, I believed the list was sufficient as this is a trivial >>> patch, and it goes through the media tree. >>> >>> But, it turned out to be more controversial :) >>> >>> Rob, Mark, should I add you to all patches affecting DT? Or is the list >>> sufficient? >> >> Given the insane amount of patches received by DT maintainers, I >> personally >> try to use common sense and only disturb them when needed. Such a typo >> fix >> doesn't qualify for a full CC list in my opinion. > > OK, sorry you spent your time discussing such a trivial thing folks. > I am still learning how to efficiently contribute and I still very much > depend on get_maintainers.pl output and other great tools others created ;) Yes, the difficulty is having so many lists, and subsystems with different preferences. I've been told off for blindly including all recipients from get_maintainers. Otherwise I'd just always use "git send-email --cc-cmd ./scripts/get_maintainers.pl ..." > Thank you for your time, And yours :) > Michal Kieran > >>>>> Signed-off-by: Kieran Bingham >>>>> --- >>>>>    Documentation/devicetree/bindings/media/i2c/adv7604.txt | 2 +- >>>>>    1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/media/i2c/adv7604.txt >>>>> b/Documentation/devicetree/bindings/media/i2c/adv7604.txt >>>>> index dcf57e7c60eb..b3e688b77a38 100644 >>>>> --- a/Documentation/devicetree/bindings/media/i2c/adv7604.txt >>>>> +++ b/Documentation/devicetree/bindings/media/i2c/adv7604.txt >>>>> @@ -66,7 +66,7 @@ Example: >>>>>             * other maps will retain their default addresses. >>>>>             */ >>>>>            reg = <0x4c>, <0x66>; >>>>> -        reg-names "main", "edid"; >>>>> +        reg-names = "main", "edid"; >>>>>              reset-gpios = <&ioexp 0 GPIO_ACTIVE_LOW>; >>>>>            hpd-gpios = <&ioexp 2 GPIO_ACTIVE_HIGH>; >> > -- Regards -- Kieran