]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 20 Dec 2016 11:57:32 +0000 (13:57 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commit51376fc876a8280b0669abcbf143527298024e02
tree7927404f8e034dcc90dabcff1f192e2754ffe05a
parentec29be274be83e8eea7ebc3bfc638f13aa413bd7
usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb()

For now this is just a cleanup patch, no functional
changes. We will be using the new function to fix a
bug introduced long ago by commit 7b9ad3107a28
("usb: dwc3: ep0: correct cache sync issue in case
of ep0_bounced") and further worsened by commit
547482854741 ("usb: dwc3: ep0: handle non maxpacket
aligned transfers > 512")

Cc: <stable@vger.kernel.org>
Reported-by: Janusz Dziedzic <januszx.dziedzic@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/ep0.c