From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71B6FC48BD6 for ; Tue, 25 Jun 2019 11:56:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4AE6D20644 for ; Tue, 25 Jun 2019 11:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732351AbfFYL4G (ORCPT ); Tue, 25 Jun 2019 07:56:06 -0400 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:51166 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbfFYL4F (ORCPT ); Tue, 25 Jun 2019 07:56:05 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08232059|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.0138277-0.00107238-0.9851;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03276;MF=liaoweixiong@allwinnertech.com;NM=1;PH=DS;RN=13;RT=13;SR=0;TI=SMTPD_---.Epy0fp2_1561463760; Received: from 172.16.10.102(mailfrom:liaoweixiong@allwinnertech.com fp:SMTPD_---.Epy0fp2_1561463760) by smtp.aliyun-inc.com(10.147.41.158); Tue, 25 Jun 2019 19:56:01 +0800 Subject: Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips To: Schrempf Frieder Cc: Greg KH , Vignesh Raghavendra , Boris Brezillon , Richard Weinberger , "linux-kernel@vger.kernel.org" , Chuanhong Guo , Marek Vasut , "linux-mtd@lists.infradead.org" , Miquel Raynal , "stable@vger.kernel.org" , Brian Norris , David Woodhouse References: <1561424549-784-1-git-send-email-liaoweixiong@allwinnertech.com> <20190625030807.GA11074@kroah.com> <97adf58f-4771-90f1-bdaf-5a9d00eef768@kontron.de> From: liaoweixiong Message-ID: <814a343e-e4c4-3ef2-29e2-d6c56f3d5bbb@allwinnertech.com> Date: Tue, 25 Jun 2019 19:56:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <97adf58f-4771-90f1-bdaf-5a9d00eef768@kontron.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oh, i am sorry that i had misunderstanded your letter. Thank you for your document and guidance. On 2019/6/25 PM 3:04, Schrempf Frieder wrote: > Hi liaoweixiong, > > On 25.06.19 05:08, Greg KH wrote: >> On Tue, Jun 25, 2019 at 09:02:29AM +0800, liaoweixiong wrote: >>> In case of the last page containing bitflips (ret > 0), >>> spinand_mtd_read() will return that number of bitflips for the last >>> page. But to me it looks like it should instead return max_bitflips like >>> it does when the last page read returns with 0. >>> >>> Signed-off-by: liaoweixiong >>> Reviewed-by: Boris Brezillon >>> Reviewed-by: Frieder Schrempf >>> Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs") >>> --- >>> drivers/mtd/nand/spi/core.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> >> >> This is not the correct way to submit patches for inclusion in the >> stable kernel tree. Please read: >> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html >> for how to do this properly. >> >> > > FYI, you should not send the patch to stable@vger.kernel.org, but > instead, as I said in my other reply, add the tag "Cc: > stable@vger.kernel.org". See "Option 1" in the document Greg referred to. > > Thanks, > Frieder > -- liaoweixiong