Skip to content

Commit b65700d

Browse files
sumanannaandersson
authored andcommitted
remoteproc: move rproc_da_to_va declaration to remoteproc.h
The rproc_da_to_va() API is an exported function, so move its declaration from the remoteproc local remoteproc_internal.h to the public remoteproc.h file. This will allow drivers outside of the remoteproc folder to be able to use this API. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Dave Gerlach <d-gerlach@ti.com> [adjusted line numbers to apply] Signed-off-by: Drew Fustini <dfustini@baylibre.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220308172515.29556-1-dfustini@baylibre.com
1 parent 19e7bf8 commit b65700d

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/remoteproc/remoteproc_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static inline void rproc_char_device_remove(struct rproc *rproc)
8484
void rproc_free_vring(struct rproc_vring *rvring);
8585
int rproc_alloc_vring(struct rproc_vdev *rvdev, int i);
8686

87-
void *rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem);
8887
phys_addr_t rproc_va_to_pa(void *cpu_addr);
8988
int rproc_trigger_recovery(struct rproc *rproc);
9089

include/linux/remoteproc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ void rproc_shutdown(struct rproc *rproc);
675675
int rproc_detach(struct rproc *rproc);
676676
int rproc_set_firmware(struct rproc *rproc, const char *fw_name);
677677
void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type);
678+
void *rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem);
678679
void rproc_coredump_using_sections(struct rproc *rproc);
679680
int rproc_coredump_add_segment(struct rproc *rproc, dma_addr_t da, size_t size);
680681
int rproc_coredump_add_custom_segment(struct rproc *rproc,

0 commit comments

Comments
 (0)