[U-Boot] [PATCH v3 1/2] usb: dwc3: ensure consistent types for dwc3_flush_cache
Marek Vasut
marex at denx.de
Thu Apr 6 15:33:53 UTC 2017
On 04/06/2017 04:58 PM, Philipp Tomsich wrote:
> 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 at theobroma-systems.com>
Applied both, thanks.
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list