]> git.baikalelectronics.ru Git - kernel.git/commit
mhi: core: Factorize mhi queuing
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 11 Jan 2021 16:56:35 +0000 (17:56 +0100)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 21 Jan 2021 11:40:25 +0000 (17:10 +0530)
commit1e921a00e38730a0fd3346e143c44c98b36e6740
treece73399b7147cc97c04fcf95ef87c0f225db1e25
parent93178980f761c4bfadc23e0a6617a6567003723e
mhi: core: Factorize mhi queuing

Instead of duplicating queuing procedure in mhi_queue_dma(),
mhi_queue_buf() and mhi_queue_skb(), add a new generic mhi_queue()
as common helper.

Note that the unified mhi_queue align pm_lock locking on mhi_queue_buf
behavior, taking it with irqsave variant (vs _bh for former queue_skb
and queue_dma version).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/core/main.c