From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754120AbdLDN2N (ORCPT ); Mon, 4 Dec 2017 08:28:13 -0500 Received: from mailout.micron.com ([137.201.242.129]:11319 "EHLO mailout.micron.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbdLDN2M (ORCPT ); Mon, 4 Dec 2017 08:28:12 -0500 From: "Bean Huo (beanhuo)" To: Cyrille Pitchen CC: "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] drivers:mtd:spi-nor:checkup FSR error bits Thread-Topic: [PATCH v2] drivers:mtd:spi-nor:checkup FSR error bits Thread-Index: AdNtA6lgvqJKrrUSSjO9OJ/ypMPI2A== Date: Mon, 4 Dec 2017 13:27:43 +0000 Message-ID: <03b5686314b54957b673cdf092b11c02@SIWEX5A.sing.micron.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.160.29.124] X-TM-AS-Product-Ver: SMEX-12.0.0.1464-8.100.1062-23508.005 X-TM-AS-Result: No--5.680100-0.000000-31 X-TM-AS-MatchedID: 150567-139010-851106-708712-703788-702942-703543-701177-7 04318-105250-705861-707027-702039-704980-705167-705178-705733-700107-148004 -148046-148133-148980-20043-41000-42000-42003-29961 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No x-mt-checkinternalsenderrule: True Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vB4DSIhe027686 Hi, Cyrille >Hi Bean, > >Le 04/12/2017 à 13:34, Bean Huo (beanhuo) a écrit : >> For Micron spi nor device, when erase/program operation fails, >> especially the failure results from intending to modify protected >> space, spi-nor upper layers still get the return which shows the >> operation succeeds. This is because current spi_nor_fsr_ready() only >> uses FSR bit.7 (flag status register) to check device whether ready. >> This patch fixs this issue by checking relevant error > >s/fixs/fixes/ > >> bits in FSR. >> The FSR is a powerful tool to investigate the staus of > >s/staus/status/ > >> device, checking information regarding what is actually doing the >> memory and detecting possible error conditions. >> >> Signed-off-by: beanhuo > >Otherwise, >Acked-by: Cyrille Pitchen > >No need to resend, I'll fix these tiny issues myself :) > Thanks! // Bean Huo