Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3505690pxb; Mon, 4 Apr 2022 19:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrrbyredVsrmQ9S4GSGyrTEUtAAfqaoUds0UmzuRpgTorsKP04/aqv7uoxPmd9VK09x1Iu X-Received: by 2002:a05:6a00:10c8:b0:4fa:81cc:c86e with SMTP id d8-20020a056a0010c800b004fa81ccc86emr1049375pfu.23.1649124555512; Mon, 04 Apr 2022 19:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649124555; cv=none; d=google.com; s=arc-20160816; b=SaHVIVJZiw/KPBHihC64KcF82flCHfS/ebayY+lvwF68eIfQgsZ+/Vj9UcZ1+xXt0B 89PXAY0B/4F0xZRGus37A57k4l9aDTxVQpsk5ypXzU6Xy51QCsBbBPfDvjfvdhdD+wBb rd+YFz94qnNR+E4nOvtKrhmyJnxrlkKbdZmr2isTR/GqJdpMfyUlxrceZkIrhU5dYxwf 1WVSnFc78jVglispFH4zj/uYNciTu7rty4KvrbrbubZC0pSOlJ4WHGnIPOZ+uEM/5ZHr l9TwUqxa5eQA8fu6JqVAgPYPKJKSQ6BzS75Pem+k+lpw6OGjjZERgr2gRWJnRmByWf7R aCzA== 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=UnaFhwCYQRKWSH+CeXac4WqG9Xl8JMA4f5GGyBthARA=; b=kzu07t2hOwRijpD5fd3StyeJWlAL4WbjLkOs4P/XgNV5QKMh03ATePTq12W8mRQqky deJmoFac8M1aRRIiA0zfrXMpuq14XEaeT/pEouzdby78GDFZpzyn7+rwhr4AQdPHmQhr 44yta4V5obluKNOl/Jj8t/6ezhcSwSnt/FiolBRTqg5CDUhP2Ow/e9mglgBXoAmgKSjf V3KVfc4Hsu3sg1rBZee+TYxthFSHznRaLbhntyHSpGy5lGjvWDw+8G218UGRFzYxgGx7 wM2xbSeA1WpTgYxO3TaaIRm0eOU2cUO/U8/PXIeIeqSJWWenl6JxKxqAbiBoSmowntIW 7jXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OM0XkGIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id qe11-20020a17090b4f8b00b001c685a30dddsi965886pjb.33.2022.04.04.19.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OM0XkGIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9EC562405AD; Mon, 4 Apr 2022 17:31:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353361AbiDDJUI (ORCPT + 99 others); Mon, 4 Apr 2022 05:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbiDDJUG (ORCPT ); Mon, 4 Apr 2022 05:20:06 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D40163B3D4; Mon, 4 Apr 2022 02:18:10 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id k25so10437532iok.8; Mon, 04 Apr 2022 02:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UnaFhwCYQRKWSH+CeXac4WqG9Xl8JMA4f5GGyBthARA=; b=OM0XkGIma7ffY2S1PmsiiXE0UWKkPQn0DhxmwB2NRmkgKaS2XttPCAefGJvp2SBMHr YCoCGmQ8DUMxaZqFE1R/3bjLIokY0sgVIPjAlx2bi3ZUqZNzsi3mVRPqlsza78d6zowO s3YiXPP0cTu/ZbVFgnF/vuEuVyOx35G46rmKOKqA7aHYaEg7rdgJKD+yDCukc6UYNn6m 8P6fmXonD5Wb1bP/RZ42tvytZiRetlCfu1275s0rzuB3FQvzMyyG10aFgCvi0O5/p4zh R22LXf8qpGTNzR8i3lOD9+y9eCuE9g3vITwNNePGgInZ3yeda+62vtd9paQl9sOxltAM vmmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UnaFhwCYQRKWSH+CeXac4WqG9Xl8JMA4f5GGyBthARA=; b=esjHaJf9s+4EYUc22TSO7xd1cUwDpYGf0VKmxOf250dSjcp8UhsbIWZYFvvFO+0Ryx v2a180WTr7xLpQlqSrN/fDxxmbNIuzsMbtpcmTtwoD3gCvq66TChiDSyRbwEwS7C9SOo GocHmd+nsL66ASWBgfkxzSz1+M6z88PL53JoZJHBJL+LFrrfO3/WrXjqjrBn8r36RFwA aqF02GOYvAuHElTgdEsO/sxjONmdXAZkkIyFFkqkLPa4xijy+BvO3cpP+6ODOSx4/KFX +QUpC67hGbTyWo+hs0Cg07M4GDfCXFCuazFObeWxjnsJeCBGMVCTvnM1WFmoN5Hcr01j 8Quw== X-Gm-Message-State: AOAM5317cowa+nybl5hkNZ8MImP0Xpcl4gEM6/gMMbyIxORh+mg7ULAX S5gmUVmTlATrxShknflmMMoklH6k9rj+uXDxqGV4XANrNAKlt9blDNoUUQ== X-Received: by 2002:a05:6638:438e:b0:323:8ec2:e177 with SMTP id bo14-20020a056638438e00b003238ec2e177mr11404567jab.164.1649063890353; Mon, 04 Apr 2022 02:18:10 -0700 (PDT) MIME-Version: 1.0 References: <20220404040153.1509966-1-gch981213@gmail.com> <20220404040153.1509966-3-gch981213@gmail.com> <20220404095937.20089db7@xps13> In-Reply-To: From: Chuanhong Guo Date: Mon, 4 Apr 2022 17:17:59 +0800 Message-ID: Subject: Re: [PATCH v2 2/5] spi: add driver for MTK SPI NAND Flash Interface To: Miquel Raynal Cc: linux-spi@vger.kernel.org, Mark Brown , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Richard Weinberger , Vignesh Raghavendra , Roger Quadros , Thomas Bogendoerfer , Cai Huoqing , Florian Fainelli , Colin Ian King , Wolfram Sang , Paul Cercueil , Pratyush Yadav , Yu Kuai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , open list , "open list:NAND FLASH SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi! On Mon, Apr 4, 2022 at 5:13 PM Chuanhong Guo wrote: > [...] > I can implement the following: > 1. select the minimum capability exceeding ecc.user_conf > 2. If that doesn't exist, use the calculated one and warn > if it doesn't meet ecc.requirements I mean If there is no ecc.user_conf in the 2nd case :) > Is this OK? -- Regards, Chuanhong Guo