usb: chipidea: add ci->is_otg condition for otg judgement
authorLi Jun <jun.li@freescale.com>
Fri, 31 Jul 2015 02:41:00 +0000 (10:41 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Aug 2015 15:02:46 +0000 (10:02 -0500)
commit3f217e9e96daa3d7741bab705fe9c7798d9951a9
tree1babe63d3d5e33c8ced22e7835308de71bed9cc6
parenta24b071bb4ac37ef51a0ed4765f89be05a617677
usb: chipidea: add ci->is_otg condition for otg judgement

Since some chipidea based controller is not otg capable, add ci->is_otg
condition when setting is_otg flag for gadget.

Signed-off-by: Li Jun <jun.li@freescale.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/chipidea/udc.c