Browse Source

usb: ehci: Add missing cache flush to destroy_int_queue

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede 10 years ago
parent
commit
ea7b30c589
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/usb/host/ehci-hcd.c

+ 2 - 0
drivers/usb/host/ehci-hcd.c

@@ -1342,6 +1342,8 @@ destroy_int_queue(struct usb_device *dev, struct int_queue *queue)
 		if (NEXT_QH(cur) == queue->first) {
 		if (NEXT_QH(cur) == queue->first) {
 			debug("found candidate. removing from chain\n");
 			debug("found candidate. removing from chain\n");
 			cur->qh_link = queue->last->qh_link;
 			cur->qh_link = queue->last->qh_link;
+			flush_dcache_range((uint32_t)cur,
+					   ALIGN_END_ADDR(struct QH, cur, 1));
 			result = 0;
 			result = 0;
 			break;
 			break;
 		}
 		}