Re: [RFC PATCH 1/4] usb: chipidea: Do not rely on OTG while using extcon

2016-03-19 Thread Chanwoo Choi
Hi Sanchayan, I recommend that you use the unique id (ex. EXTCON_USB, EXTCON_USB_HOST) when getting/setting the state of external connector with extcon functions - extcon_get_cable_state() is deprecated -> extcon_get_cable_state_() - extcon_set_cable_state() is deprecated -> extcon_set_cable_state

[RFC PATCH 1/4] usb: chipidea: Do not rely on OTG while using extcon

2016-03-15 Thread Sanchayan Maity
The existing usage of extcon in Chipidea driver relies on OTG registers. In case of SoC with dual role device but not a true OTG controller, this does not work. Such SoC's should specify the existing CI_HDRC_DUAL_ROLE_NOT_OTG flag and do the role switch without checking any of the OTG registers. T