openwrtv4/target/linux/generic
Alexey Brodkin 2b27e62e74 linux-4.9: Fix building of DWC3 module
DWC3 driver uses of_usb_get_phy_mode() which is
implemented in drivers/usb/phy/of.c and in bare minimal
configuration it might not be pulled in kernel binary.

In case of ARC or ARM this could be easily reproduced with
"allnodefconfig" +CONFIG_USB=m +CONFIG_USB_DWC3=m.

On building all ends-up with:
---------------------->8------------------
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 5 modules
ERROR: "of_usb_get_phy_mode" [drivers/usb/dwc3/dwc3.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
---------------------->8------------------

This was affecting Lede in case of CONFIG_ALL_KMODS=y.

The patch is already scheduled for v4.12 and once it is backported to
4.9.y it must be removed from here.

Note this patch makes sense not only for ARC instead it fixes
a generic issue which may affect more arches and platforms thus
putting it in "generic/" folder.

Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [patch rename]
2017-05-02 15:17:30 +02:00
..
files generic: rtl8366rb: add support for initvals from DTS 2017-04-25 19:29:59 +02:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
patches-3.18 kernel: remove out of tree direct-io disable hack 2017-04-26 10:27:45 +02:00
patches-4.4 kernel: remove out of tree direct-io disable hack 2017-04-26 10:27:45 +02:00
patches-4.9 linux-4.9: Fix building of DWC3 module 2017-05-02 15:17:30 +02:00
config-3.18 kernel: remove out of tree direct-io disable hack 2017-04-26 10:27:45 +02:00
config-4.4 kernel: remove out of tree direct-io disable hack 2017-04-26 10:27:45 +02:00
config-4.9 kernel: remove out of tree direct-io disable hack 2017-04-26 10:27:45 +02:00
PATCHES