Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: tegra: use MODULE_FIRMWARE if SOC is ENABLED

This allows to reduce the size of the initramfs by only selecting
the related firmware when a given SOC is enabled.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Link: https://patch.msgid.link/20260323140249.173603-1-kwizart@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nicolas Chauvet and committed by
Greg Kroah-Hartman
448f428a a402532a

+8
+8
drivers/usb/host/xhci-tegra.c
··· 2562 2562 .smi_intr = XUSB_CFG_ARU_SMI_INTR, 2563 2563 }, 2564 2564 }; 2565 + #if IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC) || IS_ENABLED(CONFIG_ARCH_TEGRA_132_SOC) 2565 2566 MODULE_FIRMWARE("nvidia/tegra124/xusb.bin"); 2567 + #endif 2566 2568 2567 2569 static const char * const tegra210_supply_names[] = { 2568 2570 "dvddio-pex", ··· 2602 2600 .smi_intr = XUSB_CFG_ARU_SMI_INTR, 2603 2601 }, 2604 2602 }; 2603 + #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC) 2605 2604 MODULE_FIRMWARE("nvidia/tegra210/xusb.bin"); 2605 + #endif 2606 2606 2607 2607 static const char * const tegra186_supply_names[] = { 2608 2608 }; 2609 + #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) 2609 2610 MODULE_FIRMWARE("nvidia/tegra186/xusb.bin"); 2611 + #endif 2610 2612 2611 2613 static const struct tegra_xusb_phy_type tegra186_phy_types[] = { 2612 2614 { .name = "usb3", .num = 3, }, ··· 2683 2677 }, 2684 2678 .lpm_support = true, 2685 2679 }; 2680 + #if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) 2686 2681 MODULE_FIRMWARE("nvidia/tegra194/xusb.bin"); 2682 + #endif 2687 2683 2688 2684 static const struct tegra_xusb_soc_ops tegra234_ops = { 2689 2685 .mbox_reg_readl = &bar2_readl,