]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/pci: Change the DECLARE_PCI_FIXUP_{HEADER => EARLY} macro of pci quirk
authorChunhe Lan <Chunhe.Lan@freescale.com>
Fri, 2 Aug 2013 08:46:25 +0000 (16:46 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 29 Oct 2013 02:11:15 +0000 (21:11 -0500)
commitbbd234b146a158ae59da0592c1598336db63b0fc
treef3dc8f84163fb5aba5098c0ab44ca394ddb27538
parent0e3d4373b8a7757a8f5187f5cabafb6aceff469b
powerpc/pci: Change the DECLARE_PCI_FIXUP_{HEADER => EARLY} macro of pci quirk

Freescale platform has class code = 0x0b2000, when it boots. This makes
kernel PCI bus code to setup these devices resulting into the following
notice information when trying to enable them:

pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)

The above information is outputted by judging value of dev->class before
pci_setup_device() function, and the DECLARE_PCI_FIXUP_HEADER quirk runs
after pci_setup_device() function. But the DECLARE_PCI_FIXUP_EARLY quirk
runs before judging value of dev->class and pci_setup_device() function.
So we use the DECLARE_PCI_FIXUP_EARLY macro to fix this issue.

Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/fsl_pci.c