Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp197548rdg; Thu, 12 Oct 2023 03:06:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEphG0+NYsN0Y2b/E3Alf9+q4b+p1nnT8RSxaXPnHKFv+1laaDYD/FHgr78J07rTfAA2mVl X-Received: by 2002:a05:6a21:7892:b0:15e:96d3:a31b with SMTP id bf18-20020a056a21789200b0015e96d3a31bmr27989160pzc.39.1697105210898; Thu, 12 Oct 2023 03:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697105210; cv=none; d=google.com; s=arc-20160816; b=s2muhH2tbmAhzR1mH+txHqt1Vq5o6xwpKThrbp766+1ZZ0FZlaZ1/7jLvO//5ZmD1N 9+fYr28eXtSH9PfoW/0Y+yGnSpfg/ogJGmGhwViWDNHi34IFkrfSnNu5YkvFTxpuShDN gqfgfJPZ0T5kwLnyxlA5Tf60dzNg/dwEk8eMgYfCgQPsLM4FtVVtl/CMNlxHiXQPvU2r EdOGrt6AITeRV+U95KXsN7dLCe3G+TeRC7yerBN3Lvd2mtuGe8E30AOBAtJB5lP2Wpph J1nRfPiTYNWvOvdnBUGAcP/yOCGq6xNmwrrLT0z2N9CGmerV66PG5gnUMhx4yYuypUzb VdPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=OTBM7yzUqbbeDqW/dTksmnQDZhBiqFC0bnAR6rgvtts=; fh=AU2PDpeY0rAk7/b7L+JBWP60/94ZmD5zL3mCOUquEbI=; b=R6/cGyDSD32MYrvrSIKCIpqph3IVJBaaaoffxZPPWzOErsdqR/0VEBkYBOaeyGFcqB Kz+eGJNtIsLRqBSStJj1v0X1xEQHldhsTgllgdf5ezdJLVuraIMPxTbfFLbc5W0mvZ5l P6Mw/zoPmv6/Iohu+hqi8xxgBrVdKTSPdReu54bPip2oixBN3jmTMkWBN/OIOhMwp/Oj JRD225z/56M8k8LGu1kG/sU6pUsVTbwShCKLXFHpZnxKRueHUscY+NvLLVezDFvH6OQU Q31yL8Edggb7H5THQfBeSI4o8g+4oyInZQqx+blXmjfEzU49t8hBzU+TZRof+CrzV8bY evrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kZGe/FHA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a18-20020a170902ecd200b001c5fd2a242asi2061897plh.363.2023.10.12.03.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 03:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kZGe/FHA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 872AF82289AB; Thu, 12 Oct 2023 03:06:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343760AbjJLKG2 (ORCPT + 99 others); Thu, 12 Oct 2023 06:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235578AbjJLKGZ (ORCPT ); Thu, 12 Oct 2023 06:06:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20A66D8 for ; Thu, 12 Oct 2023 03:06:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30472C433C8; Thu, 12 Oct 2023 10:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697105182; bh=s/sZcf7nbHGgtGqnIcOjvr3LFAA8WfuaI+wbvCv/HyI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kZGe/FHAs9+4LTHdzHXm0+1PGY7i3nPHVD57gn6TDSc2Bb1npF2C35wRQ82wFC6m4 7cQS8FtUVc68v7i/MR/EnMNBVHJOfb3bW5ZLNE1D3PrsSEnCFZmXaUB1/34FQ25f7B RzP7ryErVzHM4X7ovAsfcAlKeVNY4I9tF+a/6BvhNvc8jYH0ryJAXftTtgTnjJKZqU eELZXoaLMm9NIhfJy0mnyc1l3bRdW9vMs0b8/eQ3DDxXe0xECnvDSe13tTTM09Fs7G Fg5/qSG+nXV82eAvhnlXrU1MMKRzS4srhjnwPWmrNuwCd308hN8AYAz+SiLiVqJZuD TExicGO5tUv8A== From: Pratyush Yadav To: Michael Walle Cc: Md Sadre Alam , tudor.ambarus@linaro.org, pratyush@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com, quic_varada@quicinc.com Subject: Re: [PATCH] mtd: spi-nor: Ensure operation completion before shutdown In-Reply-To: (Michael Walle's message of "Thu, 12 Oct 2023 11:11:09 +0200") References: <20231012055148.2445303-1-quic_mdalam@quicinc.com> Date: Thu, 12 Oct 2023 12:06:19 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 03:06:48 -0700 (PDT) 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. -- Regards, Pratyush Yadav