On Tue, Sep 03, 2013 at 09:52:52AM +0800, Huang Rui wrote:
> On Tue, Sep 03, 2013 at 02:14:14AM +0800, Giovanni wrote:
> > > On Sat, Aug 31, 2013 at 12:11:49AM
> > > +0800, Giovanni wrote:
> > > > 
> > > 
> > > I drafted a patch, please have a test and enable
> > > CONFIG_XHCI_HCD_DEBUGGING in kernel configuration at same
> > > time.
> > > 
> > > 8<---------------------- cut here
> > >----------------------------
> > >
> > > 
> > >Thanks,
> > >Rui
> > 
> > I tried your patch. This is new log after kernel panic: 
> > https://bugzilla.kernel.org/attachment.cgi?id=107386
> > I have enabled CONFIG_USB_XHCI_HCD_DEBUGGING, but I can't see none debug 
> > message for XHCI.
> > I have /proc/sys/kernel/printk to 7. I do something wrong?
> > 
> 
> Sorry, I fogot to tell you CONFIG_USB_DEBUG also need to be enabled.
> Could you rebuild again?
> 

Please apply this patch based my last patch, and have a test again.

8<-------------------------- cut here ----------------------------

diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index f2e57a1..61a9532 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -493,6 +493,9 @@ struct xhci_ring *xhci_stream_id_to_ring(
 {
        struct xhci_virt_ep *ep = &dev->eps[ep_index];
 
+       if (!ep)
+               return NULL;
+
        if (stream_id == 0)
                return ep->ring;
        if (!ep->stream_info)
---

Thanks,
Rui

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to