Revert "UPSTREAM: usb: dwc2: host: Always add to the tail of queuesa"
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc2 / hcd_queue.c
index 7c306b3b81550c0a9405560718e005429e758621..7d8d06cfe3c1df1d5bc1a5534205464d89f65a56 100644 (file)
@@ -737,11 +737,9 @@ void dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
             dwc2_frame_num_le(qh->sched_frame, frame_number)) ||
            (hsotg->core_params->uframe_sched <= 0 &&
             qh->sched_frame == frame_number))
-               list_move_tail(&qh->qh_list_entry,
-                              &hsotg->periodic_sched_ready);
+               list_move(&qh->qh_list_entry, &hsotg->periodic_sched_ready);
        else
-               list_move_tail(&qh->qh_list_entry,
-                              &hsotg->periodic_sched_inactive);
+               list_move(&qh->qh_list_entry, &hsotg->periodic_sched_inactive);
 }
 
 /**