exynos-linux-stable/drivers/usb/dwc2
Martin Schiller 7d67e5668f usb: dwc2: Fix DMA cache alignment issues
commit 4a4863bf2e7932e584a3a462d3c6daf891142ddc upstream.

Insert a padding between data and the stored_xfer_buffer pointer to
ensure they are not on the same cache line.

Otherwise, the stored_xfer_buffer gets corrupted for IN URBs on
non-cache-coherent systems. (In my case: Lantiq xRX200 MIPS)

Fixes: 3bc04e28a0 ("usb: dwc2: host: Get aligned DMA in a more supported way")
Fixes: 56406e017a88 ("usb: dwc2: Fix DMA alignment to start at allocated boundary")
Cc: <stable@vger.kernel.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-22 08:17:20 +02:00
..
core.c usb: dwc2: host: use msleep() for long delay 2017-05-14 14:00:18 +02:00
core.h usb: dwc2: Fix interval type issue 2018-05-25 16:13:03 +02:00
core_intr.c usb: dwc2: host: Clear interrupts before handling them 2015-12-15 09:12:41 -06:00
debug.h usb: dwc2: move debugfs code to a separate file 2015-04-29 15:18:25 -05:00
debugfs.c usb: dwc2: Use platform endianness when accessing registers 2015-09-27 10:54:31 -05:00
gadget.c usb: gadget: dwc2: fix memory leak in gadget_init() 2018-08-24 13:12:29 +02:00
hcd.c usb: dwc2: Fix DMA cache alignment issues 2019-06-22 08:17:20 +02:00
hcd.h usb: dwc2: host: Setting qtd to NULL after freeing it 2016-04-28 09:41:12 +03:00
hcd_ddma.c usb: dwc2: Fix issues in dwc2_complete_non_isoc_xfer_ddma() 2016-03-04 15:14:48 +02:00
hcd_intr.c usb: dwc2: fix isoc split in transfer with no data 2018-08-24 13:12:28 +02:00
hcd_queue.c usb: dwc2: fix the incorrect bitmaps for the ports of multi_tt hub 2018-07-11 16:26:41 +02:00
hw.h usb: dwc2: Add delay to core soft reset 2016-09-08 14:02:52 +03:00
Kconfig USB: dwc2-usb: add USB_GADGET dependency 2016-06-29 11:11:41 +03:00
Makefile usb: dwc2: remove dwc2_platform.ko 2015-04-29 15:20:11 -05:00
pci.c usb: dwc2: pci: Add device mode to the dwc2-pci driver 2015-03-11 15:08:17 -05:00
platform.c ARM: SoC: late DT updates for v4.9 2016-10-07 21:34:49 -07:00