Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2687758rwl; Mon, 27 Mar 2023 04:02:39 -0700 (PDT) X-Google-Smtp-Source: AKy350brJ3Eo0/SN2fS9j4sUlaChgClvYrQZ4arwfw3i0YbeXsB2Ys1BxvhOGvyjZc7sOUY47XNp X-Received: by 2002:aa7:c609:0:b0:4aa:a280:55b5 with SMTP id h9-20020aa7c609000000b004aaa28055b5mr11084709edq.20.1679914959070; Mon, 27 Mar 2023 04:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914959; cv=none; d=google.com; s=arc-20160816; b=XnDZPeAYhsA8+GgnkoSNwP441C4UGZrQtA2QKhIscWbPgV5JlZwwFrRuFEz3wTYO8K 4JSgzbAwrqSgBNkngh+/kDLVmwUGSe5GYl0baOrUYOFvZwiA4HBDxaUqWjTjBjm8+0Mj rHqfzc2dGe9bmVGLu+tjEZJ334ue/uFY1THAX6poP3NOKn82qBiJcbUVv8CkcK6uYi2a QNw7K5skIke6dPvLQcYL8V4rCW9eud5nv2t85C3alOunuy+sKgCpDFIMI8vjGwpKtijm WHCugnf7iTgwxZqMPoevm/N+GUI67dQ+/tm67Ux5VjBN+T334Uq0TlRaQWXSxFvctuqz MQeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=mq3au7tx9bpvb0kny92KW5V+FEUINAGvXJjvAKrCa6I=; b=SbaCOigE4hyITWYvU/O3hKMMA3+zIs4MRz0GRASEQ3vtqxryZvBWKme7jMK0fpdVv6 YheXudcseJ6q/o02yGkDWSLQXG8+ulfImqAMS8/uQ/QqjOFp2DUo9WSx1TBjZ844HNWu 2Os4RpspAXMWNzVJ7tyRJV6+Yit0kFG75+6wiY8C0DnhJnxc+pS4GbY/1AljxuzY/Hmu 2pkIE99zSr8Rd7gp1OCXx1MT2M7enKZFTrTrQv31OBIwZ09nZVFI/7AXrnDBWk9tOych o1zs4wai1cU1FybkKLIaXSfEewb+sHpAKMgKwCQK/K1FrWd96yrhOWRyMW8d9noPjJPC hG5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pTSYk9fl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7d807000000b00501d4810b84si18121441edq.376.2023.03.27.04.02.06; Mon, 27 Mar 2023 04:02:39 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pTSYk9fl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbjC0KnZ (ORCPT + 99 others); Mon, 27 Mar 2023 06:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233665AbjC0KnW (ORCPT ); Mon, 27 Mar 2023 06:43:22 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E76D3AB0 for ; Mon, 27 Mar 2023 03:43:16 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E91B5E0009; Mon, 27 Mar 2023 10:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1679913795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mq3au7tx9bpvb0kny92KW5V+FEUINAGvXJjvAKrCa6I=; b=pTSYk9flkxtggRnAAMuEA+CmCNzdRs8EdTgeg4n2cRjlHnYujmuFf0cMFpysnMlfKNL/5P CJTVUYuxQyDbwPy/FZoZy1cHHy2vGBtlnQ4ziqRpfiNIoXFBsQLtKLSMPozE9xyd93sI9e KV1UXAlY8RBj4pM4+emy03nOjnikD30pWAegnE87XXhROq1SxdBHVyQ2hf1ov9wixB7Wuf pi/7hcEBFGDY7f9yDlLLTAKOwTRouaPoE8wUY51e3fKAqSS+Kev97yy5gTVlxrKeUfWoT3 2N2N5wjc3tLFMO2lbt7pW1Eq4Yhh+i/Rjurr7WLZ2tjw1h73hKJfK+hSYEUUwA== Date: Mon, 27 Mar 2023 12:43:13 +0200 From: Miquel Raynal To: Tudor Ambarus Cc: Christophe Kerello , richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v2 2/2] mtd: rawnand: stm32_fmc2: use timings.mode instead of checking tRC_min Message-ID: <20230327124313.1ccd3d66@xps-13> In-Reply-To: <75dcd205-5432-7103-370c-d65d792631ea@linaro.org> References: <20230327094742.38856-1-christophe.kerello@foss.st.com> <20230327094742.38856-3-christophe.kerello@foss.st.com> <75dcd205-5432-7103-370c-d65d792631ea@linaro.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 Hi Tudor, tudor.ambarus@linaro.org wrote on Mon, 27 Mar 2023 11:30:51 +0100: > On 3/27/23 10:47, Christophe Kerello wrote: > > This patch is using timings.mode value instead of checking tRC_min timi= ng > > for EDO mode support. > > =20 >=20 > Fixes and Cc to stable here too, as you'd like to have this backported > as well, don't you? Actually the reason why Christophe split this into two patches is because timings.mode was introduced rather lately, he wanted the same patch to apply on all stable kernels, he actually asked for that split and I agreed (another solution would have been to send this current patch to Linus and have the other version sent to stable, but it requires a bit of scheduling on both ends). Link: https://lore.kernel.org/linux-mtd/20230327101156.0ec2816a@xps-13/T/#t >=20 > > Signed-off-by: Christophe Kerello =20 >=20 > Reviewed-by: Tudor Ambarus >=20 > > --- > > drivers/mtd/nand/raw/stm32_fmc2_nand.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/= raw/stm32_fmc2_nand.c > > index 3abb63d00a0b..9e74bcd90aaa 100644 > > --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c > > +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c > > @@ -1531,7 +1531,7 @@ static int stm32_fmc2_nfc_setup_interface(struct = nand_chip *chip, int chipnr, > > if (IS_ERR(sdrt)) > > return PTR_ERR(sdrt); > > =20 > > - if (sdrt->tRC_min < 30000) > > + if (conf->timings.mode > 3) > > return -EOPNOTSUPP; > > =20 > > if (chipnr =3D=3D NAND_DATA_IFACE_CHECK_ONLY) =20 Thanks, Miqu=C3=A8l