Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp160864pxb; Fri, 15 Jan 2021 09:47:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwleVMQo4Xn69dZzAS93QmdncOgZRep26pch/KCq6imgWSbI29S+8+/IgMtMVr3jxaCxU4o X-Received: by 2002:a17:906:39d5:: with SMTP id i21mr9290345eje.339.1610732832394; Fri, 15 Jan 2021 09:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610732832; cv=none; d=google.com; s=arc-20160816; b=sZNQru4nUyMySj26RDhlWm8/hgpzq0Pm3NuGP7/257f7DbppGNOTfc4fz/9afGHb3R s7hxj/SDZRdb5tbk3HXMVQRgNfJ5pdLyIiFqdvgDRY4i38ykrb8HkI5+nXnxZLV4b4UV B9WzQQy2l3vQEeW6DpNkrctRb6fD1XG+u3Lvdm22oQ5f4Zo9XQj3BbJYxmWD3R2JQR3o um9V7G+PEPi/CCWsCpgK/K2nxGSWwu1BqhkY60Ionj0KvSsqTYjSLAos3Ht5LXQMEYUn xabqKg2r56dI/9Qzsr6AxasYYpgxvWr70qAlPQuVr0vdyqWmUzV1zgh5u++sf8YH7ayx y9Wg== 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:dmarc-filter:sender:dkim-signature; bh=a8ujjx/etzALhWVqswySGv673znSR41d9Rv5ixKpPRs=; b=GNBy3QvI/zkbZsu6cftK9XwKRZltzuIAS3JMbUCJXd+VaUZ7cIt08989Pthy0JRQpZ PIQCW7mVLZgqMizYBLg3jDv5CHAcABzD1sIHbh3CJbKbEhXq5xyU2nhJZAJLv6Lxa+AK 0VQJDzifZfQQcN+erKMpIY/tMce6kFi7LNhPm8REeXlFmoyTyheuo1WjCZkbEQ/8V/Qa zGOJX87zdTrAfuGI6xdEiq6mZS6I9gv9CAwnQ2NLVOafzGrB9/6Arp+KdkdLtqmstrJu auMIOWXEh7UF2aoM/KGDDaO8chfrWdNu7C//29iuA3qR6RMUQHOL6hODVF7hrgodgy7C Sm2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=v+dwexm5; 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 p92si4748023edd.367.2021.01.15.09.46.48; Fri, 15 Jan 2021 09:47:12 -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=@mg.codeaurora.org header.s=smtp header.b=v+dwexm5; 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 S1729599AbhAORqO (ORCPT + 99 others); Fri, 15 Jan 2021 12:46:14 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:58619 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728849AbhAORqO (ORCPT ); Fri, 15 Jan 2021 12:46:14 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1610732739; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=a8ujjx/etzALhWVqswySGv673znSR41d9Rv5ixKpPRs=; b=v+dwexm5K2U63TKeBeDGI4QQz5UhResgdSqW6RQB/F3F90hiTGddDWzt2OJFC5WE97pnbDQ7 aTiTSWb/N/V3txtTO3wQcDdA3PrItNGcsKCDmPbdnPHhGa7qkVmbTJ4Y/onzChVl0ErT14iJ rTHi1r007L1JocjZuXszwRFvOrI= X-Mailgun-Sending-Ip: 198.61.254.31 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-n09.prod.us-east-1.postgun.com with SMTP id 6001d4a88a0374a501b6d90b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 15 Jan 2021 17:45:12 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 45726C43464; Fri, 15 Jan 2021 17:45:11 +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, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.46.162.249] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hemantk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 27039C433CA; Fri, 15 Jan 2021 17:45:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 27039C433CA 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=hemantk@codeaurora.org Subject: Re: [PATCH v2 1/3] bus: mhi: core: Clear devices when moving execution environments To: Bhaumik Bhatt , manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, carl.yin@quectel.com, naveen.kumar@quectel.com, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org References: <1610651795-31287-1-git-send-email-bbhatt@codeaurora.org> <1610651795-31287-2-git-send-email-bbhatt@codeaurora.org> From: Hemant Kumar Message-ID: <7629e0f1-0046-b22c-7d1e-2bf6851c8725@codeaurora.org> Date: Fri, 15 Jan 2021 09:45:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1610651795-31287-2-git-send-email-bbhatt@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/21 11:16 AM, Bhaumik Bhatt wrote: > When moving from SBL to mission mode execution environment, there > is no remove callback notification to MHI client drivers which > operate on SBL mode only. Client driver devices are being created > in SBL or AMSS(mission mode) and only destroyed after power down > or SYS_ERROR. If there exist any SBL-specific channels, those are > left open and client drivers are thus unaware of the new execution > environment where those channels cannot operate. Close the gap and > issue remove callbacks to SBL-specific client drivers once device > enters mission mode. > > Signed-off-by: Bhaumik Bhatt Reviewed-by: Hemant Kumar -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project