public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* query on DWC3
@ 2014-12-13  5:13 sundeep subbaraya
  2014-12-13 23:51 ` Paul Zimmerman
  0 siblings, 1 reply; 8+ messages in thread
From: sundeep subbaraya @ 2014-12-13  5:13 UTC (permalink / raw)
  To: balbi@ti.com; +Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org

Hi Felipe,

In DWC3 driver, for three stage Control OUT transfer there is a check:

   else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket)

             && (dep->number == 0)) {.
    }

I understand that we check for alignment of sizes and if not we
prepare trb with maxpacket and enable interrupt on short packet. In
databook I could not find anything related to this, it talks only
about addresses should be aligned. In Control transfer programming
model there is no difference between Control OUT or IN transfer, if
three stage transfer - prepare trb with length wLength. Initially I
followed this and not able to receive data on EP0 OUT.:( .After adding
the above check it is working. Please help me to understand why we do
this?

Thank in advance,
Sundeep.B.S.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-19  6:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-13  5:13 query on DWC3 sundeep subbaraya
2014-12-13 23:51 ` Paul Zimmerman
2014-12-14  3:09   ` sundeep subbaraya
2014-12-22 16:11     ` Felipe Balbi
2014-12-22 16:12       ` Felipe Balbi
2015-01-06  7:09         ` sundeep subbaraya
2015-01-08 16:57           ` Felipe Balbi
2015-01-19  6:05             ` sundeep subbaraya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox