]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: ti: usb2: fix OMAP_CONTROL_PHY dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 20:23:57 +0000 (21:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:31 +0000 (06:43 -0700)
commit3a416e2058aa389ba629e10917c3412ce9d28c4a
tree0de2a6a20c53a901b7ab636e0d5b5f5caf638832
parent03b812eade3d431166c6e7674e02f74f0a8614fc
phy: ti: usb2: fix OMAP_CONTROL_PHY dependency

[ Upstream commit d41ce98a122c13ea77938af04ef06fb12ae0c69e ]

With randconfig build testing on arm64, we can run into a configuration
that has CONFIG_OMAP_CONTROL_PHY=m and CONFIG_OMAP_USB2=y, which in turn
causes a link failure:

drivers/phy/ti/phy-omap-usb2.o: In function `omap_usb_phy_power':
phy-omap-usb2.c:(.text+0x17c): undefined reference to `omap_control_phy_power'

I could not come up with a good way to correctly describe the relation
of the two symbols, but if we just select CONFIG_OMAP_CONTROL_PHY
during compile testing, we can no longer run into the broken configuration.

Fixes: 6777cee3a872 ("phy: ti: usb2: Add support for AM654 USB2 PHY")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/ti/Kconfig