Hi Lukasz,
On 13/11/2018 11:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
Just to give a bit of background, there's some upstream patches for HiKey960 USB on the fly [1] but they still have some quirks that are being worked on. In the meantime, I forward-port an older patch-set that is known to work but requires a few tweaks to keep it working through the kernel versions.
[1]: https://lore.kernel.org/lkml/20181027095820.40056-1-chenyu56@huawei.com/
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
I also get that warning, but I still get an eth device up. Would you happen to be using an ethernet to USB-C dongle by any chance? We only use ethernet to USB-A dongles and they seem to work alright - the USB-C port is only used for flashing a new kernel in fastboot mode.
Oh and speaking of USB-C, you musn't have anything plugged in that port otherwise the USB-A ports are disabled (hardware quirk IIRC). I managed to automate this by using an ACME board - with an USB probe you can cut all data/power from going through the USB-C cable and that seems to do the trick.
Regards, Lukasz
Cheers, Valentin