From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Subject: Re: Neophyte questions about PCIe From: Mason To: Bjorn Helgaas Cc: linux-pci , Rob Herring , Ard Biesheuvel , Thibaud Cornic , David Laight , Phuong Nguyen , Shawn Lin , Robin Murphy , Linux ARM References: <20170308151724.GA20780@bhelgaas-glaptop.roam.corp.google.com> <9ba05c2c-57ef-b2c0-6a7c-457c392d98b5@free.fr> Message-ID: <94b3c89c-b116-288f-7530-15cc2611f425@free.fr> Date: Tue, 14 Mar 2017 15:00:11 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 List-ID: On 10/03/2017 18:49, Mason wrote: > /* Root complex reports incorrect device class */ > static void tango_pcie_fixup_class(struct pci_dev *dev) > { > dev->class = PCI_CLASS_BRIDGE_PCI << 8; > } Gen1 controller reports class/rev = 0x04800001 Gen2 controller reports class/rev = 0x06000001 #define PCI_CLASS_BRIDGE_HOST 0x0600 #define PCI_CLASS_BRIDGE_ISA 0x0601 #define PCI_CLASS_BRIDGE_EISA 0x0602 #define PCI_CLASS_BRIDGE_MC 0x0603 #define PCI_CLASS_BRIDGE_PCI 0x0604 #define PCI_CLASS_BRIDGE_PCMCIA 0x0605 #define PCI_CLASS_BRIDGE_NUBUS 0x0606 #define PCI_CLASS_BRIDGE_CARDBUS 0x0607 #define PCI_CLASS_BRIDGE_RACEWAY 0x0608 #define PCI_CLASS_BRIDGE_OTHER 0x0680 My fixup replaces 0x048000 with 0x060400. 0x060400 != 0x060000 Which is correct: PCI_CLASS_BRIDGE_HOST or PCI_CLASS_BRIDGE_PCI? Naively, I would expect Host/PCI bridge to be more correct for a root complex. Regards.