--- zzzz-none-000/linux-4.9.276/drivers/usb/host/pci-quirks.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/drivers/usb/host/pci-quirks.c 2023-04-05 08:19:02.000000000 +0000 @@ -107,6 +107,8 @@ u8 rev; }; +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS + static struct amd_chipset_info { struct pci_dev *nb_dev; struct pci_dev *smbus_dev; @@ -518,6 +520,10 @@ } EXPORT_SYMBOL_GPL(usb_amd_dev_put); +#endif /* CONFIG_PCI_DISABLE_COMMON_QUIRKS */ + +#if IS_ENABLED(CONFIG_USB_UHCI_HCD) + /* * Make sure the controller is completely inactive, unable to * generate interrupts or do DMA. @@ -597,8 +603,17 @@ uhci_reset_hc(pdev, base); return 1; } +#else +int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base) +{ + return 0; +} + +#endif EXPORT_SYMBOL_GPL(uhci_check_and_reset_hc); +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS + static inline int io_type_enabled(struct pci_dev *pdev, unsigned int mask) { u16 cmd; @@ -1165,3 +1180,4 @@ } DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff); +#endif