From 259cb4e8cca0c9061ee6b3b183c1dd5460b58cd9 Mon Sep 17 00:00:00 2001 From: Alexey Minnekhanov Date: Sat, 4 Jan 2025 09:31:24 +0300 Subject: [PATCH] FIXME: mach-snapdragon: Don't do USB node fixup to OTG The breaks USB gadget mode on our phones and tablets. Signed-off-by: Alexey Minnekhanov --- arch/arm/mach-snapdragon/of_fixup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c index 55368dd43b66..9799495e49f5 100644 --- a/arch/arm/mach-snapdragon/of_fixup.c +++ b/arch/arm/mach-snapdragon/of_fixup.c @@ -156,8 +156,9 @@ void qcom_of_fixup_nodes(void) time_call(fixup_power_domains); } -int ft_board_setup(void *blob, struct bd_info __maybe_unused *bd) +int ft_board_setup(void __maybe_unused *blob, struct bd_info __maybe_unused *bd) { +#if 0 struct fdt_header *fdt = blob; int node; @@ -170,6 +171,7 @@ int ft_board_setup(void *blob, struct bd_info __maybe_unused *bd) fdt_setprop_string(fdt, node, "dr_mode", "otg"); break; } +#endif return 0; }