
On Fri, Aug 17, 2018 at 5:49 PM, Nuno Gonçalves nunojpg@gmail.com wrote:
This can be because UMS is not DM aware?
On Fri, Aug 17, 2018 at 2:02 PM Nuno Gonçalves nunojpg@gmail.com wrote:
This test is on 2018.09-rc2 with UMS enabled.
With your patch, I get this dmesg on the host:
[20121.718226] usb 1-4-port4: Cannot enable. Maybe the USB cable is bad? [20122.578151] usb 1-4-port4: Cannot enable. Maybe the USB cable is bad? [20122.578320] usb 1-4-port4: attempt power cycle [20123.750104] usb 1-4-port4: Cannot enable. Maybe the USB cable is bad? [20124.602034] usb 1-4-port4: Cannot enable. Maybe the USB cable is bad? [20124.602190] usb 1-4-port4: unable to enumerate USB device
u-boot console is the same, including loading the gadget:
Allwinner mUSB OTG (Peripheral)
If you tell me how you tested USB Gadget to work, I will reproduce your test locally to confirm the issue.
Here is the steps with UMS on BPI-M2+ which is H3 board (USB is similar to H2+)
on target: => mmc list SUNXI SD/MMC: 0 SUNXI SD/MMC: 1 (eMMC) => mmc dev 1 switch to partitions #0, OK mmc1(part 0) is current device => ums 0 mmc 1 UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0xe90000 \musb-hdrc: peripheral reset irq lost!
on host: $ sudo dmesg [25593.969620] usb 1-1: new high-speed USB device number 7 using xhci_hcd [25594.118084] usb 1-1: New USB device found, idVendor=1f3a, idProduct=1010 [25594.118092] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [25594.118097] usb 1-1: Product: USB download gadget [25594.118102] usb 1-1: Manufacturer: Allwinner Technology [25594.118107] usb 1-1: SerialNumber: 02c0008196cc4467 [25594.159273] usb-storage 1-1:1.0: USB Mass Storage device detected
fastboot also look fine.
Jagan.