]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: k3-r5: Use IO memset to clear TCMs
authorAndrew Davis <afd@ti.com>
Mon, 21 Oct 2024 20:45:55 +0000 (15:45 -0500)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 29 Oct 2024 17:19:26 +0000 (11:19 -0600)
commit06cbc5e45317c0521709f85c9046f3fbc57382c2
treef9fd47568c48b2d54e3f5546d87a007a5ae79974
parentbe3e6529a8b90b1284a55117a4e23095ccbeaeaf
remoteproc: k3-r5: Use IO memset to clear TCMs

While it should be safe to use normal memset() on these memories as they
are mapped as Normal Non-Cached, using the memset_io() provides stronger
guarantees on access alignment and fixes a sparse check warning. Switch
to memset_io() here.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20241021204557.929823-1-afd@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c