Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: qcom: qseecom: remove unused functions

qseecom_scm_dev(), qseecom_dma_alloc() and qseecom_dma_free() are no
longer used following the conversion to using tzmem. Remove them.

Fixes: 6612103ec35a ("firmware: qcom: qseecom: convert to using the TZ allocator")
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20240731-tzmem-efivars-fix-v2-2-f0e84071ec07@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Bartosz Golaszewski and committed by
Bjorn Andersson
924fc22c 1c753d00

-45
-45
include/linux/firmware/qcom/qcom_qseecom.h
··· 26 26 }; 27 27 28 28 /** 29 - * qseecom_scm_dev() - Get the SCM device associated with the QSEECOM client. 30 - * @client: The QSEECOM client device. 31 - * 32 - * Returns the SCM device under which the provided QSEECOM client device 33 - * operates. This function is intended to be used for DMA allocations. 34 - */ 35 - static inline struct device *qseecom_scm_dev(struct qseecom_client *client) 36 - { 37 - return client->aux_dev.dev.parent->parent; 38 - } 39 - 40 - /** 41 - * qseecom_dma_alloc() - Allocate DMA memory for a QSEECOM client. 42 - * @client: The QSEECOM client to allocate the memory for. 43 - * @size: The number of bytes to allocate. 44 - * @dma_handle: Pointer to where the DMA address should be stored. 45 - * @gfp: Allocation flags. 46 - * 47 - * Wrapper function for dma_alloc_coherent(), allocating DMA memory usable for 48 - * TZ/QSEECOM communication. Refer to dma_alloc_coherent() for details. 49 - */ 50 - static inline void *qseecom_dma_alloc(struct qseecom_client *client, size_t size, 51 - dma_addr_t *dma_handle, gfp_t gfp) 52 - { 53 - return dma_alloc_coherent(qseecom_scm_dev(client), size, dma_handle, gfp); 54 - } 55 - 56 - /** 57 - * dma_free_coherent() - Free QSEECOM DMA memory. 58 - * @client: The QSEECOM client for which the memory has been allocated. 59 - * @size: The number of bytes allocated. 60 - * @cpu_addr: Virtual memory address to free. 61 - * @dma_handle: DMA memory address to free. 62 - * 63 - * Wrapper function for dma_free_coherent(), freeing memory previously 64 - * allocated with qseecom_dma_alloc(). Refer to dma_free_coherent() for 65 - * details. 66 - */ 67 - static inline void qseecom_dma_free(struct qseecom_client *client, size_t size, 68 - void *cpu_addr, dma_addr_t dma_handle) 69 - { 70 - return dma_free_coherent(qseecom_scm_dev(client), size, cpu_addr, dma_handle); 71 - } 72 - 73 - /** 74 29 * qcom_qseecom_app_send() - Send to and receive data from a given QSEE app. 75 30 * @client: The QSEECOM client associated with the target app. 76 31 * @req: Request buffer sent to the app (must be TZ memory).