Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp810405pxf; Thu, 1 Apr 2021 14:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo+QFOky1qLg1ZZqs58sBrYka5kNPS0x3nzAFGd24fsfIWHuqJd6b7+wEB58XNw0whSZOl X-Received: by 2002:a5d:8707:: with SMTP id u7mr8033163iom.18.1617311927298; Thu, 01 Apr 2021 14:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617311927; cv=none; d=google.com; s=arc-20160816; b=u2vkWzQ0gwXZjLWbdxhqR3PkkVOA+iaRdOs1UbAtw1TQKxCQAvdj5tBrbPrfm2sPKK Gu7WSiw6FxXuN5o425yKDks1DQwi2TnFqA5EsrYdUODAI9KIfuo1owyqpj1zMsy7zL0e EgNuxpZJq2J8a4tURp0J5UtVgcPPz3dXt9G3jAZKucZiIOTZROCGkNCI3AcyNSoBjWuO 0r2/xmxKEj8iG4ZOEv+5ROxowr8sXm5rpn/SkRMBaSms+2/ZBSJ65q2HKouxqyabdGTP 7T2g8XyoUjdktOy9Bpwv2R2OvgFiv96BImlC74LhXjskBatVq9saHi/U6mCxo9nfLMDE hVkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=FCwjv7ntl54MybpSxCsqpU/8FVRnuVs1Pe057sKwhss=; b=QPuaKC5zfNiVTGXXNy0uqDjacysBwkw+gHJLy172SEE6lFOsMS3P7lM5wwXUxJrBVQ F1AfrrQzQJL+zVqR8g4YWfDLe2esXPbLmKuIJPrdRLPqYtYZAUIRUo6pTjXP5RPzZpL4 aClEANn2T0HkYgsCsH9siiOIR4rNIl5qra6c5MYh83SySg1Qy40cF/25GKSI9/tFE4Oa gNKYw1uOtNxOPI5+HblyOV1/AxvJq0q0CMXUaEQ2hQKapiJmP8KW8+S9r4RZP8jUt8lr M0WwptVxr1B7gF7F62xtdArljpJ89nuwNHB6g3DVKFpz+DJcxQZywE9TQ9a+ghsgzh/n JUEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WvF7iIE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si6447107jaj.26.2021.04.01.14.18.33; Thu, 01 Apr 2021 14:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WvF7iIE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234807AbhDAVQn (ORCPT + 99 others); Thu, 1 Apr 2021 17:16:43 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:39061 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234685AbhDAVQh (ORCPT ); Thu, 1 Apr 2021 17:16:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1617311797; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=FCwjv7ntl54MybpSxCsqpU/8FVRnuVs1Pe057sKwhss=; b=WvF7iIE0/SJsviIILht1/Z1a6WTCAlZUsN/QbNnhYSwCBCFNvOjNQc8cwAARo6ul9hFawfW1 4y8RDqSTETNixBrAk3zqCgO3Aecq7T/GmBjJD8AkuCYyaRCdlAsC1PQy1MZeE0rWOwXuECzg juRXFaWlqOteYQmt2SeLumetBbk= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 6066382b03cfff3452bb475e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 01 Apr 2021 21:16:27 GMT Sender: bbhatt=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 25E92C43466; Thu, 1 Apr 2021 21:16:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from malabar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 34057C433CA; Thu, 1 Apr 2021 21:16:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 34057C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bbhatt@codeaurora.org From: Bhaumik Bhatt To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, carl.yin@quectel.com, naveen.kumar@quectel.com, loic.poulain@linaro.org, Bhaumik Bhatt Subject: [PATCH v8 1/9] bus: mhi: core: Allow sending the STOP channel command Date: Thu, 1 Apr 2021 14:16:10 -0700 Message-Id: <1617311778-1254-2-git-send-email-bbhatt@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617311778-1254-1-git-send-email-bbhatt@codeaurora.org> References: <1617311778-1254-1-git-send-email-bbhatt@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Hemant Kumar Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/core/main.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project