]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Revert "usb: dwc2: gadget: fix TX FIFO size and address initialization"
authorJohn Youn <johnyoun@synopsys.com>
Tue, 18 Oct 2016 00:36:25 +0000 (17:36 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 18 Oct 2016 11:21:40 +0000 (14:21 +0300)
commit3fa9538539ac737096c81f3315a14670b1609092
treeb3b3af8a132dacad9eb04f3f8e4ee31ceac395b7
parent2317eacd9cf9dc1beee74ddb453bdd7552a64a27
Revert "usb: dwc2: gadget: fix TX FIFO size and address initialization"

This reverts commit aa381a7259c3 ("usb: dwc2: gadget: fix TX FIFO size
and address initialization").

The original commit removed the FIFO size programming per endpoint. The
DPTXFSIZn register is also used for DIEPTXFn and the SIZE field is r/w
in dedicated fifo mode. So it isn't appropriate to simply remove this
initialization as it might break existing behavior.

Also, some cores might not have enough fifo space to handle the
programming method used in the reverted patch, resulting in fifo
initialization failure.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Cc: Robert Baldyga <r.baldyga@samsung.com>
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c