dear guys,

When I check otg port in 4.x and 3.x kernel, it is not working.
(just working on android)

It has kernel panic as below.
[ 14.172000] Indeed it is in host mode hprt0 = 00021501
[ 14.344000] usb 2-1: new full-speed USB device number 2 using dwc_otg
[ 14.344000] BUG: sleeping function called from invalid context at mm/page_alloc.c:2444
[ 14.352000] in_atomic(): 1, irqs_disabled(): 128, pid: 44, name: khubd
[ 14.356000] [<c00153b4>] (unwind_backtrace+0x0/0x12c) from [<c00ecf18>] (__alloc_pages_nodemask+0x204/0x918)
[ 14.368000] [<c00ecf18>] (__alloc_pages_nodemask+0x204/0x918) from [<c0018690>] (__dma_alloc+0xa0/0x33c)
[ 14.376000] [<c0018690>] (__dma_alloc+0xa0/0x33c) from [<c0018c38>] (dma_alloc_coherent+0x68/0x70)
[ 14.384000] [<c0018c38>] (dma_alloc_coherent+0x68/0x70) from [<c0387ff8>] (__DWC_DMA_ALLOC+0x10/0x38)
[ 14.396000] [<c0387ff8>] (__DWC_DMA_ALLOC+0x10/0x38) from [<c0384dd8>] (dwc_otg_hcd_qh_init_ddma+0x38/0x278)
[ 14.404000] [<c0384dd8>] (dwc_otg_hcd_qh_init_ddma+0x38/0x278) from [<c0383d6c>] (dwc_otg_hcd_qh_create+0x74/0xc8)
[ 14.416000] [<c0383d6c>] (dwc_otg_hcd_qh_create+0x74/0xc8) from [<c03847d4>] (dwc_otg_hcd_qtd_add+0x88/0xa0)
[ 14.424000] [<c03847d4>] (dwc_otg_hcd_qtd_add+0x88/0xa0) from [<c037e534>] (dwc_otg_hcd_urb_enqueue+0x88/0x1e4)
[ 14.436000] [<c037e534>] (dwc_otg_hcd_urb_enqueue+0x88/0x1e4) from [<c037fdbc>] (dwc_otg_urb_enqueue+0x198/0x2d0)
[ 14.444000] [<c037fdbc>] (dwc_otg_urb_enqueue+0x198/0x2d0) from [<c034fb70>] (usb_hcd_submit_urb+0xa4/0x76c)
[ 14.456000] [<c034fb70>] (usb_hcd_submit_urb+0xa4/0x76c) from [<c03518f0>] (usb_start_wait_urb+0x4c/0x138)
[ 14.464000] [<c03518f0>] (usb_start_wait_urb+0x4c/0x138) from [<c0351a88>] (usb_control_msg+0xac/0xe4)
[ 14.472000] [<c0351a88>] (usb_control_msg+0xac/0xe4) from [<c034a4ac>] (hub_port_init+0x4d8/0x86c)
[ 14.484000] [<c034a4ac>] (hub_port_init+0x4d8/0x86c) from [<c034ca3c>] (hub_thread+0x4e4/0x1460)
[ 14.492000] [<c034ca3c>] (hub_thread+0x4e4/0x1460) from [<c0062340>] (kthread+0x90/0x94)
[ 14.500000] [<c0062340>] (kthread+0x90/0x94) from [<c000f7ec>] (kernel_thread_exit+0x0/0x8)
[ 14.508000] Indeed it is in host mode hprt0 = 00021501

Could you check and solve this problem ?