Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-07 Thread Roger Quadros
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 04/09/15 12:06, Roger Quadros wrote: > Felipe, > > On 03/09/15 18:44, Felipe Balbi wrote: >> Hi, > >> On Thu, Sep 03, 2015 at 03:21:48PM +0300, Roger Quadros wrote: > + dwc->fsm->id = id; > + dwc->fsm->b_sess_vld = vbus; > + usb_otg_

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-07 Thread Roger Quadros
Peter, On 06/09/15 05:02, Peter Chen wrote: > On Wed, Sep 02, 2015 at 05:24:16PM +0300, Roger Quadros wrote: >> Register with the USB OTG core. Since we don't support >> OTG yet we just work as a dual-role device even >> if device tree says "otg". >> >> + >> +static int dwc3_drd_init(struct dwc3 *

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-05 Thread Peter Chen
On Wed, Sep 02, 2015 at 05:24:16PM +0300, Roger Quadros wrote: > Register with the USB OTG core. Since we don't support > OTG yet we just work as a dual-role device even > if device tree says "otg". > > + > +static int dwc3_drd_init(struct dwc3 *dwc) > +{ > + int ret, id, vbus; > + struct

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-04 Thread Roger Quadros
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felipe, On 03/09/15 18:44, Felipe Balbi wrote: > Hi, > > On Thu, Sep 03, 2015 at 03:21:48PM +0300, Roger Quadros wrote: + dwc->fsm->id = id; + dwc->fsm->b_sess_vld = vbus; + usb_otg_sync_inputs(dwc->fsm); +} + +stat

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-03 Thread Felipe Balbi
Hi, On Thu, Sep 03, 2015 at 03:21:48PM +0300, Roger Quadros wrote: > >> + dwc->fsm->id = id; > >> + dwc->fsm->b_sess_vld = vbus; > >> + usb_otg_sync_inputs(dwc->fsm); > >> +} > >> + > >> +static int dwc3_drd_start_host(struct otg_fsm *fsm, int on) > >> +{ > >> + struct device *dev = usb_otg_fs

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-03 Thread Roger Quadros
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 02/09/15 17:31, Felipe Balbi wrote: > Hi, > > On Wed, Sep 02, 2015 at 05:24:16PM +0300, Roger Quadros wrote: >> Register with the USB OTG core. Since we don't support >> OTG yet we just work as a dual-role device even >> if device tree says "otg"

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-02 Thread Felipe Balbi
Hi, On Wed, Sep 02, 2015 at 05:24:16PM +0300, Roger Quadros wrote: > Register with the USB OTG core. Since we don't support > OTG yet we just work as a dual-role device even > if device tree says "otg". > > Use extcon framework to get VBUS/ID cable events and > kick the OTG state machine. > > Si