4202633a3a
When USB_COMMON are not enabled, phy-rtk-usb2 and phy-rtk-usb3 suffers a build error due to a missing usb_debug_root that is provided by CONFIG_USB_COMMON, so make the driver select USB_COMMON. or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.o: in function `create_phy_debug_root': >> drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root' >> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root' or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.o: in function `create_phy_debug_root': >> drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root' >> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root' Fixes:134e6d25f6
("phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY") Fixed:adda6e82a7
("phy: realtek: usb: Add driver for the Realtek SoC USB 3.0 PHY") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202307290733.weSlHrGp-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202307291022.3pVeTR9z-lkp@intel.com/ Signed-off-by: Stanley Chang <stanley_chang@realtek.com> Link: https://lore.kernel.org/r/20230729053029.6226-1-stanley_chang@realtek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
820 B
Plaintext
28 lines
820 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Phy drivers for Realtek platforms
|
|
#
|
|
config PHY_RTK_RTD_USB2PHY
|
|
tristate "Realtek RTD USB2 PHY Transceiver Driver"
|
|
depends on USB_SUPPORT
|
|
select GENERIC_PHY
|
|
select USB_PHY
|
|
select USB_COMMON
|
|
help
|
|
Enable this to support Realtek SoC USB2 phy transceiver.
|
|
The DHC (digital home center) RTD series SoCs used the Synopsys
|
|
DWC3 USB IP. This driver will do the PHY initialization
|
|
of the parameters.
|
|
|
|
config PHY_RTK_RTD_USB3PHY
|
|
tristate "Realtek RTD USB3 PHY Transceiver Driver"
|
|
depends on USB_SUPPORT
|
|
select GENERIC_PHY
|
|
select USB_PHY
|
|
select USB_COMMON
|
|
help
|
|
Enable this to support Realtek SoC USB3 phy transceiver.
|
|
The DHC (digital home center) RTD series SoCs used the Synopsys
|
|
DWC3 USB IP. This driver will do the PHY initialization
|
|
of the parameters.
|