Hi Pavel,
Thanks, I can't see the attachment. For some WiFi support, I tried the kernel 4.2.5. And I manual add the "fsl-usb2-udc" in platform_device_id, I can see the init, but my host always report "unable to enumerate USB device on port 1", and P1020's USB DR's interrupt works, and the status looks ok but it doesn't work. I added some printk and get the below result. the device is attached, the speed is high speed. I don't know what's wrong, why it can't enumerate. Did you try it before?
irq_src [0x00000040], udc->usb_state: [0x00000008], usbmode: [0xa], usbsts: [0xc0]
portsc1: 0x98000a05
irq_src [0x00000040], udc->usb_state: [0x00000001], usbmode: [0xa], usbsts: [0xc0]
irq_src [0x00000100], udc->usb_state: [0x00000001], usbmode: [0xa], usbsts: [0x180]
irq_src [0x00000040], udc->usb_state: [0x00000008], usbmode: [0xa], usbsts: [0xc0]
Regards,
Yanjun Luo.