Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2573909rdg; Mon, 16 Oct 2023 08:22:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvOuYwXNu7DAuTcXXTJeZ91rFIguh7x+gUJ+vBo5JHypmo4db2/VUyDfzPEPhYg2K6/33d X-Received: by 2002:a05:6358:924:b0:14c:ff8a:6501 with SMTP id r36-20020a056358092400b0014cff8a6501mr45244549rwi.0.1697469766903; Mon, 16 Oct 2023 08:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697469766; cv=none; d=google.com; s=arc-20160816; b=RW8uz9uxVCcIaKIbWe2UiXqV1k4EyYFaN99rf9MAbIiWQuBrW2Vbv6wAQA0fMUXOqO AkZ/9rKeqWQS36yhgcEbhitw8bxXg1dMHXJnmOj7j6zH/be5cBytWLv5ud2ru1+p9u4h V9YsX2Ab6ijUBCMLDdAF1EGRNz3mHGljcErNIDJjgqEzg3v+fu0RNDnDMJYuQ1aJ/C2a F0jvEBy4Up2kTq6X6CSwJtUX6NjJkMGWQ0WJbF52A4bTM6EzXi9AUgnKSUH0bgokY7Xh R7l9f9Ttp+hjGQHgwEaU7kaqCU+waiKum3gQIrFOIhAmW90uYOi2erLVKUA73nDaVrvA 9pjw== 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=SYVZrzXmBWTvr+IEOp+a9QQSP0oQOWXilAJSLa2y8WE=; fh=EE897ncz460hB/ASxrd640I56j7HADvl2ubBkIYVRDY=; b=GrfbBzwBsQ2tO7X8ZhRq+51MAXYCerGdqGKUN5SwRannmcjTvkDg7MP9VMXaVjk3SQ +wS/+BcsDzh8fkCMFs2LSJvrUBwgYwZGcgbv94y2swELnEjr7IcVOZiIDfb05drtox+j mR70023M8TwdxmTdtC3rfA6YzUIVkxM7c2c+ZAUBIcxVJJ7fc3fNgILEfJ/o5w7LwiI6 unmToSARquyFzIlvoF8Iucvm4s5zCSuz0C+CKv48LHuI8ZQIJiHDa7iLRuQNfXWN/N1P ZeTt2T8tFajJOoAVpX5dOi+0OQFcc0P2ENPS/F8rykNqxAx5R5t36xDuZW8xEg0IZv/K ETQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IT+fImRQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f15-20020aa7968f000000b006896e2f30f2si11780pfk.365.2023.10.16.08.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IT+fImRQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3E0A180A80FD; Mon, 16 Oct 2023 08:22:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjJPPW1 (ORCPT + 99 others); Mon, 16 Oct 2023 11:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbjJPPWQ (ORCPT ); Mon, 16 Oct 2023 11:22:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D48B4; Mon, 16 Oct 2023 08:22:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79232C433C9; Mon, 16 Oct 2023 15:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697469733; bh=DowPxR62zPnMI4kLLinoy26En/26UZyXsXLcIQU2wuc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=IT+fImRQPlOYJhujnsfj2sgXczN1y/eLhEkCdVka5yvLsmoLpXAFOeLZA323k82r4 LKjE7pUNRXRN3PNlWylJClZv6rdXLo2KKMyfWU20LEQW1Yz/KNNKKZyJFxNZJo5nnC 7OlqaVZbNAyEXsd7/p5NMe69Z+N2SJ4erubRNTz/gX9hBiO0QgQz0LQ6KHo6r0PbcS F2nj1ESGbj+JNTDtgRGqQva8Dgnp46ZWHOzayojG4VvUslIxI735LUwwovy5nQdYJw t2s79YhK/Z8o31cA1qEnKUvSnfx/LHRucRQFMQzxEUdk3RsMCFhbM/kVbtmITguiJD TwAanPPal3P/g== Date: Mon, 16 Oct 2023 10:22:11 -0500 From: Bjorn Helgaas To: Frank Li Cc: Lorenzo Pieralisi , Minghuan Lian , Mingkai Hu , Roy Zang , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , "open list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , "open list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , "moderated list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , open list , imx@lists.linux.dev Subject: Re: [PATCH 2/3] PCI: layerscape: add suspend/resume for ls1021a Message-ID: <20231016152211.GA1209639@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:22:44 -0700 (PDT) On Mon, Oct 16, 2023 at 10:45:25AM -0400, Frank Li wrote: > On Tue, Oct 10, 2023 at 06:02:36PM +0200, Lorenzo Pieralisi wrote: > > On Tue, Oct 10, 2023 at 10:20:12AM -0400, Frank Li wrote: > > > Ping > > > > Read and follow please (and then ping us): > > https://lore.kernel.org/linux-pci/20171026223701.GA25649@bhelgaas-glaptop.roam.corp.google.com > > Could you please help point which specic one was not follow aboved guide? > Then I can update my code. I think that's efficial communication method. I > think I have read it serial times. But not sure which one violate the > guide? > > @Bjorn Helgaas. How do you think so? Since Lorenzo didn't point out anything specific in the patch itself, I think he was probably referring to the subject line and this advice: - Follow the existing convention, i.e., run "git log --oneline " and make yours match in format, capitalization, and sentence structure. For example, native host bridge driver patch titles look like this: PCI: altera: Fix platform_get_irq() error handling 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 In this case, your subject line was: PCI: layerscape: add suspend/resume for ls1021a The advice was to run this: $ git log --oneline drivers/pci/controller/dwc/pci-layerscape.c 83c088148c8e PCI: Use PCI_HEADER_TYPE_* instead of literals 9fda4d09905d PCI: layerscape: Add power management support for ls1028a 277004d7a4a3 PCI: Remove unnecessary includes 60b3c27fb9b9 PCI: dwc: Rename struct pcie_port to dw_pcie_rp d23f0c11aca2 PCI: layerscape: Change to use the DWC common link-up check function 7007b745a508 PCI: layerscape: Convert to builtin_platform_driver() 60f5b73fa0f2 PCI: dwc: Remove unnecessary wrappers around dw_pcie_host_init() b9ac0f9dc8ea PCI: dwc: Move dw_pcie_setup_rc() to DWC common code f78f02638af5 PCI: dwc: Rework MSI initialization Note that these summaries are all complete sentences that start with a capital letter: Use PCI_HEADER_TYPE_* instead of literals Add power management support for ls1028a Remove unnecessary includes ... So yours could be this: PCI: layerscape: Add suspend/resume for ls1021a ^ This is trivial, obviously. But the uppercase/lowercase distinction carries information, and it's an unnecessary distraction to notice that "oh, this is different from the rest; is the difference important or should I ignore it?" Obviously Lorenzo *could* edit all your subject lines on your behalf, but it makes everybody's life easier if people look at the existing code and follow the style when making changes. E.g., write subject lines that are similar in style to previous ones, name local variables similarly to other functions, use line lengths consistent with the rest of the file, etc. After applying a change, the file should look like a coherent whole; we should not be able to tell that this hunk was added later by somebody else. This all helps make the code (and the git history) more readable and maintainable. Bjorn