usb: dwc2: Align size of invalidating dcache before starting DMA 74/150274/1 accepted/tizen/4.0/unified/20170915.201918 accepted/tizen/unified/20170915.195826 submit/tizen/20170915.052049 submit/tizen_4.0/20170915.051857
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 31 Jul 2017 09:08:10 +0000 (18:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 15 Sep 2017 03:01:02 +0000 (12:01 +0900)
commit585d06d2844dbf3f52767d14455e91b067d28f07
tree3ec7aef6d32d7aa8c86c556a79dfaee06fec7830
parentecc767f0ebd7b4d2c32a2dfdcd5cda94fbe6d6fa
usb: dwc2: Align size of invalidating dcache before starting DMA

During using dwc2 usb gadget, if usb message size is too small,
following cache misaligned warning is shown:

   CACHE: Misaligned operation at range [bfdbcb00bfdbcb04]

Align size of invalidating dcache before starting DMA to remove the
warning.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: cherry-pick form mainline u-boot to fix runtime cache misaligned warning of thor usb gadget on odroid-u3]

Change-Id: I540394b380200a58fd84a426a2d31b64ef1ba542
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c