diff mbox series

[v8,1/9] bus: mhi: core: Allow sending the STOP channel command

Message ID 1617311778-1254-2-git-send-email-bbhatt@codeaurora.org
State Accepted
Commit 5a62e39b45b585726e0dcbf383bfc70dc9f07637
Headers show
Series [v8,1/9] bus: mhi: core: Allow sending the STOP channel command | expand

Commit Message

Bhaumik Bhatt April 1, 2021, 9:16 p.m. UTC
Add support to allow sending the STOP channel command. If a
client driver would like to STOP a channel and have the device
retain the channel context instead of issuing a RESET to it and
clearing the context, this would provide support for it after
the ability to send this command is exposed to clients.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/bus/mhi/core/main.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Jeffrey Hugo May 4, 2021, 5:40 p.m. UTC | #1
On 4/1/2021 3:16 PM, Bhaumik Bhatt wrote:
> Add support to allow sending the STOP channel command. If a

> client driver would like to STOP a channel and have the device

> retain the channel context instead of issuing a RESET to it and

> clearing the context, this would provide support for it after

> the ability to send this command is exposed to clients.

> 

> Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>

> Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>

> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> ---


Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
patchwork-bot+linux-arm-msm@kernel.org May 26, 2021, 7:03 p.m. UTC | #2
Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

On Thu,  1 Apr 2021 14:16:10 -0700 you wrote:
> Add support to allow sending the STOP channel command. If a

> client driver would like to STOP a channel and have the device

> retain the channel context instead of issuing a RESET to it and

> clearing the context, this would provide support for it after

> the ability to send this command is exposed to clients.

> 

> Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>

> Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>

> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> 

> [...]


Here is the summary with links:
  - [v8,1/9] bus: mhi: core: Allow sending the STOP channel command
    https://git.kernel.org/qcom/c/5a62e39b45b5
  - [v8,2/9] bus: mhi: core: Clear context for stopped channels from remove()
    https://git.kernel.org/qcom/c/4e44ae3d6d9c
  - [v8,3/9] bus: mhi: core: Improvements to the channel handling state machine
    https://git.kernel.org/qcom/c/3317dc6cea29
  - [v8,4/9] bus: mhi: core: Update debug messages to use client device
    https://git.kernel.org/qcom/c/cde61bb0470d
  - [v8,5/9] bus: mhi: core: Hold device wake for channel update commands
    https://git.kernel.org/qcom/c/73b7aebcc8cb
  - [v8,6/9] bus: mhi: core: Clear configuration from channel context during reset
    https://git.kernel.org/qcom/c/47705c084659
  - [v8,7/9] bus: mhi: core: Check channel execution environment before issuing reset
    https://git.kernel.org/qcom/c/8e06e9fb9909
  - [v8,8/9] bus: mhi: core: Remove __ prefix for MHI channel unprepare function
    https://git.kernel.org/qcom/c/8aaa288f709e
  - [v8,9/9] bus: mhi: Improve documentation on channel transfer setup APIs
    https://git.kernel.org/qcom/c/6731fefd9567

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c
index 58b8111..8c510f1 100644
--- a/drivers/bus/mhi/core/main.c
+++ b/drivers/bus/mhi/core/main.c
@@ -1208,6 +1208,11 @@  int mhi_send_cmd(struct mhi_controller *mhi_cntrl,
 		cmd_tre->dword[0] = MHI_TRE_CMD_RESET_DWORD0;
 		cmd_tre->dword[1] = MHI_TRE_CMD_RESET_DWORD1(chan);
 		break;
+	case MHI_CMD_STOP_CHAN:
+		cmd_tre->ptr = MHI_TRE_CMD_STOP_PTR;
+		cmd_tre->dword[0] = MHI_TRE_CMD_STOP_DWORD0;
+		cmd_tre->dword[1] = MHI_TRE_CMD_STOP_DWORD1(chan);
+		break;
 	case MHI_CMD_START_CHAN:
 		cmd_tre->ptr = MHI_TRE_CMD_START_PTR;
 		cmd_tre->dword[0] = MHI_TRE_CMD_START_DWORD0;