linux-stable/drivers/soc
Randy Dunlap cd71294bab soc/fsl/qe: fix usb.c build errors
[ Upstream commit 7b1a78babd ]

Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set.
This happens when PPC_EP88XC is set, which selects CPM1 & CPM.
When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE
being set. When USB_FSL_QE is set, QE_USB deafults to y, which
causes build errors when QUICC_ENGINE is not set. Making
QE_USB depend on QUICC_ENGINE prevents QE_USB from defaulting to y.

Fixes these build errors:

drivers/soc/fsl/qe/usb.o: in function `qe_usb_clock_set':
usb.c:(.text+0x1e): undefined reference to `qe_immr'
powerpc-linux-ld: usb.c:(.text+0x2a): undefined reference to `qe_immr'
powerpc-linux-ld: usb.c:(.text+0xbc): undefined reference to `qe_setbrg'
powerpc-linux-ld: usb.c:(.text+0xca): undefined reference to `cmxgcr_lock'
powerpc-linux-ld: usb.c:(.text+0xce): undefined reference to `cmxgcr_lock'

Fixes: 5e41486c40 ("powerpc/QE: add support for QE USB clocks routing")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202301101500.pillNv6R-lkp@intel.com/
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Leo Li <leoyang.li@nxp.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: Qiang Zhao <qiang.zhao@nxp.com>
Cc: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Nicolas Schier <nicolas@jasle.eu>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 11:45:08 +02:00
..
actions
amlogic meson-mx-socinfo: Fix refcount leak in meson_mx_socinfo_init 2022-08-25 11:15:00 +02:00
atmel drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] 2021-02-03 23:23:24 +01:00
bcm soc: brcmstb: pm-arm: Fix refcount leak and __iomem leak bugs 2022-09-15 12:17:05 +02:00
dove
fsl soc/fsl/qe: fix usb.c build errors 2023-08-11 11:45:08 +02:00
gemini
imx
lantiq
mediatek Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 18:23:15 +01:00
qcom soc: qcom: Select REMAP_MMIO for LLCC driver 2023-01-18 11:30:41 +01:00
renesas
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 16:59:32 +02:00
samsung
sunxi soc: sunxi: sram: Fix debugfs info for A64 SRAM C 2022-10-05 10:36:45 +02:00
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:19:01 +01:00
ti drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static 2023-01-18 11:30:02 +01:00
ux500 ARM: ux500: do not directly dereference __iomem 2023-01-18 11:30:41 +01:00
versatile
xilinx
zte
Kconfig
Makefile