Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp876444pxf; Wed, 7 Apr 2021 13:55:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUpYG3+cGeh+nn9SWpr0QliiVvE7mJufzYjHl5HBMt360IG4wD0AISG7biOjO/SDuedigO X-Received: by 2002:a92:ad03:: with SMTP id w3mr4281730ilh.245.1617828950114; Wed, 07 Apr 2021 13:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828950; cv=none; d=google.com; s=arc-20160816; b=JR2SceUkgMQK9gKRHHj0IC/a27uEDGHNoEpHUeshfMOMQZkw81D/ghN3zF1RT+ySZR K3P8fB+s6q4m/7HxJApehDgvPQguANCCq6fYc5rIzietimHxYGTNjPD+K0ZGq6ZO6cW9 GD6BmbNlul6kdtS/J7cASl9/bpcU9KQhPw2e04TElYrN5ySdkjDcbOnhfISPab0hfQ9J CEKHHxMWs7QqZ22lvWo0o99fHApwcAxIpes0uUIhBMRDB/TBSDMfgjYf16gSnX61aJZd MYFKjxnEKylMFgZn8Zu8EWP++MBMiskPEWsHMRNxgHApeYNs3rXVVHXSSxMZxnFGpOrO WcgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wD+7QjxW8Yy8u2YJJtpm9de9zmFgNbvMAMPJpbXhd3s=; b=B3o9A4y0M3hZFkMmd//XiMgG0QzOIG39/bU57TDS9U5nbME6fPYiva4C9HeUzanTuG hYiNM25FIL0YTYbCLmFs2uODLUhm2YSntcRCuFrL3t3PlCORMqL0xOa8e94uC+mwPcwx tEnBZrKsASxYdaWpgLw/pPaQ7P9d5N2fXinfnKDppzObezIxA01cIJMBv//8vNZ95i5W VpuBbB5n1jymCjvFqGjdxBZy7HFM5cr7QI/3UUdvLMq77Ir8P/2iUkAg0lvFN6C9bI8r z7F0IOfgiGiCaVWvG5EW4kfmQZWK7+JZpUWm6j5kOymWpFvn0mCrQBZFvsLeCxTbo3T1 7X/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=RithvaeI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si16263719ilv.20.2021.04.07.13.55.37; Wed, 07 Apr 2021 13:55:50 -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=@0x0f.com header.s=google header.b=RithvaeI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233897AbhDGL7x (ORCPT + 99 others); Wed, 7 Apr 2021 07:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbhDGL7w (ORCPT ); Wed, 7 Apr 2021 07:59:52 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859F7C061756 for ; Wed, 7 Apr 2021 04:59:43 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id c3so18319037qkc.5 for ; Wed, 07 Apr 2021 04:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wD+7QjxW8Yy8u2YJJtpm9de9zmFgNbvMAMPJpbXhd3s=; b=RithvaeISWOYFMKOs+4g/yzDzcC1QR5HGBFNusZbLRrcUOYrNhj5Iv6cvmCYM00LDj HYWg2/ulQV4CwT8We2hte5vfPOY6QOFgQnEvGnIl4zx2OPts88+FM89qm82iyJlz1url r3BggoDlxf7mJd0/sO+tRA9OpxRyxDqbl9JuE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wD+7QjxW8Yy8u2YJJtpm9de9zmFgNbvMAMPJpbXhd3s=; b=S3rkTHyZH/XE+jWUZpnjQpKleb7HGQfMhbKDRkcNk0PJu/XlTwNw8KfYzAOgUUJe3d 1NKV/2b66T8S5Hrhf5n6HhVTZqNhz7wCG3HwrVEHnmjLDZ+Ffm/Fd9NGKSSewx2kuc6N xNhelwW0RHCHY0zWYJIiNXIrgW/jGN5OylOAb3lTOeQBZ+ilhfkdON+sQfHWkKgPkS0n bh3SPiYe4iKss3o4heG+uvAY3YF0Z4UELAz2gJsqvhNmdqymHpHmR38UBMMJtqpHdvCG 5DZpFNYy2l6Z6l1K4mRMgLvNImq/olrLQacxJTKcC3k0x/msS2g160DTlp/yMvVa9rlH oudQ== X-Gm-Message-State: AOAM531qSyBkgGEv7RzyUB0q5+i/oVTJaEfRNiqSHuMDeUbd4xXkS9g0 qy4gjGC2t6UMGsw7eOsxrGJQ9KcSZB1oX4HDeVKUeA== X-Received: by 2002:ae9:f70a:: with SMTP id s10mr2795952qkg.468.1617796782806; Wed, 07 Apr 2021 04:59:42 -0700 (PDT) MIME-Version: 1.0 References: <20210213095724.3411058-1-daniel@0x0f.com> <20210215112409.1a755bf0@xps13> <20210215121653.4edd86c4@xps13> <20210322193213.18520b9a@xps13> <20210323113233.3523d66b@xps13> <20210323150603.6b942a60@xps13> <20210407100204.08d894ca@xps13> In-Reply-To: <20210407100204.08d894ca@xps13> From: Daniel Palmer Date: Wed, 7 Apr 2021 21:01:01 +0900 Message-ID: Subject: Re: [PATCH v2] mtd: spinand: add support for Foresee FS35ND01G-S1Y2 To: Miquel Raynal Cc: linux-mtd@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, On Wed, 7 Apr 2021 at 17:02, Miquel Raynal wrote: > You may look at micron_8_ecc_get_status() helper to guide you. But > IMHO, if there are 0-3 bf, you should probably assume there were 3 bf > and return 3, if there were 4, return 4, if it's uncorrectable return > -EBADMSG otherwise -EINVAL. Understood. > We should verify that this does not mess with UBI wear leveling > though. Please check that returning 3-bit errors no matter the > actual number of flipped bits does not lead UBI to move the data away > (I think it's fine but we need to be sure otherwise the implementation > proposal is not valid). Ok. I'm not sure how to check that yet but I'll look into it. Thanks for all of the help on this. Cheers, Daniel