]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.11.2/usb-make-sure-usb-phy-of-gets-built-in.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.11.2 / usb-make-sure-usb-phy-of-gets-built-in.patch
1 From 3d6159640da9c9175d1ca42f151fc1a14caded59 Mon Sep 17 00:00:00 2001
2 From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
3 Date: Thu, 13 Apr 2017 15:33:34 +0300
4 Subject: usb: Make sure usb/phy/of gets built-in
5
6 From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
7
8 commit 3d6159640da9c9175d1ca42f151fc1a14caded59 upstream.
9
10 DWC3 driver uses of_usb_get_phy_mode() which is
11 implemented in drivers/usb/phy/of.c and in bare minimal
12 configuration it might not be pulled in kernel binary.
13
14 In case of ARC or ARM this could be easily reproduced with
15 "allnodefconfig" +CONFIG_USB=m +CONFIG_USB_DWC3=m.
16
17 On building all ends-up with:
18 ---------------------->8------------------
19 Kernel: arch/arm/boot/Image is ready
20 Kernel: arch/arm/boot/zImage is ready
21 Building modules, stage 2.
22 MODPOST 5 modules
23 ERROR: "of_usb_get_phy_mode" [drivers/usb/dwc3/dwc3.ko] undefined!
24 make[1]: *** [__modpost] Error 1
25 make: *** [modules] Error 2
26 ---------------------->8------------------
27
28 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
29 Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
31 Cc: Geert Uytterhoeven <geert+renesas@glider.be>
32 Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
33 Cc: Thomas Gleixner <tglx@linutronix.de>
34 Cc: Felipe Balbi <balbi@kernel.org>
35 Cc: Felix Fietkau <nbd@nbd.name>
36 Cc: Jeremy Kerr <jk@ozlabs.org>
37 Cc: linux-snps-arc@lists.infradead.org
38 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40
41 ---
42 drivers/Makefile | 1 +
43 1 file changed, 1 insertion(+)
44
45 --- a/drivers/Makefile
46 +++ b/drivers/Makefile
47 @@ -104,6 +104,7 @@ obj-$(CONFIG_USB_PHY) += usb/
48 obj-$(CONFIG_USB) += usb/
49 obj-$(CONFIG_PCI) += usb/
50 obj-$(CONFIG_USB_GADGET) += usb/
51 +obj-$(CONFIG_OF) += usb/
52 obj-$(CONFIG_SERIO) += input/serio/
53 obj-$(CONFIG_GAMEPORT) += input/gameport/
54 obj-$(CONFIG_INPUT) += input/