mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 23:28:55 +00:00
PCI: Use class for quirk for cardbus_legacy
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
52d21b5ef4
commit
ae9de56bdd
1 changed files with 4 additions and 4 deletions
|
@ -1004,12 +1004,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_vt
|
||||||
*/
|
*/
|
||||||
static void quirk_cardbus_legacy(struct pci_dev *dev)
|
static void quirk_cardbus_legacy(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
if ((PCI_CLASS_BRIDGE_CARDBUS << 8) ^ dev->class)
|
|
||||||
return;
|
|
||||||
pci_write_config_dword(dev, PCI_CB_LEGACY_MODE_BASE, 0);
|
pci_write_config_dword(dev, PCI_CB_LEGACY_MODE_BASE, 0);
|
||||||
}
|
}
|
||||||
DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, quirk_cardbus_legacy);
|
DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
|
||||||
DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_ANY_ID, PCI_ANY_ID, quirk_cardbus_legacy);
|
PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy);
|
||||||
|
DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(PCI_ANY_ID, PCI_ANY_ID,
|
||||||
|
PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Following the PCI ordering rules is optional on the AMD762. I'm not
|
* Following the PCI ordering rules is optional on the AMD762. I'm not
|
||||||
|
|
Loading…
Add table
Reference in a new issue