[PATCH] pxa27x_udc: call read_fifo when packet is ready

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -1195,7 +1195,7 @@ static int pxa_ep_queue(struct usb_ep *_
 					ep0_end_in_req(ep, req);
 			break;
 		case OUT_DATA_STAGE:
-			if ((length == 0) || !epout_has_pkt(ep))
+			if ((length == 0) || epout_has_pkt(ep))
 				if (read_ep0_fifo(ep, req))
 					ep0_end_out_req(ep, req);
 			break;













----------------------------

Schluss mit teuer - her mit den Schnäppchen!
Jetzt alle Discounter-Angebote von Aldi über Douglas bis Schlecker übersichtlich für Sie geordnet - jetzt klicken und sparen!
http://www.arcor.de/rd/footer.discounto
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux