diff options
author | Alexey Brodkin <Alexey.Brodkin@synopsys.com> | 2017-05-02 13:36:19 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-05-02 15:17:30 +0200 |
commit | 2b27e62e74fa73086e505f93d6bf037a16c66e55 (patch) | |
tree | 81181fcc9b9585a172fa6c13121bdb1ab825d8bf /package | |
parent | c13f943d2a917fb1b4abe1cdde7f090285efd7a9 (diff) | |
download | mtk-20170518-2b27e62e74fa73086e505f93d6bf037a16c66e55.zip mtk-20170518-2b27e62e74fa73086e505f93d6bf037a16c66e55.tar.gz mtk-20170518-2b27e62e74fa73086e505f93d6bf037a16c66e55.tar.bz2 |
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]
Diffstat (limited to 'package')
0 files changed, 0 insertions, 0 deletions