]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Add quirk for setting valid class for TI816X Endpoint
authorHemant Pedanekar <hemantp@ti.com>
Tue, 5 Apr 2011 07:02:50 +0000 (12:32 +0530)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:41 +0000 (11:20 -0400)
commitb5c7034dbdf8a0a5f32a4db9af3345d033b1bf49
tree5d839b8846ccaba78486d09df9dac72f3269cc58
parent1239f38ef01c3e1e83d188a9f264cf4404561f76
PCI: Add quirk for setting valid class for TI816X Endpoint

commit 63c4408074cbcc070ac17fc10e524800eb9bd0b0 upstream.

TI816X (common name for DM816x/C6A816x/AM389x family) devices configured
to boot as PCIe Endpoint have class code = 0. This makes kernel PCI bus
code to skip allocating BARs to these devices resulting into following
type of error when trying to enable them:

"Device 0000:01:00.0 not available because of resource collisions"

The device cannot be operated because of the above issue.

This patch adds a ID specific (TI VENDOR ID and 816X DEVICE ID based)
'early' fixup quirk to replace class code with
PCI_CLASS_MULTIMEDIA_VIDEO as class.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/pci/quirks.c