Re: [PATCH] usb: use of_usb_get_dr_mode_by_phy() inline helper without USB

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 14, 2016 3:51:01 PM CEST Arnd Bergmann wrote: > We have had two new PHY drivers call of_usb_get_dr_mode_by_phy() > recently without having a dependency on CONFIG_USB_COMMON, resulting > in a link error: > > ERROR: "of_usb_get_dr_mode_by_phy" [drivers/phy/phy-meson-usb2.ko]

[PATCH] usb: use of_usb_get_dr_mode_by_phy() inline helper without USB

2016-09-14 Thread Arnd Bergmann
We have had two new PHY drivers call of_usb_get_dr_mode_by_phy() recently without having a dependency on CONFIG_USB_COMMON, resulting in a link error: ERROR: "of_usb_get_dr_mode_by_phy" [drivers/phy/phy-meson-usb2.ko] undefined! I fixed up the first one (sun4i) by adding the dependency, but if