Re: [PATCH] usb: xhci: Fix Command Ring Stopped Event handling

2013-07-29 Thread Yang Bai
Hi there, We met a panic issue with a 3.5-based kernel, code at git://kernel.ubuntu.com/ubuntu/ubuntu-quantal.git. call trace as: [ 27.508480] BUG: unable to handle kernel NULL pointer dereference at 03c8 [ 27.544645] Call Trace: [ 27.545060] [ 27.545353] [] handle_set_deq_

[PATCH] usb: xhci: Fix Command Ring Stopped Event handling

2013-05-24 Thread Julius Werner
The current XHCI code treats a command completion event with the COMP_CMD_STOP code as a slightly different version of COMP_CMD_ABORT. In particular, it puts the pointed-to command TRB through the normal command completion handlers. This is not how this event works. As XHCI spec 4.6.1.1 describes,