Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: rcar-gen3-usb2: select USB_COMMON

When USB is disabled, we get a link error for this driver
because of the added OTG support

drivers/phy/renesas/phy-rcar-gen3-usb2.o: In function `rcar_gen3_phy_usb2_probe':
phy-rcar-gen3-usb2.c:(.text+0x250): undefined reference to `of_usb_get_dr_mode_by_phy'

Other phy drivers select USB_COMMON for this, so let's do the same
here.

Fixes: 7e0540f41332 ("phy: rcar-gen3-usb2: check dr_mode for otg mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Arnd Bergmann and committed by
Kishon Vijay Abraham I
2b88212c 3cb0ab6e

+2
+2
drivers/phy/renesas/Kconfig
··· 12 12 tristate "Renesas R-Car generation 3 USB 2.0 PHY driver" 13 13 depends on ARCH_RENESAS 14 14 depends on EXTCON 15 + depends on USB_SUPPORT 15 16 select GENERIC_PHY 17 + select USB_COMMON 16 18 help 17 19 Support for USB 2.0 PHY found on Renesas R-Car generation 3 SoCs. 18 20