gadget.c (2252d150efac460dc2494a4a12505d366e645232) gadget.c (5dc4538bf3fea0baf4ca2e4191e0e62991fbd779)
1/**
2 * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link
3 *
4 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 961 unchanged lines hidden (view full) ---

970 int ret;
971
972 req->request.actual = 0;
973 req->request.status = -EINPROGRESS;
974 req->direction = dep->direction;
975 req->epnum = dep->number;
976
977 /*
1/**
2 * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link
3 *
4 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 961 unchanged lines hidden (view full) ---

970 int ret;
971
972 req->request.actual = 0;
973 req->request.status = -EINPROGRESS;
974 req->direction = dep->direction;
975 req->epnum = dep->number;
976
977 /*
978 * DWC3 hangs on OUT requests smaller than maxpacket size,
979 * so HACK the request length
980 */
981 if (dep->direction == 0 &&
982 req->request.length < dep->endpoint.maxpacket)
983 req->request.length = dep->endpoint.maxpacket;
984
985 /*
978 * We only add to our list of requests now and
979 * start consuming the list once we get XferNotReady
980 * IRQ.
981 *
982 * That way, we avoid doing anything that we don't need
983 * to do now and defer it until the point we receive a
984 * particular token from the Host side.
985 *

--- 1695 unchanged lines hidden ---
986 * We only add to our list of requests now and
987 * start consuming the list once we get XferNotReady
988 * IRQ.
989 *
990 * That way, we avoid doing anything that we don't need
991 * to do now and defer it until the point we receive a
992 * particular token from the Host side.
993 *

--- 1695 unchanged lines hidden ---