No, no, no, wrong file. :)
Please, look again:
https://github.com/torvalds/linux/commit/d680414d0f421563a9746c29d82e6794a604cf0cThe file is
arch/arm/boot/dts/am335x-bone-common.dtsi.
Your patch simply killed the whole
usb0. That is a completely different part of the tree and different interrupts.
Furthermore, removing the $this->bbcode_second_pass_code('', '
+ interrupts-extended = <&intc 18 &tps 0>;
+ interrupt-names = "mc", "vbus";') lines doesn't kill all usb0 interrupts, just the
tps 0 one. Interrupt
intc 18 is still connected via inheritance.
I just tested the g_ether module in 4.12.7-2-ARCH. This is the
dmesg result of a
modprobe g_ether:
$this->bbcode_second_pass_code('', '
using random self ethernet address
using random host ethernet address
usb0: HOST MAC 5e:97:26:af:15:f3
usb0: MAC 4e:4e:4e:1f:83:b4
using random self ethernet address
using random host ethernet address
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready')
Also:$this->bbcode_second_pass_code('', '
$ ip a
[...]
4: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4e:4e:4e:1f:83:b4 brd ff:ff:ff:ff:ff:ff')Looks fine to me.
BTW, when usb0 is used in this mode, it doesn't show up in lsusb, because it is not a host controller.