Revert "UPSTREAM: usb: dwc2: host: Always add to the tail of queuesa"
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc2 / hcd.c
index 650f11da9eda88e3f29e35bc033d60d84d5d566d..1224ce2742a54c48b99c1ca327f504854f7e2cce 100644 (file)
@@ -930,8 +930,7 @@ enum dwc2_transaction_type dwc2_hcd_select_transactions(
                 * periodic assigned schedule
                 */
                qh_ptr = qh_ptr->next;
-               list_move_tail(&qh->qh_list_entry,
-                              &hsotg->periodic_sched_assigned);
+               list_move(&qh->qh_list_entry, &hsotg->periodic_sched_assigned);
                ret_val = DWC2_TRANSACTION_PERIODIC;
        }
 
@@ -964,8 +963,8 @@ enum dwc2_transaction_type dwc2_hcd_select_transactions(
                 * non-periodic active schedule
                 */
                qh_ptr = qh_ptr->next;
-               list_move_tail(&qh->qh_list_entry,
-                              &hsotg->non_periodic_sched_active);
+               list_move(&qh->qh_list_entry,
+                         &hsotg->non_periodic_sched_active);
 
                if (ret_val == DWC2_TRANSACTION_NONE)
                        ret_val = DWC2_TRANSACTION_NON_PERIODIC;
@@ -1138,8 +1137,8 @@ static void dwc2_process_periodic_channels(struct dwc2_hsotg *hsotg)
                         * Move the QH from the periodic assigned schedule to
                         * the periodic queued schedule
                         */
-                       list_move_tail(&qh->qh_list_entry,
-                                      &hsotg->periodic_sched_queued);
+                       list_move(&qh->qh_list_entry,
+                                 &hsotg->periodic_sched_queued);
 
                        /* done queuing high bandwidth */
                        hsotg->queuing_high_bandwidth = 0;