OSDN Git Service

usb: dwc3: Allocate TRB pool upon enabling endpoint
authorHemant Kumar <hemantk@codeaurora.org>
Tue, 16 Jun 2015 21:43:51 +0000 (14:43 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:56 +0000 (11:06 -0700)
commit1abf160f23de2a8539fe3cc170bec31cf70540da
treefdef36467dbf140c24449f954e08b15f6b606ea5
parent6fd132c4c0c9c264215a172664cafc6bbd2dbaff
usb: dwc3: Allocate TRB pool upon enabling endpoint

Currently gadget driver is by default allocating dma TRB
pool per endpoint for 30 endpoints upon driver probe.
Optimize this by allocating dma memory only for enabled
endpoints.

Change-Id: I378a42d0b84fa43f7c20cd025cd9361c467cb41b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c