]> git.ipfire.org Git - thirdparty/openwrt.git/commit
generic: fix disable common USB quirks patch 18637/head
authorShiji Yang <yangshiji66@outlook.com>
Thu, 1 May 2025 05:51:13 +0000 (13:51 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 17 May 2025 17:46:52 +0000 (19:46 +0200)
commit803070e07f7213a8061bb8518771e807a693c06e
treef517759cde65b39e8f8cda2cc047f8ec529a1652
parent4dc10ec71107f14dbf0d66d855eca43106babb4a
generic: fix disable common USB quirks patch

Remove modifications for codes guarded by CONFIG_USB_PCI_AMD.
This kernel symbol is only visible on desktop level platform,
e.g. x86. They are not sensitive to firmware image size. This
patch also fixes function redefinition build errors:

drivers/usb/host/pci-quirks.c:621:6: error: redefinition of 'usb_asmedia_modifyflowcontrol'
  621 | void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/host/pci-quirks.c:22:
drivers/usb/host/pci-quirks.h:49:20: note: previous definition of 'usb_asmedia_modifyflowcontrol' with type 'void(struct pci_dev *)'
   49 | static inline void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) {}
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: be6753dda00c ("generic: 6.12: manually rebuild pending patches")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/pending-6.12/811-pci_disable_usb_common_quirks.patch