mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
010f0dff9f
When CONFIG_ARCH_SUNXI is not set but CONFIG_COMPILE_TEST=y,
CONFIG_HAVE_CLK=y, CONFIG_HAVE_LEGACY_CLK=y, there exists
the following build errors with CONFIG_PHY_SUN6I_MIPI_DPHY=y:
drivers/phy/allwinner/phy-sun6i-mipi-dphy.o: In function `sun6i_dphy_init':
phy-sun6i-mipi-dphy.c:(.text+0x320): undefined reference to `clk_set_rate_exclusive'
drivers/phy/allwinner/phy-sun6i-mipi-dphy.o: In function `sun6i_dphy_exit':
phy-sun6i-mipi-dphy.c:(.text+0x2c8): undefined reference to `clk_rate_exclusive_put'
clk_set_rate_exclusive() and clk_rate_exclusive_put() are defined
in drivers/clk/clk.c, this file is built under CONFIG_COMMON_CLK,
so in order to build drivers/phy/allwinner/phy-sun6i-mipi-dphy.c
successful used with various configs, CONFIG_PHY_SUN6I_MIPI_DPHY
should depend on CONFIG_COMMON_CLK.
Fixes: 133552bf03
("phy: Remove CONFIG_ARCH_* check for related subdir in Makefile")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/1594113746-25393-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Phy drivers for Allwinner platforms
|
|
#
|
|
config PHY_SUN4I_USB
|
|
tristate "Allwinner sunxi SoC USB PHY driver"
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
depends on RESET_CONTROLLER
|
|
depends on EXTCON
|
|
depends on POWER_SUPPLY
|
|
depends on USB_SUPPORT
|
|
select GENERIC_PHY
|
|
select USB_COMMON
|
|
help
|
|
Enable this to support the transceiver that is part of Allwinner
|
|
sunxi SoCs.
|
|
|
|
This driver controls the entire USB PHY block, both the USB OTG
|
|
parts, as well as the 2 regular USB 2 host PHYs.
|
|
|
|
config PHY_SUN6I_MIPI_DPHY
|
|
tristate "Allwinner A31 MIPI D-PHY Support"
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
depends on HAS_IOMEM && COMMON_CLK
|
|
depends on RESET_CONTROLLER
|
|
select GENERIC_PHY
|
|
select GENERIC_PHY_MIPI_DPHY
|
|
select REGMAP_MMIO
|
|
help
|
|
Choose this option if you have an Allwinner SoC with
|
|
MIPI-DSI support. If M is selected, the module will be
|
|
called sun6i_mipi_dphy.
|
|
|
|
config PHY_SUN9I_USB
|
|
tristate "Allwinner sun9i SoC USB PHY driver"
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
depends on RESET_CONTROLLER
|
|
depends on USB_SUPPORT
|
|
select USB_COMMON
|
|
select GENERIC_PHY
|
|
help
|
|
Enable this to support the transceiver that is part of Allwinner
|
|
sun9i SoCs.
|
|
|
|
This driver controls each individual USB 2 host PHY.
|
|
|
|
config PHY_SUN50I_USB3
|
|
tristate "Allwinner H6 SoC USB3 PHY driver"
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
depends on HAS_IOMEM && OF
|
|
depends on RESET_CONTROLLER
|
|
select GENERIC_PHY
|
|
help
|
|
Enable this to support the USB3.0-capable transceiver that is
|
|
part of Allwinner H6 SoC.
|
|
|
|
This driver controls each individual USB 2+3 host PHY combo.
|