Hi Anand, On Mon, Feb 4, 2019 at 9:04 PM Anand Moon <linux.amoon@xxxxxxxxx> wrote: [...] > I dont have multi-meter to check this out on old and new kernel. > As per my observation Amlogic 3.10 (32 bit) and 3.14 (64 bit) > both use some state machine the tune the usb port. > > It's not clear that this will work with upstream kernel. do you have a filename / line number in Amlogic's kernel regarding this state machine and / or tuning logic? > I just checked with board booted with usb device connected we are observing > the bus and is getting power up and hot plugging of usb device is working fine. > > $ lsusb -v|egrep "^Bus|MaxPower" > Couldn't open device, some information will be missing > Bus 002 Device 003: ID 1b71:0056 Fushicai > MaxPower 500mA > Couldn't open device, some information will be missing > Bus 002 Device 004: ID 152d:0578 JMicron Technology Corp. / JMicron > USA Technology Corp. JMS567 SATA 6Gb/s bridge > MaxPower 30mA > Couldn't open device, some information will be missing > Couldn't open device, some information will be missing > Bus 002 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub > MaxPower 100mA > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Couldn't open device, some information will be missing > MaxPower 0mA > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > MaxPower 0mA for me it stops at the Genesys Logic, Inc. 4-port hub (I see the root hub, the 4-port hub and then nothing more) using the mainline kernel (with or without your patches) I'm not sure what to do with this information though. currently we have no reliable way to tell if GPIOAO_5 is only for the OTG port (usb0) or also for the host-only port (usb1). Regards Martin