Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3715822rdg; Wed, 18 Oct 2023 04:08:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSVT/qeJ2XLsY6lPCpReuWAs1DffdVaRY6Kg1pehlDO43ixwb3hEFoFgoH3eYrAtw9r6Y/ X-Received: by 2002:a05:6870:3922:b0:1ea:4338:20b7 with SMTP id b34-20020a056870392200b001ea433820b7mr5690922oap.20.1697627283306; Wed, 18 Oct 2023 04:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697627283; cv=none; d=google.com; s=arc-20160816; b=MFeE3qNaU+pzNYxqGD3cl3jUr84aKb449kWh/dd6FaGCjI01DXDp/U1VyNNOjNJkmw NFovBxy8v9n2y9G8SVzm5a4ejJDa/rtaeR7T5JLfYG3/cRnPKeR6QA17IzAd6hCaCJR8 9nG2MsgOarlOgHu/uMcp1/igM/dJ/2L57plEtM3/9opJ0yRBTtgVTRw5/lS0fC+COJCS yZRY5BWHWSEyBWesAS1gncOv+ZU+iD64a0UubLjxqZu/R6CSc7baehaJpnYcJuprmfM5 x4o3AJBqjeqgl5DiXKeITjZ4LHfV8jDO1fzgxwOlc2k45Uc2axLVCViNbRtWzGzlbx6K j7Zw== 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=ix6ZpUMVpeBCtPeI7PgVsnjw1IDYnRh6hsgCYDArqqk=; fh=j8fPcCGdf9XXczyhPrzj2WZ7E5SFZDnZpF5LTjd1g0k=; b=ic5LeSvdGroUqQq4M3rgCtHR0MyurBGbQmc23JqlLySeNL/6q7ruLAQBQzv23DEPx+ G0HIEfphjsuVv1oEBrrTPjpJyaICYkL8TsZnR75XOcVl6APhqKvcq2RvABGUMx3CS0a+ b/B/170lwu/7itFKuoqJYcSWt9BPf1EoAH+ohadX0x9aVEpaWGaA/UEUETMXS/LV+Iev jNEer4DWQR15/pxc7XO4jqCuyI9uz1e3EPebpZPZWD1/2f5MnL/ANXIgmaTDfPW5VN0q BsMWAE+ZayzcazF8r6/DrfmWwALf/UvrrY9Fur7ID3jqf8xwEXo04egF22K04XdC10i+ QDqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TCpGAlhV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k184-20020a6384c1000000b005acf0458523si1864590pgd.612.2023.10.18.04.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TCpGAlhV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1F85780D6A38; Wed, 18 Oct 2023 04:08:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjJRLHy (ORCPT + 99 others); Wed, 18 Oct 2023 07:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjJRLHw (ORCPT ); Wed, 18 Oct 2023 07:07:52 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6F810E for ; Wed, 18 Oct 2023 04:07:51 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39I6ApHh011707; Wed, 18 Oct 2023 11:07:42 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=ix6ZpUMVpeBCtPeI7PgVsnjw1IDYnRh6hsgCYDArqqk=; b=TCpGAlhVGzzGYHUqVAgRTfBxGW7r3l9edYesXVV8nRXNeW+y8d9IxkeffrYg9B8ArHRb Sljl3t6Yb7TNsThBQqVfPrFLSWChotCj3hJZPhqet9TVOoWXR710Cr41BdMuLSY+6SBy EBxKBsiSs4KwuWlIXPc8jrjTO6KN5WShxLG8uUh+1k2l66oOnVshHk6rqhgTfskxGs6J rGyXg1lnAiAO2jEdUL3emIUzR1CFDh+pQERnuTARnHSTucxUv9Cez+utssSVfVaOIbYs VyPWIJCtgIm/RebDKNIs2Pv006MaOx26c31pwvDP4iGOrgMr21Epd6SqMaWPaxHf27Pa MQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tsvxwtc0f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 11:07:41 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39IB7fbg011157 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 11:07:41 GMT Received: from [10.201.3.104] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 18 Oct 2023 04:07:37 -0700 Message-ID: <62909863-5f1d-7fc7-3fd5-a8da0caa89ba@quicinc.com> Date: Wed, 18 Oct 2023 16:37:34 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] mtd: spi-nor: Ensure operation completion before shutdown Content-Language: en-US To: Pratyush Yadav , Michael Walle CC: , , , , , , , References: <20231012055148.2445303-1-quic_mdalam@quicinc.com> From: Md Sadre Alam In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: GawOuAzjbGeZmEDcqcMoiSnUNK6Xgh0V X-Proofpoint-ORIG-GUID: GawOuAzjbGeZmEDcqcMoiSnUNK6Xgh0V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-18_09,2023-10-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 impostorscore=0 adultscore=0 clxscore=1015 mlxscore=0 suspectscore=0 phishscore=0 mlxlogscore=377 lowpriorityscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310180092 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:08:01 -0700 (PDT) On 10/12/2023 3:36 PM, Pratyush Yadav wrote: > On Thu, Oct 12 2023, Michael Walle wrote: > >> Hi, >> >> Am 2023-10-12 07:51, schrieb Md Sadre Alam: >>> Ensure that there are no pending spi operation inprogress >>> when system halts. >> >> What operation might be in progress here? Did you encounter some problems? >> Please explain it in more detail in the commit message. > > +1 > > Ideally we should never reach this function with a pending operation. I > think we should do a proper wait in the place we did the operation that > needs waiting rather than here. That would make sure operations other > than shutdown, like reads, also work properly. > We have faced issue while doing nor flash read/write test with specific nor part. Will check once again with the same part and post new patch.