linux/drivers/phy
Tiezhu Yang d7bb92e3c9 phy: mediatek: Make PHY_MTK_{XSPHY, TPHY} depend on HAS_IOMEM and OF_ADDRESS to fix build errors
devm_ioremap_resource() will be not built in lib/devres.c if
CONFIG_HAS_IOMEM is not set, of_address_to_resource() will be
not built in drivers/of/address.c if CONFIG_OF_ADDRESS is not
set, and then there exists two build errors about undefined
reference to "devm_ioremap_resource" and "of_address_to_resource"
in phy-mtk-xsphy.c under COMPILE_TEST and CONFIG_PHY_MTK_XSPHY,
make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix it.

The above issue is reported by kernel test robot <lkp@intel.com>,
through the discussion in the v1 patch, as Chunfeng said we need
also do this for config PHY_MTK_TPHY:

drivers/phy/mediatek/phy-mtk-tphy.c:1157:		retval = of_address_to_resource(child_np, 0, &res);
drivers/phy/mediatek/phy-mtk-tphy.c:1123:		tphy->sif_base = devm_ioremap_resource(dev, sif_res);
drivers/phy/mediatek/phy-mtk-tphy.c:1164:		instance->port_base = devm_ioremap_resource(&phy->dev, &res);

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1606289865-692-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-11-30 21:09:05 +05:30
..
allwinner phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg 2020-11-19 11:49:18 +05:30
amlogic phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
broadcom phy: phy-bcm-ns-usb3: drop support for deprecated DT binding 2020-11-19 11:56:35 +05:30
cadence phy: cadence: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
freescale phy: freescale: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
hisilicon phy: hisilicon; Constify hi3660_phy_ops 2020-08-31 14:36:36 +05:30
intel phy: intel: Add Keem Bay USB PHY support 2020-11-30 15:28:10 +05:30
lantiq phy: lantiq: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
marvell phy: marvell: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
mediatek phy: mediatek: Make PHY_MTK_{XSPHY, TPHY} depend on HAS_IOMEM and OF_ADDRESS to fix build errors 2020-11-30 21:09:05 +05:30
motorola phy: mapphone-mdm6600: Add missing description for some structure fields 2020-07-13 12:14:46 +05:30
mscc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
qualcomm phy: qualcomm: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:47 +05:30
ralink phy: ralink: Add PHY driver for MT7621 PCIe PHY 2020-11-30 16:18:24 +05:30
renesas phy: renesas: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
rockchip phy: rockchip: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
samsung phy: samsung: Add support for the Exynos5420 variant of the USB2 PHY 2020-11-30 16:20:59 +05:30
socionext phy: socionext: Add UniPhier AHCI PHY driver support 2020-08-31 17:07:53 +05:30
st phy: stm32: defer probe for reset controller 2020-11-16 15:19:03 +05:30
tegra phy: tegra: xusb: Fix usb_phy device driver field 2020-11-30 21:07:09 +05:30
ti phy: ti: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:48 +05:30
xilinx phy: zynqmp: Fix unused-function compiler warning 2020-07-01 20:35:29 +05:30
Kconfig phy: fix USB_LGM_PHY warning & build errors 2020-09-22 19:41:43 +05:30
Makefile phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-core-mipi-dphy.c phy: dphy: Change units of wakeup and init parameters 2019-02-07 11:11:05 +05:30
phy-core.c phy: core: Document function args 2020-07-08 16:40:21 +05:30
phy-lgm-usb.c phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-lpc18xx-usb-otg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-pistachio-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
phy-xgene.c phy: phy-xgene: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30