Re: [PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-23 Thread Lu Baolu
Hi Felipe, On 07/21/2017 06:31 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >> +static void xhci_dbc_stop(struct xhci_hcd *xhci) >> +{ >> +struct xhci_dbc *dbc = xhci->dbc; >> + >> +WARN_ON(!dbc); >> + >> +cancel_delayed_work_sync(>event_work);

Re: [PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-23 Thread Lu Baolu
Hi Felipe, On 07/21/2017 06:31 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >> +static void xhci_dbc_stop(struct xhci_hcd *xhci) >> +{ >> +struct xhci_dbc *dbc = xhci->dbc; >> + >> +WARN_ON(!dbc); >> + >> +cancel_delayed_work_sync(>event_work); >> + >> +if

Re: [PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Felipe Balbi
Hi, Lu Baolu writes: > +static void xhci_dbc_stop(struct xhci_hcd *xhci) > +{ > + struct xhci_dbc *dbc = xhci->dbc; > + > + WARN_ON(!dbc); > + > + cancel_delayed_work_sync(>event_work); > + > + if (dbc->gs_port_num != GSPORT_INVAL) { > +

Re: [PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Felipe Balbi
Hi, Lu Baolu writes: > +static void xhci_dbc_stop(struct xhci_hcd *xhci) > +{ > + struct xhci_dbc *dbc = xhci->dbc; > + > + WARN_ON(!dbc); > + > + cancel_delayed_work_sync(>event_work); > + > + if (dbc->gs_port_num != GSPORT_INVAL) { > +

[PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Lu Baolu
xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and provides the equivalent of a very high performance full-duplex serial link. The debug capability

[PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Lu Baolu
xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and provides the equivalent of a very high performance full-duplex serial link. The debug capability