Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp139886pxb; Thu, 21 Jan 2021 03:31:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwumwTCE+1NrEWsD5wIZZO7PbUKp2OR0a6/3wT4Nz++O5NDPneQ0EBOglGqOfZ6SN1nWlG0 X-Received: by 2002:a50:eb81:: with SMTP id y1mr4256906edr.176.1611228718094; Thu, 21 Jan 2021 03:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611228718; cv=none; d=google.com; s=arc-20160816; b=PeuvsuvWQIscQmBaJMsHurBjDazbkTIqcUNbTi7ELoRnUquGtTn9dBEgSa51V2XZlJ sHAhWcpZRvpbu7ygzkqIg8ZkplRohJQ8FqwlreBgN+bQT0Yz/KI0OILZ1NiWxfDTBxjA kk7hv/PaOMpWRc/f8oy0vjZa/SsH80GT8Md/qBt4hfAG51mD4tMuK/uDcpRN1cmxTbuh S5IsTsM34A1awCARngW1Vc5udxKNeV6Q9fG8SzvIRrrjxNQziayafrnuFu/kQYf5aDTf UJcDUH3BBVSGu5lZSO5ezu+df2fo88frnFUp61h5ya98RJQvmL70Uj03TMh/4CqUlPDU 5C9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0OcdjvobOk+GPxpivSATMN83Kpqse1ZwZ2bkbAfIi3I=; b=YOkZGj6QBRFdzvCgpergZocbOsQkzkan0ADLtxBxtbTF2KJaCESavsCZ4f0Kw4YxsV xDlFw4Gk9lDcxgRaEXTnxuzpHJ5sU+I5vwG5ArmmMsVylv9jAx+4A/AIksINoT5viBd7 G1DtpilXK7Ns/Vfbd8Z1QlHDyXSr4/CqQ8GupXYBwx77gK9CKgXG0lUz6W4Gn1zGQ0E0 JbAt/yMD7wh7civhretthn22L5NUAvbGPJrEMpghZC+txb8hgCncyHbF9o8xxA0ZoXU/ VfHB9Hn2Sc8grXNGhRITHe2+zFOPm9CfatyJBSzUqMJT6dIlWtfGWFjnRXOLa8L3ye+p hLBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ny0GKzB+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si429814edu.518.2021.01.21.03.31.34; Thu, 21 Jan 2021 03:31:58 -0800 (PST) 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=@linaro.org header.s=google header.b=Ny0GKzB+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728999AbhAULa6 (ORCPT + 99 others); Thu, 21 Jan 2021 06:30:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730459AbhAUL0E (ORCPT ); Thu, 21 Jan 2021 06:26:04 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E4BBC061575 for ; Thu, 21 Jan 2021 03:25:22 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id cq1so1449677pjb.4 for ; Thu, 21 Jan 2021 03:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0OcdjvobOk+GPxpivSATMN83Kpqse1ZwZ2bkbAfIi3I=; b=Ny0GKzB+6ASi8RoV11oi9EEWdjvtCnewhNQUTK2+73E91tXrFr7IL6BX3fDd63oA/F aVQ402ywrcPsofOg0lg4QSmbMtCwwhgdtx1KggjnD+gg93oarzjm8+4WrydeLdaVtDOj Aq0SdDdeoysffCAvxgh8eR7gjpnQkuCz8XKL9DjOB1qz/W26dwvFzv5SVvhkCLitUw9q 39xBwqfQ7rNpcpNfHkdMXhljq2I0pdkEp4DUdjGO22lqQa+eJ0nr2owznK5wSwGMEGJS /loaRZEUNmogKsciBitAN092h/gm3aW6cYeNqHkX2rHifWMVuGoV7D0pjUlCFC3oJBcs F0iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0OcdjvobOk+GPxpivSATMN83Kpqse1ZwZ2bkbAfIi3I=; b=XeQcsrZh6GU6kSip9twdA+ZdwSt78O7VwLPvotv33/dOzsqOhnH5Xret1PY0pBlPOp msL8iDsVc0+0PbPHdsd6uT04kNmwJCqf3IktQbkFdS/04AIlnMY4ceAzg8Lg9JqDpJ2l OAJID3qUNsuM9gZmGDJkGyezhU6oXbN2uFhAiLh8YgqSv5TZZ2KC4oPhSkpMSFZtvZXx FIIJpwbis6xp+E2Bh7BHsh2ex9ZR8j3ffF7rDYZISfhXH8IjsQdH/saYbDLbO9zVYo8I MEiUeF5IVaLAqBLo3ejrmLatidSAqc9Lsdn1r11CVdLVrW+ebkxWxNTOJfCl+2VQKRdt QRig== X-Gm-Message-State: AOAM533dsR45CG2kNWYzGZc6Pxke6kl3osVz7ldFuEIf0ymRv1y6N0Lx P3Jn/rtb42YseWjxqNoEPt/S X-Received: by 2002:a17:90a:f2d2:: with SMTP id gt18mr11402525pjb.102.1611228321558; Thu, 21 Jan 2021 03:25:21 -0800 (PST) Received: from thinkpad ([2409:4072:6182:23c4:4d5:e6d9:fc7e:c8e2]) by smtp.gmail.com with ESMTPSA id h3sm5171463pgm.67.2021.01.21.03.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 03:25:20 -0800 (PST) Date: Thu, 21 Jan 2021 16:55:15 +0530 From: Manivannan Sadhasivam To: Bhaumik Bhatt Cc: linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org Subject: Re: [PATCH v5 1/9] bus: mhi: core: Allow sending the STOP channel command Message-ID: <20210121112515.GE30041@thinkpad> References: <1610139297-36435-1-git-send-email-bbhatt@codeaurora.org> <1610139297-36435-2-git-send-email-bbhatt@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1610139297-36435-2-git-send-email-bbhatt@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08, 2021 at 12:54:49PM -0800, 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 > Reviewed-by: Hemant Kumar Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > 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 8576b0f..c22d7df 100644 > --- a/drivers/bus/mhi/core/main.c > +++ b/drivers/bus/mhi/core/main.c > @@ -1224,6 +1224,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 >