Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1083718rwl; Thu, 5 Jan 2023 08:28:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXuN35Z1cve2BaI01Lltvn8TC7kiF1uQAuA5imw0gcdP84dh8P5Vmltw38wr1Zw/CUlQvLd7 X-Received: by 2002:a05:6a20:6f47:b0:a3:7d0b:5dcb with SMTP id gu7-20020a056a206f4700b000a37d0b5dcbmr65564227pzb.15.1672936084018; Thu, 05 Jan 2023 08:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672936084; cv=none; d=google.com; s=arc-20160816; b=CbYq25oWhiEsn2sXE7Kvo7h9CAcNN7o4T5pREUu73AnVqE9I9PQzUGWolWJth1aBUi pgVmC8TeYsuxYyxXsWxD2npHQvJnj/v4IZTP/HbADACNl1yqxOLmUB5bI2nBLyY/Vd06 cr/fiN+A6wr+DGndKq0guT5aZf3/KeFYIhsaKUYh3yrIBFJPFe1lf8XCSfzRms6lBVAT B7Rw/fIxQHsPAehRsdR2TvFyMd3mldD25gAJoU2vqUh0pF1T+iO0oh3dNGASrFFPmgv8 eXMw+lZz7mTf3Gu+PbwFkPMURt0haxR4kgk2BoP8lXpLJTciwWWdTLq6Jtd3NfPHyQ2i Avww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Xo83gKabN1O0R3UktLS+Q+GhShKE1s8GwQ3eMi8lJz4=; b=kC3G9JrWldZ0MpLk4XVxQ8nTmQDkOD6Ht20qvdmWf7lApKfCqnezlioUelWDYfKvrT TVbh1O84DpD1dHLS3pUrzjmHjgSpsa1x50NK/GAnUXxE0mPxJuliKgPukvZRrP6WE17+ 6QkhQDXq5DFo6z+pJBnqlhWuaBPPdhNVFxYuNWuKd8CnBjwCVBc6vIVDOvIoCRSbTQ2v t1tcFyIz+gZWyi2VkNr+m0XRKmbKHExewSyQAYG2iwkwwCORaL3JRkG1LTX3KWoKXkgq 2s9tXZ+TA3PuMTenKyKJvwutuvA2MroeJ8LaoGGn/NVYq2pVcRW0XEM2lSrsPtG8lWBi EpPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NbnolHFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a6541ca000000b0049f17211e3fsi18934158pgq.676.2023.01.05.08.27.56; Thu, 05 Jan 2023 08:28:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NbnolHFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234841AbjAEP6L (ORCPT + 57 others); Thu, 5 Jan 2023 10:58:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbjAEP54 (ORCPT ); Thu, 5 Jan 2023 10:57:56 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D77F66; Thu, 5 Jan 2023 07:57:55 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 305DtCqG025495; Thu, 5 Jan 2023 15:57:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Xo83gKabN1O0R3UktLS+Q+GhShKE1s8GwQ3eMi8lJz4=; b=NbnolHFEWM3w95DY3Ud7bVyUCp7CeeoE7FTgNCjVcO7UhiS2r1nDuBYYvy3t2OvcEZcV uHNW9WFO60wcwMuf0kn/EWjXDxkTrmPRtXrWcPOwLZ+Az7Ft7kwWtF086kwTN1zpDVl0 UxTxdabTaOtm4cxjLic/3KgPggkKstmrBO31EcPzMZAqb19ZaZSnAEgK/dQyZ71fSACG LFfM9P5qwgj2tYKvhg2E3iDq2bOt69KTDjB8SFNx/ziMU4whaTgAxRWjhb33iYu0+o9O RhEbLMVhupvT9puOVD07YBp1hjd2e1H+C/86Fb+fWesdgEeks8BkqYq0snu8PYcxVtuI Zw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mwu4vrqaj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 15:57:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 305FvoVx032293 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Jan 2023 15:57:50 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 5 Jan 2023 07:57:50 -0800 Message-ID: <4497ea5f-e255-12a3-78ca-7210d34e3762@quicinc.com> Date: Thu, 5 Jan 2023 08:57:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 6/6] bus: mhi: ep: Save channel state locally during suspend and resume Content-Language: en-US To: Manivannan Sadhasivam , CC: , , References: <20221228161704.255268-1-manivannan.sadhasivam@linaro.org> <20221228161704.255268-7-manivannan.sadhasivam@linaro.org> From: Jeffrey Hugo In-Reply-To: <20221228161704.255268-7-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: bnNwF8f_R4Sa1sDzZ8yNUNgLm8zcM9pV X-Proofpoint-ORIG-GUID: bnNwF8f_R4Sa1sDzZ8yNUNgLm8zcM9pV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-05_06,2023-01-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=889 phishscore=0 suspectscore=0 impostorscore=0 spamscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301050125 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/28/2022 9:17 AM, Manivannan Sadhasivam wrote: > During suspend and resume, the channel state needs to be saved locally. > Otherwise, the endpoint may access the channels while they were being > suspended and causing access violations. > > Fix it by saving the channel state locally during suspend and resume. > > Cc: # 5.19 > Fixes: e4b7b5f0f30a ("bus: mhi: ep: Add support for suspending and resuming channels") > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Jeffrey Hugo