Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3123925yba; Sun, 28 Apr 2019 17:54:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqziItO423JyZQzkvpJY7gbx2YSUtQx+0SA5IpJ48GK6Bb3w1UlfMbrjE161DK/vokw/2eN1 X-Received: by 2002:a63:314a:: with SMTP id x71mr7326155pgx.385.1556499257014; Sun, 28 Apr 2019 17:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556499257; cv=none; d=google.com; s=arc-20160816; b=FkyYCBabmQlhZ3QuRJZrNnVFVCaKqDjl0ptcPEfvcsCmsSsk7LquOUDwn0g/OlzB4V 91WyJQbfk5pDDJfexOaRUTRy5qLFaO0bAqw5GGI6lprttexzflBwk7MhKG+atko6B2KR z1zWCQmJvlvlc5KB5EDX1kPxgz297JcxrBEwDcrL8CNEde7hzDNnPYNU08eDHqCCOK9I BDicpPTsc0QE1pkXojtq6SFYkD9cZpsxKqzOFLE2GC2rflgCsuITo0gKvb7dJ7a28HQr fnMfC32Az78+9Bke+Uu/P4NsfV2fUeoX8m5iubtKzX4DmVxA39IYPBKYqqMck4/YQdUO 6CKg== 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; bh=1aEyk6KyXTkes6wNZ7bVUnqIvfIcEb5aSCVldt6hS7Q=; b=xjtbL+DQPY8c8gOeq896ODo5eHC3Og3ARMt//M3Z9e36fRKD7pz/fy/JF63VEKqO/O lwocwzGpMROE1F4/dfDRMtbjsUgmC09GgsCEKV4A7A2o2r3SPAwRXu6zdzJj1e8ZyJZf chADB4FU3kRqy0qNsQmLtYnhuMMcEJMH0YzeBPVchsY4YGhB6A0VOKyQbBDPh+1yqN4+ EweS0ECsfygk2Co53NGM6CgZR0nz7JjTz345Sn9ysnSj6njtc+rT17QHvZQ7Iu/mvFyZ z4OM0zGPtz8Ewan6wynx6cfkLPpmxIDVQBLs+/NLo8REvng+/6j54w/WT7BtIYv9OwJK ZDww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=plDKryjC; 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 d22si8734930plr.387.2019.04.28.17.53.44; Sun, 28 Apr 2019 17:54:17 -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=plDKryjC; 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 S1726916AbfD2AwZ (ORCPT + 99 others); Sun, 28 Apr 2019 20:52:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:54376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbfD2AwZ (ORCPT ); Sun, 28 Apr 2019 20:52:25 -0400 Received: from localhost (unknown [69.71.4.100]) (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 3FBB420652; Mon, 29 Apr 2019 00:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556499144; bh=7pE6K//V7zwBBFvEvP7+1YH5/ewAhy52lw190q/vHDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=plDKryjCwm6pPTiowYC6gXLb9oZx4EQURMBHS2uYcTTe+3r6oXNCE57Q1PQJOANgR 0qMYpdwLBAgOBbCS90agW19vFlrWq2UjeM1qFynopCmfcZIsppM/h9o7CosP2pL1bX vrbp2TYINWZiIMjkXKFRnp2saVH7c8Hm7bBO2Ugc= Date: Sun, 28 Apr 2019 19:52:22 -0500 From: Bjorn Helgaas To: fred@fredlawl.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mika.westerberg@linux.intel.com, lukas@wunner.de, andriy.shevchenko@linux.intel.com, keith.busch@intel.com, mr.nuke.me@gmail.com, liudongdong3@huawei.com, thesven73@gmail.com Subject: Re: [PATCH 1/4] PCI: Replace dev_*() printk wrappers with pci_*() printk wrappers Message-ID: <20190429005222.GO14616@google.com> References: <20190427191304.32502-1-fred@fredlawl.com> <20190427191304.32502-2-fred@fredlawl.com> <20190429000258.GK14616@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429000258.GK14616@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 28, 2019 at 07:02:58PM -0500, Bjorn Helgaas wrote: > On Sat, Apr 27, 2019 at 02:13:01PM -0500, fred@fredlawl.com wrote: > > From: Frederick Lawler > > > > Replace remaining instances of dev_*() printk wrappers with pci_*() > > printk wrappers. No functional change intended. > > > > Signed-off-by: Frederick Lawler > > --- > > drivers/pci/pcie/aer.c | 13 ++++++------- > > drivers/pci/pcie/aer_inject.c | 4 ++-- > > drivers/pci/pcie/dpc.c | 27 ++++++++++++--------------- > > 3 files changed, 20 insertions(+), 24 deletions(-) > > aer_enable_rootport(rpc); > > - dev_info(device, "AER enabled with IRQ %d\n", dev->irq); > > + pci_info(pdev, "AER enabled with IRQ %d\n", dev->irq); > > And this, and many others below. *This* patch should only convert > > - pci_printk(KERN_DEBUG, pdev, ...) > + pci_info(pdev, ...) > > and > > - dev_printk(KERN_DEBUG, pcie_dev, ...) > + dev_info(pcie_dev, ...) Just to clarify, I do *want* both changes, just in separate patches. So we'd have 1) Convert KERN_DEBUG uses to pci_info() for pci_dev usage and to dev_info() for pcie_device usage. I think pciehp is probably an exception to this; this patch shouldn't touch ctrl_dbg(). 2) Convert "dev_info(pcie_device)" to "pci_info(pci_dev)". It might be worth doing this in separate patches for each service. If we decide they're simple enough to combine, that's trivial for me to do. It's a little more hassle to split things up afterwards. In pciehp, if you do this in the ctrl_*() definitions, it will make the patch much smaller. 3) In pciehp, ctrl_dbg() could probably be changed to use pci_dbg() so we'd use the standard kernel dynamic debug stuff instead of having the pciehp-specific module parameter. Thanks a lot for working on all this. I think it will make the user experience significantly simpler. Bjorn