On Wed, May 18, 2016 at 11:46:32AM +0200, Martin Pieuchot wrote:
> Please test and report back.
Works fine on my T430s. I have tried several suspend/resume cycles,
once the laptop did not come back but resumed immediately again.
But I cannot reproduce that single failure, now it works.
> @@ -1378,29 +1350,17 @@ ehci_open(struct usbd_pipe *pipe)
> struct usbd_device *dev = pipe->device;
> struct ehci_softc *sc = (struct ehci_softc *)dev->bus;
> usb_endpoint_descriptor_t *ed = pipe->endpoint->edesc;
> - u_int8_t addr = dev->address;
> u_int8_t xfertype = ed->bmAttributes & UE_XFERTYPE;
> struct ehci_pipe *epipe = (struct ehci_pipe *)pipe;
> struct ehci_soft_qh *sqh;
> usbd_status err;
> - int s;
> - int ival, speed, naks;
> - int hshubaddr, hshubport;
>
> - DPRINTFN(1, ("ehci_open: pipe=%p, addr=%d, endpt=%d\n",
> + DPRINTFN(1, ("%s: pipe=%p, addr=%d, endpt=%d\n", __func__,
> pipe, addr, ed->bEndpointAddress));
This does not compile with EHCI_DEBUG as addr is not declared
anymore.
bluhm