Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4688550rwl; Tue, 28 Mar 2023 09:57:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Zr/BF9fSB52Ot4vKEQUDCsHUoRLiIYi6KM1ZT0e7PoRKGoUS1HyZvRauWGPQ4zavdpp4yU X-Received: by 2002:a17:906:1645:b0:88d:f759:15ae with SMTP id n5-20020a170906164500b0088df75915aemr17801112ejd.42.1680022671574; Tue, 28 Mar 2023 09:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680022671; cv=none; d=google.com; s=arc-20160816; b=p95XiTME8fbtK66xQ/BapZSgknnhEQNAJJVoHmyTY++W3xe1Ye2zxLf3iMDZICeAPa X/p1+0zl5LQ7V5GSoB+GpFfbjlTsXXwyE4NhlyZsamvcS7CXJ/SRNzVUWnw9tAJhdLb2 j9kbWFU9+BC3x8UXV9xp8SV98RduCH7bC0hSbR/nT5S/0OTZ/t0wEH/BYONt/eSbuav8 VGCDqnu8tpNDhTV7S3qrm0FRU8w3yL7WZRxiWMAv/2CMKcb3QKKuyJ4H7yYRa42ns8ni tslLmBMpiWkFG+/Fs/jPLZGZ6Pdk/GlFs2uX8tGijq4kPTj5tqOC7ZdZP39YuK7yKvZS FCQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=NIwfn8SjLwr/gca6LW045B2rVPF8Z8mvl4ywazf2kfQ=; b=GJsU9eo0NQA//OideoRUMKNHetulOXEetAe/w7QYwliX7GX7kzAVQG4tU1eQdazO7y 7vEI5fv6sXeZc+KJ3vVffE9D/oE3eVo/G/fJqzQCzUTFJxl2WVMr+q9hyBYG8Kmafssf b0ed+b+PCS4kOY0B56MJZU5TxFngEnMifIcpgaLOlYb27eLjDSxNVCfKLLd4FEquAlGs EaccoBo5KX+tBTjoddiUuoQ9pYyHbhKB0oXRvm3Ul7j2gV/4C0YPlfqlmYoiMkuVSIH3 +3vkH83dh9wFQYEHkfpA1TA38dgqWOTXLUSWlizitgfxWgPG0zCifgttlc6DkZiGi+Ud taHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qh16-20020a170906ecb000b009264a7b19d3si24712398ejb.303.2023.03.28.09.57.27; Tue, 28 Mar 2023 09:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231843AbjC1QwD convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Mar 2023 12:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjC1QwB (ORCPT ); Tue, 28 Mar 2023 12:52:01 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7763F61B5; Tue, 28 Mar 2023 09:51:59 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 64FC161989E6; Tue, 28 Mar 2023 18:51:57 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rSqEHlFbiw2K; Tue, 28 Mar 2023 18:51:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A0DF061989F6; Tue, 28 Mar 2023 18:51:56 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G1mmPBPF4NNz; Tue, 28 Mar 2023 18:51:56 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 75C9361989E6; Tue, 28 Mar 2023 18:51:56 +0200 (CEST) Date: Tue, 28 Mar 2023 18:51:56 +0200 (CEST) From: Richard Weinberger To: Bang Li Cc: Miquel Raynal , Vignesh Raghavendra , linux-mtd , linux-kernel , stable Message-ID: <1646372169.361736.1680022316353.JavaMail.zimbra@nod.at> In-Reply-To: <20230328163012.4264-1-libang.linuxer@gmail.com> References: <20230328163012.4264-1-libang.linuxer@gmail.com> Subject: Re: [PATCH v2] mtdblock: tolerate corrected bit-flips MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: mtdblock: tolerate corrected bit-flips Thread-Index: ouKfcIuIMflG9wXsCuCDxoFYiHDGng== X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,T_SPF_PERMERROR autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "Bang Li" > An: "Miquel Raynal" , "richard" , "Vignesh Raghavendra" > CC: "linux-mtd" , "linux-kernel" , "Bang Li" > , "stable" > Gesendet: Dienstag, 28. März 2023 18:30:12 > Betreff: [PATCH v2] mtdblock: tolerate corrected bit-flips > mtd_read() may return -EUCLEAN in case of corrected bit-flips.This > particular condition should not be treated like an error. > > Signed-off-by: Bang Li > Fixes: e47f68587b82 ("mtd: check for max_bitflips in mtd_read_oob()") > Cc: # v3.7 > --- Acked-by: Richard Weinberger Thanks, //richard