]> git.sur5r.net Git - u-boot/commit
usb: dwc3: ensure consistent types for dwc3_flush_cache
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 6 Apr 2017 14:58:52 +0000 (16:58 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Apr 2017 14:44:16 +0000 (16:44 +0200)
commitb7bf4a95922c3e1a4974aa34ebb714ac2eb89937
tree37aceb953ccbe4f14e4e2237920c0b254d6a4497
parent207835b13feeae15db0555574d89352a4e5379a4
usb: dwc3: ensure consistent types for dwc3_flush_cache

The dwc3_flush_cache() call was declared and used inconsistently:
 * The declaration assumed 'int' for addresses (a potential issue
   when running in a LP64 memory model).
 * The invocation cast the address to 'long'.

This change ensures that both the declaration and usage of this
function consistently uses 'uintptr_t' for correct behaviour even
when the allocated buffers (to be flushed) reside outside of the
lower 32bits of memory.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/io.h