Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2066064ybk; Mon, 11 May 2020 11:05:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJsHmklWS7z4205SeGIuOQ5kWTzljJSDe+SmxNN4UFUa5Y5j+7uWHQBKixBWdOdFTtp8TT2 X-Received: by 2002:a17:906:f1c4:: with SMTP id gx4mr14057730ejb.171.1589220353672; Mon, 11 May 2020 11:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589220353; cv=none; d=google.com; s=arc-20160816; b=Vcsg33bCHEsRmwq00ctzczsiqKXQkwXrBUGluAAYgrBz404h6BWWdE7p7XyrCIuWwj Q5ToBwMQAiOOQJC4az9rLxtCa6Fx1AduLNJCFPnls9zpEp/YhhKfArJKQt4xGNbXcU0D xa5oBA9fWlziDHW6eJR5Jk6Faaa+RK2OHgxVSXvy3Lt7hITcsYz8foeeYhpU2ogNEmD1 nKGA7wzIWKC3CHSQFMhG/l4NoOU9STox8DLKQPaDPb5SIohbvE75Ym8y4plmO86s7A82 CL8d+dhJnZB15izSFJ+NmpDq2/uXrluAC0cVOOUOi5xn7DE3EQHXJcc37pHUklAbYlrA Zehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4hUaTl/w7V55aG/pzRHCWNRooX3Cd6J39x6QfIzCmS8=; b=uWK8RNRbArRqon5xn9+EF+iM1fzqsKqv8RUksb9Nhkiei4vZttUoMEcK+JJQIzUjfH Wqok8NuA4+jlpLOeI3XW/Fm07c4Qj4ad8NzX1XZy9jNzh5WdU5e1DX+CYmWBxHnF6WMg /rh+poRx1Mr5UJ+vR4p36pkLBakv4KCX4jfgaq6dQoqzlCOpYYPRi8OyNUVBKvUYo200 Y7JyGAi5qlhs6HwWsurfn3rZ0R9KGV6l2te8niLfHZS7xZkxbTBhdAeY+a4WQvsSgdxL 82jp3viBl1b88V1emKE65wtPn6TqxCJzpJvuO+4M90gwOH2l3X8B02mAP/Ln43usTxEf 2iWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GGEICkGv; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si6520392ejj.459.2020.05.11.11.05.30; Mon, 11 May 2020 11:05:53 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GGEICkGv; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731013AbgEKSBg (ORCPT + 99 others); Mon, 11 May 2020 14:01:36 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42296 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgEKSBf (ORCPT ); Mon, 11 May 2020 14:01:35 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04BI1JcN074891; Mon, 11 May 2020 13:01:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589220079; bh=4hUaTl/w7V55aG/pzRHCWNRooX3Cd6J39x6QfIzCmS8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=GGEICkGv2Gv87Dluudb293qzSwzPaLlh6xLIGeNSFwS5M7/uN8DkoHUW34FAVrJlU wJ89Lgft6U/1kQoqCexYtNg4RzOjO8uEx/yV67lsxUOh05Pt/4PUpFdOoITGzjAi1J Q69o29d9FVvUZ7FSYiloNfGSUZgggZKo3+DW5Opg= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04BI1JMc123744 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 May 2020 13:01:19 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 11 May 2020 13:01:19 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 11 May 2020 13:01:19 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04BI1IO4038165; Mon, 11 May 2020 13:01:19 -0500 Date: Mon, 11 May 2020 23:31:17 +0530 From: Pratyush Yadav To: CC: , , , , , , , , , , , Subject: Re: [PATCH v4 12/16] mtd: spi-nor: perform a Soft Reset on shutdown Message-ID: <20200511180115.zpbfecwdeuhy5qzr@ti.com> References: <20200424184410.8578-1-p.yadav@ti.com> <20200424184410.8578-13-p.yadav@ti.com> <6809202.hICg0JTlGu@192.168.0.120> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <6809202.hICg0JTlGu@192.168.0.120> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/20 11:22AM, Tudor.Ambarus@microchip.com wrote: > Hi, Pratyush, > > On Friday, April 24, 2020 9:44:06 PM EEST Pratyush Yadav wrote: > > A Software Reset sequence will return the flash to Power-on-Reset (POR) > > state. It consists of two commands: Soft Reset Enable and Soft Reset. > > > > Perform a Soft Reset on shutdown on flashes that support it so that the > > flash can be reset to its initial state and any configurations made by > > spi-nor (given that they're only done in volatile registers) will be > > reset. This will hand back the flash in pristine state for any further > > operations on it. > > Please don't introduce SPI_NOR_SOFT_RESET yet. We should instead determine the > software reset sequence by inspecting BFPT[16], bits 13:8. Ok. Will do. -- Regards, Pratyush Yadav Texas Instruments India