Message ID | 20230328155819.225521-2-christophe.kerello@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2335807vqo; Tue, 28 Mar 2023 09:11:37 -0700 (PDT) X-Google-Smtp-Source: AK7set/w5GdUBGFCOq8sgMP8USH/7fioGgEzgWGQacHmhZd0dRxFl7rXfaCoWyM7T7qRPFhz5voN X-Received: by 2002:a17:906:24cb:b0:930:8590:95ef with SMTP id f11-20020a17090624cb00b00930859095efmr23137611ejb.18.1680019897469; Tue, 28 Mar 2023 09:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680019897; cv=none; d=google.com; s=arc-20160816; b=KZqLSmQf9gm4sRbOcbGZmXvcM9JrPO+HBWfw2Z58yX1yusI2Je+5ifmbi0ytTcK4HV 86vPrUzE7ygMqY0QF/e5MLvhw3HdFz1OgGYTMVC7n3r6hh7ml+K2WjkapxOaSJ8Tn+0B 6XpNh78U5oND7cKaGjUoM6WH+JkT/dRPbw3jTSVCdsypv/osJQDxHz9HN+i4ReS5wrkv rjX6QGaxRI3jcX3YOP0qZWsCoDJ2COKm5jWWK2rAe29B/Y5c7Fao0D6TfvlZ4kzOXMDZ XAQPWOBXPuAUResykS39hQOXyxVEJAWkzRlJiYNvZPL/k5Bp8wcNQNjQynwEKjQBrgxI q/Nw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wDfCr8jZN5vYHHtxsuLgPYHvtTc0ZO3/74yowxhODeU=; b=SuowhMS7A3GXJdIp6m4LZNtNizZf7EHLGC03qgjNbNcmhq/tk4wGlj7v99zzGpuQ3B 1iwNZkWofCGiD7W7md/oGzlf8toQCMGK9uibpQ90CRnZgMy/BYx9yMQslBZJq3pzrj6e DicYB912kCseDJKAZ+LiMKmWwGI6C8MxE7cBGU3UcYjzqxHr6Ne1NTDMcbJBIHOqkuzF S4BzatF7/kljhZ9JwreoILTYSo5Ei8ekkk6eLaEL97clKjWZjpuIQ/24FY4cxfQK9IAJ zipk0cI3yPmnwU4DJCEsdlVgxsrxHLOnycoGZaoDlOJ6ATGFhayClUSZDW0lxEfDN3Gt 69zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="Wch/hwM6"; 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=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020aa7d353000000b00502038c2d09si16933147edr.596.2023.03.28.09.11.13; Tue, 28 Mar 2023 09:11:37 -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=@foss.st.com header.s=selector1 header.b="Wch/hwM6"; 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=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233262AbjC1QA5 (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Tue, 28 Mar 2023 12:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbjC1QAw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 12:00:52 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27FCC187; Tue, 28 Mar 2023 09:00:51 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE6LiH000459; Tue, 28 Mar 2023 18:00:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=wDfCr8jZN5vYHHtxsuLgPYHvtTc0ZO3/74yowxhODeU=; b=Wch/hwM6uhAzfdjul7RTJ1Ii86NXz5JMLZ8bFjAH4ymbshCLTYyYHWvhpgW6DpMXmJwh IfSqNCnQ0Q20rvgDXw/eDeyxjX/NEk28HGoy2YZ0Nh3FEvt3DGVnFXD/1/KWuj1KhW+7 0KoABevOb2jMzeoFFa6Tmy6XYFR9mrTSGobRHM90wzpBTwYouko7MLJvjtURcaI17abH JyEjiQ6fGBzB2T50JauNQE9ardLV3sg+cgWFmwo/XNI9+Njsb4J6hOYLXYLTV8OKpKqW EiK2+JlkdXdDQ5MqS7GITFL5G0BCVw227dzzkV7i9VrAiV034HyyuZCAbF/G0pRKJT0X UA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3pkvs4u1xa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 18:00:37 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4A61C10002A; Tue, 28 Mar 2023 18:00:37 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 43F1F21A20D; Tue, 28 Mar 2023 18:00:37 +0200 (CEST) Received: from localhost (10.48.0.175) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 18:00:36 +0200 From: Christophe Kerello <christophe.kerello@foss.st.com> To: <miquel.raynal@bootlin.com>, <richard@nod.at>, <vigneshr@ti.com> CC: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, Christophe Kerello <christophe.kerello@foss.st.com>, <stable@vger.kernel.org>, Tudor Ambarus <tudor.ambarus@linaro.org> Subject: [PATCH v3 1/2] mtd: rawnand: stm32_fmc2: remove unsupported EDO mode Date: Tue, 28 Mar 2023 17:58:18 +0200 Message-ID: <20230328155819.225521-2-christophe.kerello@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328155819.225521-1-christophe.kerello@foss.st.com> References: <20230328155819.225521-1-christophe.kerello@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.48.0.175] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761628544172228682?= X-GMAIL-MSGID: =?utf-8?q?1761628544172228682?= |
Series |
mtd: rawnand: stm32_fmc2: do not support EDO mode
|
|
Commit Message
Christophe Kerello
March 28, 2023, 3:58 p.m. UTC
Remove the EDO mode support from as the FMC2 controller does not support the feature. Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com> Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver") Cc: stable@vger.kernel.org #v5.4+ Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> --- Changes in v3: - The commit message has been reworked - Cc to stable added - Tudor Reviewed-by added drivers/mtd/nand/raw/stm32_fmc2_nand.c | 3 +++ 1 file changed, 3 insertions(+)
Comments
On Tue, 2023-03-28 at 15:58:18 UTC, Christophe Kerello wrote: > Remove the EDO mode support from as the FMC2 controller does not > support the feature. > > Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com> > Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver") > Cc: stable@vger.kernel.org #v5.4+ > Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks. Miquel
diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index 5d627048c420..3abb63d00a0b 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -1531,6 +1531,9 @@ static int stm32_fmc2_nfc_setup_interface(struct nand_chip *chip, int chipnr, if (IS_ERR(sdrt)) return PTR_ERR(sdrt); + if (sdrt->tRC_min < 30000) + return -EOPNOTSUPP; + if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) return 0;