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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89961C43334 for ; Fri, 8 Jul 2022 16:39:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2AAC4845B5; Fri, 8 Jul 2022 18:39:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="laSkMcdy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DA4B845B8; Fri, 8 Jul 2022 18:39:15 +0200 (CEST) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E38E2845B5 for ; Fri, 8 Jul 2022 18:39:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id e7so2630906qts.1 for ; Fri, 08 Jul 2022 09:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CVIQgmkxxHBr1PshOojiALFLJ8KIgCT1IGbAzEKj/QE=; b=laSkMcdyrQG/++vXgiseF7ug1jhFansZfeuI5UsxCr87qT46uqYqnmWOLh+EPnnBfz hD50CF4aeIvqizRCH8l/Hxr1lKspBLB48+gzi0KfrQQg4On0L7ikEDdzJa/5krN8OJP8 nk24XbY6m9C5EBQKoXgjgFgHa4pRMfAt/5tpk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CVIQgmkxxHBr1PshOojiALFLJ8KIgCT1IGbAzEKj/QE=; b=DL2Zin8Xyh2gPEvDat3jKIRmzpJCNL+16gHXBADL2jTCNvGwXKA1JTpeeTbCIbsIBm sxHo0n6n0Ce01C7ADDbuazvyx82GMD+cIJR31nH70jqIQZOiud4m6kSnhA/0c53BwX+b CH3VrmCcsTYzF5KmO/BzsR2UtugZEQKAKFaJT8w+81phlhSY1e8DEXYCdUCzsSkbFOHU NcCJon44t7rpgEpzbFKIeUKpYVnrRTwCWTxmJ29XuD6sN9BqQqdcjmN+Pu6q2yKuoIH/ dcbKD9HNbI5rVJIvXgkU26frfLwqURQ+jh6iJcXFCV4ZyD/gFQl8OsvUOcJXPdPht/7U eofQ== X-Gm-Message-State: AJIora8b1XKGGPY7wP3jlSBSVV43j4f/I+PaiFwaoEV7N+yArUR+N4E+ 5H4p2REHbzNThh3FebnONm6LDQ== X-Google-Smtp-Source: AGRyM1vFyMhLBf0wvZfhviM5XMURWQwJaJhUPK++k73RuHxaeKQzJjqWaoe4u9gL9uVWi35EbvxbsA== X-Received: by 2002:ac8:584b:0:b0:31b:efad:e020 with SMTP id h11-20020ac8584b000000b0031befade020mr3758659qth.425.1657298351726; Fri, 08 Jul 2022 09:39:11 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id g10-20020a05620a40ca00b006a758ce2ae1sm24676267qko.104.2022.07.08.09.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 09:39:11 -0700 (PDT) Date: Fri, 8 Jul 2022 12:39:08 -0400 From: Tom Rini To: kory.maincent@bootlin.com Cc: u-boot@lists.denx.de, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, Patrice Chotard , Wolfgang Denk , Pali =?iso-8859-1?Q?Roh=E1r?= , Simon Glass , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v2] mtd: rawnand: Add support to dedicated function to set timings Message-ID: <20220708163908.GI1146598@bill-the-cat> References: <20220622091145.1207923-1-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fT8JEHqKb01UeMVZ" Content-Disposition: inline In-Reply-To: <20220622091145.1207923-1-kory.maincent@bootlin.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --fT8JEHqKb01UeMVZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 22, 2022 at 11:11:45AM +0200, kory.maincent@bootlin.com wrote: > From: Kory Maincent >=20 > With the current code if the board has an ONFI compliant NAND without > support to the get and set features, U-boot returns an ENOTSUP error when > trying to tune the timings which prevents the probe of the device. > Indeed onfi_set_features() return ENOTSUP error if set/get features is not > supported. In the case of timings we should not return ENOTSUP because we > can use the default timings. The NAND is already capable of listening at > its highest supported rate, so we assume in this case that it is fine to > skip the operation. >=20 > Fix it by adding an intermediate nand_onfi_set_timings() function which > does not error out if set/get feature is not supported. >=20 > Signed-off-by: Kory Maincent > Reviewed-by: Miquel Raynal Applied to u-boot/next, thanks! --=20 Tom --fT8JEHqKb01UeMVZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLIXawACgkQFHw5/5Y0 tyy52Qv9HnwEGkl8ttcRHbaWwxraPSfh51RBQRieqV01g9Vc3ss8fsXeC3HxmihE XLR4cixGTucGk5e9M2oWzO41edLlvtBGoEfE0irDNCrb3lYZv8cJwmhhgML1XjkU eRnbGeDLjnEyIpB0BAEhP/Ldw3kM22C+yTwn35S0S4zNwGPHfd643TCUqi3XfI5U dyfrZEGmqNATkkcC+MHQy+qCNJxh+OAIp7QGOc6aNOz9qZpkJlmiVV/flQQCseul HLwu/AzM7S8kNFLyZ8SxfOEwcLkHLB8jNjnNYCuVc66fijeZW43khA7QXCN1vSy2 HPGURUfRtDhboCEnldfGLlCY1p3zBPbZ0syC8m8za6n6HExSuNVgH3f9kDeM877i n72fEWdqBsBeO/N2z/7xrxiJdiId0G+O05ON9j6Ee5OwtpXbd/AltPaQfCOZr5ya QMuctn7yrPosEdIIpNewiGCupQrtyd/pofYnwQZbxoXnVhtCcojnWGSKiEUPQeKu MlJPB21P =SUlI -----END PGP SIGNATURE----- --fT8JEHqKb01UeMVZ--