linux/arch/mips/cavium-octeon
Orgad Shaneh 126f16e0a1 MIPS: Octeon: apply USB FDT fixups also when USB is modular
The uctl/usbn device-tree fixups in octeon_prune_device_tree() - which
set the board's USB reference-clock frequency and type from
__cvmx_helper_board_usb_get_clock_type() - are guarded by
"#ifdef CONFIG_USB", which is false when USB is built as a module. The
fixups then silently disappear and octeon-hcd sees whatever default the
DTS carries (12MHz crystal in octeon_3xxx.dts), leaving the PHY dead or
the bus erroring on boards with a different reference clock.

Use IS_ENABLED() so USB=m gets the same fixups as USB=y.

Fixes: 7fd57ab9d9 ("MIPS: Octeon: Fix compile error when USB is not enabled.")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Orgad Shaneh <orgads@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2026-09-08 16:12:20 +02:00
..
executive staging: octeon: convert cvmx_pko_status_t from typedef to plain enum 2026-05-04 16:21:34 +02:00
cpu.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
csrc-octeon.c MIPS: Fix typos 2024-01-08 10:39:12 +01:00
dma-octeon.c swiotlb: make the swiotlb_init interface more useful 2022-04-18 07:21:11 +02:00
flash_setup.c MIPS: Explicitly include correct DT includes 2023-07-25 10:42:01 +02:00
Kconfig lib/crypto: sha256: Consolidate into single module 2025-07-04 10:23:11 -07:00
Makefile mips: cavium-octeon: Move octeon-crypto.c into parent dir 2025-08-26 12:52:28 -04:00
oct_ilm.c mips: cavium: convert to DEFINE_SHOW_ATTRIBUTE 2022-09-19 16:39:47 +02:00
octeon_boot.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
octeon-crypto.c mips: cavium-octeon: Move octeon-crypto.c into parent dir 2025-08-26 12:52:28 -04:00
octeon-irq.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
octeon-memcpy.S mips: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-15 10:22:23 +02:00
octeon-platform.c MIPS: Octeon: apply USB FDT fixups also when USB is modular 2026-09-08 16:12:20 +02:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
setup.c range.h: Move resource API and constant to respective files 2023-08-18 10:19:00 -07:00
smp.c mips/octeon/smp: Remove space before newline 2025-08-29 11:55:11 +02:00