Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2554576lqo; Mon, 20 May 2024 09:10:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqCYNEEC+m+dFHvRarDVOBl1P1F+D90t+A5jAA317E4aFZOZmHfZkjuUZWFGxvAr6JSToVNJQWDsvP+ooq8rbGYVuG5NCDL69BRN++HA== X-Google-Smtp-Source: AGHT+IGkujpJoSdBlH9a2zlIcPUTSp8fgp35tr/01jdNMYSNIxeiRgypmCDhX7eQD/Tt2DXLN40H X-Received: by 2002:aca:1104:0:b0:3c9:6c1f:64f8 with SMTP id 5614622812f47-3c997067ea1mr29628570b6e.33.1716221453690; Mon, 20 May 2024 09:10:53 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a1e0cc1a2514c-7f8ffec8b17si4570588241.114.2024.05.20.09.10.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 09:10:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=I9MGjIwc; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-183951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 55E261C2103F for ; Mon, 20 May 2024 16:10:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B30FC13848D; Mon, 20 May 2024 16:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="I9MGjIwc" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2051.outbound.protection.outlook.com [40.107.14.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82C3E137C41; Mon, 20 May 2024 16:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716221413; cv=fail; b=H+Ey9KqPayoJeyxKA0//kh1HIFZdgvbBpGz1h0J99uR6nLPezxCwBl8nxfrFomj3rXNLUkFk3XZwie5VW+S47x7RHqNEJMKD3CyrvthWKvgEl3HMUdqNBNubh8ZA4xJs6PPbhc2faASbCkbBJZUkAy7XkMjEYuiraRcTisxrKxE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716221413; c=relaxed/simple; bh=wt57gsZfa3s3Z6Q569TN9f6t8idnkZsgh/XKjwvXUOc=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=dSoXNctt7xIjQRiv0YbuPU1bFlVe60CO99g/wY0IqDeBRGsGbRV21ewxm5hpTj1V6dtANm9D9hxB80Xv2OjHry1RxyBSHofMEXeHZyafzb5anNnnSuAoe7XyJ3560cUj8mqgPFJ/kH3BLysqdh7h+SUJcmY7Xl9Vbde+kQqGerY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=I9MGjIwc; arc=fail smtp.client-ip=40.107.14.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cl0T8agZ6mdXpID/YIGWADeXrCqK4nmOvaOmNuCAJV+hsH+l1DniDlgbMbymHLK18yaKE5F6bumGXmr9FP9KbyxVZgCq27HzXchCxeogjo2eZ7EAshoCI2oTx9teXqs1drA0zPffTTQplOV7BddL76o0C01CT7NVQ3LHOHothM4lWxHe6gFoMXDjoUZQpnJxX5wo11fMIRrriyBhCP05AaRXbJxWUab+ZO+J/bj6/XtjLPPQzzv3pmNVPQ4P4pntlhSiM3Jq0trJO7xT4b3cYJntLUcpaNdq+C+SLYzgtWkBgu4H/Cy0p4vLXHcFULs6xgajIfZZbQjDyiH0jn63qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XLYmqQJGX2KIl9hOQmg5dXxOXeYjkDMz3QvktiBUt2w=; b=HZa8OdH+DQD1LnK15U2IqchPWhuZWsjqQmq/ZPRjKDSsRGMmA6KiVZVmqCJLQ0P9fTtVodob0l+xaObRMamez28GXrjt23Q7882q+xTZ+WAFAFjS6FRR5xCUQ0owX/NCVTH20ZPEoH9RWvTRoJabeuF5OU4Wqexi/QSg9I0Aa2nu8XiiEbKXbvuYj6dpWvyLByQ2QuPKJSQZ72AlBEke26MRj/pWK8vBbxZGYjzRi5FV7Edt3Fp4Ap6ny49dDWX21Tc/UEeUHTnjINyWbd4tfdGXq1eVGFKg7qfS97k0ghABXSkdiUTTJvhASZhp7G+gRogyEJ88Y6qzmJtMai5qRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XLYmqQJGX2KIl9hOQmg5dXxOXeYjkDMz3QvktiBUt2w=; b=I9MGjIwct2P40N2w7D3I1ydMwd5Q6w9bpbkVe6gqnKOJo2zF/r6jbeStsT6JKp+SPrT3xBIrpDhdRz0mC9X00Yct/pY6UCPbsyFdBx0M90PQNzEkUCjq3YxAqzoP0B4cbpdvppsK+C99w7gqd4iutA2KZNa2EaJjDTZwUuOCAkw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB8535.eurprd04.prod.outlook.com (2603:10a6:10:2d6::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.30; Mon, 20 May 2024 16:10:09 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7587.030; Mon, 20 May 2024 16:10:09 +0000 From: Frank Li Date: Mon, 20 May 2024 12:09:14 -0400 Subject: [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240520-gpmi_nand-v2-3-e3017e4c9da5@nxp.com> References: <20240520-gpmi_nand-v2-0-e3017e4c9da5@nxp.com> In-Reply-To: <20240520-gpmi_nand-v2-0-e3017e4c9da5@nxp.com> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Han Xu , Vinod Koul , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Marek Vasut Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1716221390; l=2587; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=wt57gsZfa3s3Z6Q569TN9f6t8idnkZsgh/XKjwvXUOc=; b=QaO43pC66xRkKK1LdzO7pbm2N8V/6TKHLuFFu3WSfXyQjCaJ3stMRIn9Ep0O7p97qkGaH29ph 2L+gBRNIrquCnh4T7mLr/WGVL/AIbkKy5o29qb99Ba/zO8+WUwPf4w8 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0027.namprd04.prod.outlook.com (2603:10b6:a03:217::32) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB8535:EE_ X-MS-Office365-Filtering-Correlation-Id: ba2a5af9-2db6-42a9-6a38-08dc78e7521a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|7416005|1800799015|376005|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MTM4WE9ZamwwVVRRbVBMalpROEo2VjBHd1dndjIvYURwZjc0O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N5+Don7qUqh4S+licYbYg0Cuk+w=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(1800799015)(376005)(52116005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TnEzMzhleDJuSnl0cGdHRHVkSnpUclBnOHZuaXg3ekZubkcyeksrOFMyODVJ?= =?utf-8?B?SWMrcFhNTWNjazBVQXBDaHJ2Nm5tZVBQMi9Cbzh3b092Q0I3WmNTeUpGN0hk?= =?utf-8?B?T0RxOUZOREJGL1RWeDNiVDEzYVpLQldqcHhSYXVCMWIrUkdRVlRRbVFRTzB1?= =?utf-8?B?cWpDOFo3R2pxWTZORkNUYnZhaWlaZUJsQ0c3SHVCNjI2VGY2SGI5Zk5xWHM4?= =?utf-8?B?TXpZdVZpSS9Ddytsd3UyTWRMQ1Z3ckVTc2FveFlEbCtNRmhmQlpOcS9yN3Zh?= =?utf-8?B?dUtBdU8wRU9ObzAxZVFkNThsWlJlUW5GanZzZ3J5ZXZTV3FBWE4rbEFacklN?= =?utf-8?B?NnUxOUd2dS82NGx5a0JnaWcrUmU0cHdRYXU2cUlFNWdOdlZpY3UxNm16OTZt?= =?utf-8?B?UFY1aVgyblJwQk4wRVhCWVdHTjdoelFwT3duWU1VeUN3MGg0WCs3OHJTYVJB?= =?utf-8?B?OFZhRDlzT2RFR05LYjQ1SGJRVXRJa2Z3REFaTDRHeUl0U3N1ZUFVK2dZSWY5?= =?utf-8?B?NGlpcGdUVjJoYzhwbnM5R296T0FucmpiUk93TmtIUG9Oc0dEOUFUMHlBY2FC?= =?utf-8?B?dVdtbzJyNGJrT0FhdlQ0ZHd4ZWdDTkdVakc3YWcvNWtEZ0pSYUttOWhDczRR?= =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2FiZ3ROSGtYdmd6?= =?utf-8?B?VUc5VHEyQVhLYXRvTS9aWFVPVjg1TklPdnFNdUN0aFlPMlMyU2kzaGNrMFIz?= =?utf-8?B?S1VUZXNRK0MxZk84eVBHdms3STZuajRuYzNJVGE4MVp2ZUU0S1RxeHlJZFlr?= =?utf-8?B?MXhQM2JSR2RDS2dJT0RZLy9HRUFCSHJGK3NNRTA0YVFOQ1RLYlI2L2Y3MnFV?= =?utf-8?B?bm5kZEVCTXB1RThOTUVTZmt5bXQvcHJEdVIrNi9wWlBRTkRwU3N4ZUtZMHN4?= =?utf-8?B?MWZWekxSMnV6WC9laXJDUlBBQVZTaDc5VkpBNzh6Y0VCb0Ezc3ZsS0IzRTNh?= =?utf-8?B?YlhhUFhVS3phTW5TdjJqZG14eEJCV1I2QU9jUkVzVTF2L1pzekJMbjBBRCs5?= =?utf-8?B?Q1ZTajJDajgwanFMT0ZQZ2xaS0QrcndoOWV0cVBaRm54V0N4Szh4dDlNZVFl?= =?utf-8?B?dzREZ3c4RTNWUGh4Q2JQcTAwbkMycUhUTWdadlZyb2x5QUJCekFjbENpSkxs?= =?utf-8?B?bytSTXNkRkhwazk2SjZTTU8yVURnclBxTU5BcmNHbEUwRVRyMjkwZjFhTkZ2?= =?utf-8?Q?vZMo=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba2a5af9-2db6-42a9-6a38-08dc78e7521a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 16:10:09.1093 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OtpD7E8dHTEyXzZ81J5T27QPFyf/dJhqpXSaxp+2hjN60zd/2tcKMwOXnFbKmxvyciFPhPRak9y50X5A5ZPd9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8535 Introduce a boolean flag, 'support_edo_timing', within gpmi_devdata to simplify the logic check in gpmi_setup_interface(). This is made in preparation for adding support for imx8qxp gpmi. Signed-off-by: Frank Li --- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 6 +++++- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c index e71ad2fcec232..fbb1f243ef129 100644 --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c @@ -983,7 +983,7 @@ static int gpmi_setup_interface(struct nand_chip *chip, int chipnr, return PTR_ERR(sdr); /* Only MX28/MX6 GPMI controller can reach EDO timings */ - if (sdr->tRC_min <= 25000 && !GPMI_IS_MX28(this) && !GPMI_IS_MX6(this)) + if (sdr->tRC_min <= 25000 && !this->devdata->support_edo_timing) return -ENOTSUPP; /* Stop here if this call was just a check */ @@ -1142,6 +1142,7 @@ static const struct gpmi_devdata gpmi_devdata_imx28 = { .type = IS_MX28, .bch_max_ecc_strength = 20, .max_chain_delay = 16000, + .support_edo_timing = true, .clks = gpmi_clks_for_mx2x, .clks_count = ARRAY_SIZE(gpmi_clks_for_mx2x), }; @@ -1154,6 +1155,7 @@ static const struct gpmi_devdata gpmi_devdata_imx6q = { .type = IS_MX6Q, .bch_max_ecc_strength = 40, .max_chain_delay = 12000, + .support_edo_timing = true, .clks = gpmi_clks_for_mx6, .clks_count = ARRAY_SIZE(gpmi_clks_for_mx6), }; @@ -1162,6 +1164,7 @@ static const struct gpmi_devdata gpmi_devdata_imx6sx = { .type = IS_MX6SX, .bch_max_ecc_strength = 62, .max_chain_delay = 12000, + .support_edo_timing = true, .clks = gpmi_clks_for_mx6, .clks_count = ARRAY_SIZE(gpmi_clks_for_mx6), }; @@ -1174,6 +1177,7 @@ static const struct gpmi_devdata gpmi_devdata_imx7d = { .type = IS_MX7D, .bch_max_ecc_strength = 62, .max_chain_delay = 12000, + .support_edo_timing = true, .clks = gpmi_clks_for_mx7d, .clks_count = ARRAY_SIZE(gpmi_clks_for_mx7d), }; diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h index c3ff56ac62a7e..c8a662a497b60 100644 --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h @@ -86,6 +86,7 @@ struct gpmi_devdata { int max_chain_delay; /* See the SDR EDO mode */ const char * const *clks; const int clks_count; + bool support_edo_timing; }; /** -- 2.34.1