linux-stable/drivers/phy/mediatek
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
..
Kconfig 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
Makefile phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder 2020-09-06 07:03:21 +08:00
phy-mtk-hdmi-mt2701.c drm/mediatek: Disable tmds on mt2701 2020-09-14 23:05:23 +08:00
phy-mtk-hdmi-mt8173.c phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder 2020-09-06 07:03:21 +08:00
phy-mtk-hdmi.c drm/mediatek: Disable tmds on mt2701 2020-09-14 23:05:23 +08:00
phy-mtk-hdmi.h drm/mediatek: Disable tmds on mt2701 2020-09-14 23:05:23 +08:00
phy-mtk-tphy.c phy: phy-mtk-tphy: add a new reference clock 2020-03-20 19:34:29 +05:30
phy-mtk-ufs.c phy: phy-mtk-ufs: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
phy-mtk-xsphy.c phy: core: rework phy_set_mode to accept phy mode and submode 2018-12-12 10:01:33 +05:30