]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: fix dcache flush range calculation
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 11 Oct 2024 14:38:25 +0000 (16:38 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 21 Oct 2024 21:27:33 +0000 (15:27 -0600)
commit73ab8196886c145983d5ff5514c179487df0c6e1
tree3cc8dfda8b31c962a6b7419833e66e4dd5dd8bb5
parentef6f4f8e3c0de80f5f6dc4a77d6b18078e6fd2df
usb: dwc3: fix dcache flush range calculation

The current flush operation will omit doing a flush/invalidate on
the first and last bytes if the base address and size are not aligned
with CACHELINE_SIZE.

This causes operation failures Qualcomm platforms.

Take in account the alignment and size of the buffer and also
flush the previous and last cacheline.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/dwc3/io.h