diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2025-01-22 07:52:44 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-07 18:25:36 +0100 |
| commit | adec6338b04390df174f195944a64857342d4bc2 (patch) | |
| tree | f947f03c878c174c4dd53ea8f89513f443cf3a61 /scripts/patch-kernel | |
| parent | a455aa3403bf45097cb848f298e59b4b88e407cc (diff) | |
| download | linux-adec6338b04390df174f195944a64857342d4bc2.tar.gz linux-adec6338b04390df174f195944a64857342d4bc2.tar.bz2 linux-adec6338b04390df174f195944a64857342d4bc2.zip | |
phy: rockchip: fix Kconfig dependency more
[ Upstream commit fcf5d353b09b3fc212ab24b89ef23a7a8f7b308e ]
A previous patch ensured that USB Type C connector support is enabled,
but it is still possible to build the phy driver without enabling
CONFIG_USB (host support) or CONFIG_USB_GADGET (device support), and
in that case the common helper functions are unavailable:
aarch64-linux-ld: drivers/phy/rockchip/phy-rockchip-usbdp.o: in function `rk_udphy_probe':
phy-rockchip-usbdp.c:(.text+0xe74): undefined reference to `usb_get_maximum_speed'
Select CONFIG_USB_COMMON directly here, like we do in some other phy
drivers, to make sure this is available even when actual USB support
is disabled or in a loadable module that cannot be reached from a
built-in phy driver.
Fixes: 9c79b779643e ("phy: rockchip: fix CONFIG_TYPEC dependency")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250122065249.1390081-1-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
