xhci: Prevent infinite loop in transaction errors recovery for streams
[platform/kernel/linux-rpi.git] / drivers / usb / host / xhci.h
index cc084d9..c9f06c5 100644 (file)
@@ -933,6 +933,7 @@ struct xhci_virt_ep {
         * have to restore the device state to the previous state
         */
        struct xhci_ring                *new_ring;
+       unsigned int                    err_count;
        unsigned int                    ep_state;
 #define SET_DEQ_PENDING                (1 << 0)
 #define EP_HALTED              (1 << 1)        /* For stall handling */
@@ -1627,7 +1628,6 @@ struct xhci_ring {
         * if we own the TRB (if we are the consumer).  See section 4.9.1.
         */
        u32                     cycle_state;
-       unsigned int            err_count;
        unsigned int            stream_id;
        unsigned int            num_segs;
        unsigned int            num_trbs_free;