Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp500270imm; Wed, 11 Jul 2018 06:18:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfo/CweM8mEGDq+Lhj8hqEeOmk0uq8M3S+bFqeEaqZ1y/c4f44kzZx6OoFa//+dpEggoZiT X-Received: by 2002:a65:6086:: with SMTP id t6-v6mr27081426pgu.424.1531315098590; Wed, 11 Jul 2018 06:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531315098; cv=none; d=google.com; s=arc-20160816; b=uaZ5lsMhEpahspbLqDQdsCFxHKVq9rtfYDdNYE3+rWoPakyXDDieH2mqrYd8REjF1i xOr4TRuXTa7KB0uQ6VgHZVTtXWQf50ltEpmFUAMdFeDUTpnB068WvniqacNfbdaulCpY uxJeBqfRgG/0HxAseTGmn4Et1Zew6HTPeIdtHA4Fq0Y6yjtB1kktumTlMHd/8z1l7pOi wB2F87v2rsadkkdZi0ULfnZpjnvvi6fFHGlJ6pk/gAMKcFwAJvZzRe1dkIXOWyR3YNxX F+9pQNsN8672d1WB4Dg+bBjAwc5K2OVAcNns8WO5zCAa4D62akscXWs8uSKmI+mNzXAD i2kQ== 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=t3QHt72txDfpwemE46fcXqNolWqoZwS5rBDbxLnchLc=; b=ZKRGTzINa5o50pbBDHtKFHLOvDPc7ndmg1Pp/T19vG1k8752nEW6GD6RiH8y7l34Tz nv1Fg1vE+JgnW/hQgtfjs1Y8dWRveqkkHlqXFqX5ChixRBrLKkrnWRtMyJ2yJ9TH1u4S WLfXRC5V8U0z7LmAhkcHz9Q3vxVzeLVF40UVJJy3FsRm0uCX7rOAXbXdEbnONZV6Ztr+ lxYC9ohfOs/A6Gb8/8VpAvbYQIlv/p9aATZ7y5n2bdRUpBhI8ubEuLc345u+gDbPop3h Zm8q6w4RlvdsFwiVUoHy/27gBuHhAw/03FI7keu+kq9/0Q3TrNbZdlXe0xRMr4tFVnDL JWWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pCCzl+vY; 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 d37-v6si19115570plb.481.2018.07.11.06.18.03; Wed, 11 Jul 2018 06:18:18 -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=pCCzl+vY; 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 S1732678AbeGKNP6 (ORCPT + 99 others); Wed, 11 Jul 2018 09:15:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:46400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbeGKNP6 (ORCPT ); Wed, 11 Jul 2018 09:15:58 -0400 Received: from localhost (173-25-171-118.client.mchsi.com [173.25.171.118]) (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 83E3020846; Wed, 11 Jul 2018 13:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531314700; bh=pDLuJsqlZXBkmD+/DI1lRwl0mNW/VMAbCv8YTLY0UrE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pCCzl+vYpSGLZzTVq1n0+P6Yl8jRg+d+5tQpew2xlAahf8r4Izv/aYavpLaEW0Xlp vQH0zEqSQX504668QXIKpDHNsUjdLyg21O4IQXMJcBmmypgZjjXDveTXMwaY1B7Xm+ 8f7bQGRN+NBug8o6xmCU+7JNxMLsUsuADV6hfjms= Date: Wed, 11 Jul 2018 08:11:38 -0500 From: Bjorn Helgaas To: Ray Jui Cc: Lorenzo Pieralisi , Bjorn Helgaas , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 1/5] PCI: iproc: Activate PAXC bridge quirk for more devices Message-ID: <20180711131138.GE188359@bhelgaas-glaptop.roam.corp.google.com> References: <1528762867-16823-1-git-send-email-ray.jui@broadcom.com> <1528762867-16823-2-git-send-email-ray.jui@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528762867-16823-2-git-send-email-ray.jui@broadcom.com> 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 Mon, Jun 11, 2018 at 05:21:03PM -0700, Ray Jui wrote: > Activate PAXC bridge quirk for more PAXC based PCIe root complex with > the following PCIe device ID: > 0xd750, 0xd802, 0xd804 > > Signed-off-by: Ray Jui Because this quirk_paxc_bridge() mechanism is already established, Acked-by: Bjorn Helgaas BUT, I would push back on quirk_paxc_bridge() if it were new code. I think it would be much better to implement this in the driver's config accessors so lspci would show the correct things and the generic code that deals with pcie_mpss would work unmodified. > --- > drivers/pci/quirks.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 2990ad1..47dfea0 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) > } > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, quirk_paxc_bridge); > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, quirk_paxc_bridge); > #endif > > /* Originally in EDAC sources for i82875P: > -- > 2.1.4 >