Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp936318pxf; Wed, 7 Apr 2021 15:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7cBgSjEhTtm434zJ6DT1f+AZyaa6/m4VOtkyXysKGQW87Cw1viJyF6xpzJemvEJLxH/pl X-Received: by 2002:a17:906:cc4d:: with SMTP id mm13mr6602636ejb.138.1617834637727; Wed, 07 Apr 2021 15:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617834637; cv=none; d=google.com; s=arc-20160816; b=JfFNUEIygT6mY1wnDggSDoXEk9wb4KT+5i7C/GJBRLpM1ha126IqkN5HcxCgdGSdMz C4znSa01WeNkHIpt3rqJn3EkFreGqsI/drD1rBvdx4X+T6mFc6UgMRQv78c1pgAncZ75 Uo+wUMjGmivGVMO3QPukLUgI0TezzpJFDMY0AISGhUIep5l6gLE3G09ea0QGy+V1cUsM MxLm0TQ4IkBCmXPuqHjrP3R4kItL5oqUTH5Xkqz0c+iHZy5I276hMk/A9rMSSNrf9ghp RVO7UYJuP0fZbM+Se+JWhU6L8fUP72D0Yx3SEl8tRUEDPu7dFF27nTBrXN625bfH5/la 6prg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qlzTZxMrHlq9IaqoYKOJhu98bRmyXXyoDWHeXFeO+Y4=; b=GF/nsP/D7XyqLkLNsv0Hs9NfJFhXAdJwE3DUDvg413H8MI4AOVMLhs4XUAAIBjyEgh dN/NqQEbHap/yEqdQ4c4elg/rGr/zdHTkiejtoPqZnjsFWfHuWQam5I5+qd7dYXo4De1 LOq2kFj9oZl1kvfzbNmEq9f5W3FNBeeb3WPR+LOIApXbFldlI42sBiVn+udyo5E0Nf36 LdH+Ld5X4DavCkHZUCMoUDZTa8DEAC8hvCHKEng/Yss7z3pkaHKI1tafdWIbyUQDIHCL wwGUfw/7r37/zg3oq5Cf5k3f6lQ5sOi9lka9ZZLtNohYtdAHq3hSp2d57wZRRWMcD233 WfdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7iJhWrB; 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 l3si3833896edv.493.2021.04.07.15.30.15; Wed, 07 Apr 2021 15:30:37 -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=@linaro.org header.s=google header.b=S7iJhWrB; 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 S242439AbhDGG4z (ORCPT + 99 others); Wed, 7 Apr 2021 02:56:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243717AbhDGG4y (ORCPT ); Wed, 7 Apr 2021 02:56:54 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A09FC061756 for ; Tue, 6 Apr 2021 23:56:44 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id g35so7539534pgg.9 for ; Tue, 06 Apr 2021 23:56:44 -0700 (PDT) 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:user-agent; bh=qlzTZxMrHlq9IaqoYKOJhu98bRmyXXyoDWHeXFeO+Y4=; b=S7iJhWrBVnhGLodRiVAEYpbEsjKXcw36YgsCvXSjljjp6i6wKWJ9cYhc2vpHOm9yFT SVcL3hqCEe14me2bFzG7Zei5iXci3bSEhBKMZ9pdEXeQADcsQzYuyCXILXut1qSEsWOs Do71CGaJO3dntbwkxCovcRu5yK6r0e1BiFdmrWFRLpObGfsDWaPM0Kp+8wz5O8JZYRIR ryRR9gEZ19ZYRP2I0fkJ+SNsNi9gGdSi0P9QbL6GIVGt2CGse0f4+CzXVPlb9fJaEiub 5pMy9O4jfSwlC2gkZHiVS0/i8B9X4qRpvGfRa3cUI/hndGF83/mgAqaUPoq3U91XR9z6 KMGg== 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:user-agent; bh=qlzTZxMrHlq9IaqoYKOJhu98bRmyXXyoDWHeXFeO+Y4=; b=kjvQ1jFCs7s85tViEFVyqqgffU+xEH9l8mgnBrVS0vrzE/t1Oi3nHWdc++WCu2y0pc nhanXqift/V0QKauA3dZwUMCJV/FTnd4OKHzuLj/7lkDUdtFm9B3gTQsh3xuh635pacX Xcb6OghHSE2YFfNduj5Ig78sO7/dNeMG1kFOX63aWshemLwhyaCR5oUp77hm6TL7sMnk 9d8fjmYGotk6MmAztnVaXeX3QOxw52bhxCDS9mXhZuZChpZGPOHCr1LmYOM3r9c0TYzE SnQLFUXUaV5JvwMGfizlkAs18q7uqwDZeEDhKaHgeoLYDvQFxoZNABNFKkL7U9cg6O/C FISw== X-Gm-Message-State: AOAM5330tW50q7Nz5bA89v8X73XgIU2fcEP5J/2rmPxcXlPvb5i5gato cO070/7Y97pRNvrKuDtFlEqD X-Received: by 2002:a63:48c:: with SMTP id 134mr1937231pge.347.1617778603893; Tue, 06 Apr 2021 23:56:43 -0700 (PDT) Received: from work ([103.77.37.180]) by smtp.gmail.com with ESMTPSA id p5sm4315078pfg.85.2021.04.06.23.56.41 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 23:56:43 -0700 (PDT) Date: Wed, 7 Apr 2021 12:26:39 +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, carl.yin@quectel.com, naveen.kumar@quectel.com, loic.poulain@linaro.org Subject: Re: your mail Message-ID: <20210407065639.GM8675@work> References: <1617311778-1254-1-git-send-email-bbhatt@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617311778-1254-1-git-send-email-bbhatt@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 02:16:09PM -0700, Bhaumik Bhatt wrote: > Subject: [PATCH v8 0/9] Updates to MHI channel handling > Subject is present in the body ;) > MHI specification shows a state machine with support for STOP channel command > and the validity of certain state transitions. MHI host currently does not > provide any mechanism to stop a channel and restart it without resetting it. > There are also times when the device moves on to a different execution > environment while client drivers on the host are unaware of it and still > attempt to reset the channels facing unnecessary timeouts. > > This series addresses the above areas to provide support for stopping an MHI > channel, resuming it back, improved documentation and improving upon channel > state machine handling in general. > > This set of patches was tested on arm64 and x86_64 architecture. > Series applied to mhi-next! Thanks, Mani > v8: > -Split the state machine improvements patch to three patches as per review > > v7: > -Tested on x86_64 architecture > -Drop the patch "Do not clear channel context more than once" as issue is fixed > differently using "bus: mhi: core: Fix double dma free()" > -Update the commit text to better reflect changes on state machine improvements > > v6: > -Dropped the patch which introduced start/stop transfer APIs for lack of users > -Updated error handling and debug prints on channel handling improvements patch > -Improved commit text to better explain certain patches based on review comments > -Removed references to new APIs from the documentation improvement patch > > v5: > -Added reviewed-by tags from Hemant I missed earlier > -Added patch to prevent kernel warnings on clearing channel context twice > > v4: > -Updated commit text/descriptions and addressed checkpatch checks > -Added context validity check before starting/stopping channels from new API > -Added patch to clear channel context configuration after reset/unprepare > > v3: > -Updated documentation for channel transfer APIs to highlight differences > -Create separate patch for "allowing channel to be disabled from stopped state" > > v2: > -Renamed the newly introduced APIs to mhi_start_transfer() / mhi_stop_transfer() > -Added improved documentation to avoid confusion with the new APIs > -Removed the __ prefix from mhi_unprepare_channel() API for consistency. > > Bhaumik Bhatt (9): > bus: mhi: core: Allow sending the STOP channel command > bus: mhi: core: Clear context for stopped channels from remove() > bus: mhi: core: Improvements to the channel handling state machine > bus: mhi: core: Update debug messages to use client device > bus: mhi: core: Hold device wake for channel update commands > bus: mhi: core: Clear configuration from channel context during reset > bus: mhi: core: Check channel execution environment before issuing > reset > bus: mhi: core: Remove __ prefix for MHI channel unprepare function > bus: mhi: Improve documentation on channel transfer setup APIs > > drivers/bus/mhi/core/init.c | 22 ++++- > drivers/bus/mhi/core/internal.h | 12 +++ > drivers/bus/mhi/core/main.c | 190 ++++++++++++++++++++++++---------------- > include/linux/mhi.h | 18 +++- > 4 files changed, 162 insertions(+), 80 deletions(-) > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >