Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3826191pxy; Tue, 4 May 2021 10:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWFSRImbbBZ0+axUEkqicoqiW6xqESLCmIRA9tsE98nKIckoqBI8t+ZOIaI75Lxs+cWdps X-Received: by 2002:aa7:d7cf:: with SMTP id e15mr15862448eds.109.1620150352563; Tue, 04 May 2021 10:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620150352; cv=none; d=google.com; s=arc-20160816; b=S6S+VVifuB7RyXAFea4azqgDFsTnfzcjNDqid0NqeqCiwaVNay74NyFpR2evfHEiI3 MiMeECYWxZs7scFiOBAYiU5qIXTRQRMrwrdVzj1H9PqOeLj7qbf3gprYBudc6C413VYz jLW3KYBOjh6qYu8nTolJMiICCzQIULB78Q+FATiMG5FVpBKdVxhpTR1t1CBIGrEHoh2Y YQjqAe/ZLZve3/nBlZfTqBsXake9+wui/vz0fWJfYuCOROYU26Iz1u7xOzCqbPREAxrH 4RThaYPM5buoTTJEjbJ9vlUlIkNpjH29C7QS+E0g/pwjx39hnnezmgyhHpK4zHaYkxNy L+7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=moeXT+ynlQo/fwTFRVKJipUkGyJLXUoCvLITOEljmu8=; b=k6ADC2JVIRk0cnnbWTfEjaKD/XB7n+RZfYp1fMHWRfMjFKwB5FX3HZfz1vS8fjRssZ PfRkAQbcILuF3+RERkO8Uu0TOzh4S7NHq95Px6kXpqPZGnu6kvgLHO4QmB8xwJ92EltV W/1kqUrXr3ni72pRswHr9bhJIqp4/2JmM7vcebMTsSTUEPXUtDY9+CDHIdJFUSTGPNgp ieUpmg5bw/vdBJqvj/csrXcAyJX5rCli+CI4KExaTUBJkTqhXTObBSCIfxnME6FvGjvb VEOKACE/I046U6QxVj+bPwgODm6pgFGEL9HmNI8twfrM0nMZQXBgso7K0Bn/woWjIvRM T/4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=GdIhcYe3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si5288698edy.426.2021.05.04.10.45.21; Tue, 04 May 2021 10:45:52 -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=fail header.i=@quicinc.com header.s=qcdkim header.b=GdIhcYe3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbhEDRmc (ORCPT + 99 others); Tue, 4 May 2021 13:42:32 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:22586 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbhEDRmb (ORCPT ); Tue, 4 May 2021 13:42:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1620150096; x=1651686096; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ek1NDbSmNE2dBVRUjlUYh6SnWrzq5ADKqO2/Os5bhv8=; b=GdIhcYe3ymh+5OVVnwyCeB7QROg9u/MRGP2g/uBV9iSgjrNj65Z1gLF7 PHw6NfD0nx0XXsOUuTr6xN97oIgyNIr1O4Lw71aj0x8CdVBPWGVWpdVqC Q+7MVe+KQ8EOmVQiw6PtYsBcnXyw1daCe+wgperPVnaS37G0B9/2U/XfF c=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 04 May 2021 10:41:36 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 04 May 2021 10:41:36 -0700 Received: from [10.226.59.216] (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 May 2021 10:41:35 -0700 Subject: Re: [PATCH v8 2/9] bus: mhi: core: Clear context for stopped channels from remove() To: Bhaumik Bhatt , CC: , , , , , References: <1617311778-1254-1-git-send-email-bbhatt@codeaurora.org> <1617311778-1254-3-git-send-email-bbhatt@codeaurora.org> From: Jeffrey Hugo Message-ID: <2d540a2a-0152-1357-67c2-b6047e423dd9@quicinc.com> Date: Tue, 4 May 2021 11:41:34 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <1617311778-1254-3-git-send-email-bbhatt@codeaurora.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03g.na.qualcomm.com (10.85.0.49) To nasanexm03e.na.qualcomm.com (10.85.0.48) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/1/2021 3:16 PM, Bhaumik Bhatt wrote: > If a channel was explicitly stopped but not reset and a driver > remove is issued, clean up the channel context such that it is > reflected on the device. This move is useful if a client driver > module is unloaded or a device crash occurs with the host having > placed the channel in a stopped state. > > Signed-off-by: Bhaumik Bhatt > Reviewed-by: Hemant Kumar > Reviewed-by: Manivannan Sadhasivam Reviewed-by: Jeffrey Hugo