]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
bus: mhi: core: Refactor mhi queue APIs
authorHemant Kumar <hemantk@codeaurora.org>
Thu, 21 May 2020 17:02:36 +0000 (22:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 07:35:40 +0000 (09:35 +0200)
commitcd116318803f5ee222301f3525578241a04822ee
treecb3c4c0cfa8e2d3bdce89e9f54975aacebdfe178
parentddc0aef01a90ee8431f1a47f7b35e84d36ab8913
bus: mhi: core: Refactor mhi queue APIs

Move all the common code to generate TRE from mhi_queue_buf,
mhi_queue_dma and mhi_queue_skb to mhi_gen_tre. This helps
to centralize the TRE generation code which makes any future
bug fixing easier to manage in these APIs.

Suggested-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200521170249.21795-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/internal.h
drivers/bus/mhi/core/main.c