Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp197424lqo; Thu, 16 May 2024 03:49:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUi+K7zaoTOk/j9lKbkKBEvEe9kIgx7cY9opv9hF+L5usX214scqIKcmY6foLsx5lTVvNAMRhXNMzSBszXFSX4HRF7YqFh3Ej5G879YFQ== X-Google-Smtp-Source: AGHT+IG3bZuykPbpSpKsxNgaV7MspEt6jlYKcuB2pXfT+pTxcccbmqTpBYVE2RidSazkKhOcaP97 X-Received: by 2002:a05:6871:207:b0:229:6841:3278 with SMTP id 586e51a60fabf-241730e593bmr21644866fac.59.1715856540049; Thu, 16 May 2024 03:49:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715856540; cv=pass; d=google.com; s=arc-20160816; b=NzsEAGXi2MrAIFDzrxPBEjvOydzzxS+QM9zD0WMSubO91e4QxsFveE0EOjx+OyrW5N 0X/A7wTMBgBqZG/eAXFptgB90ZOgVApzwt8Dh9iTciElAXsAzGM4v9JC75VgEiYbSvHd ehVxY0j1Zv6em84cRlbwdLJQde1o6vdPr8a2QcFazhvb8VtDnuUE4+0XhUMODJ+SzpvC JJuDdujrAioIqQ4FiAAPzy4Nl77/JFLbC4W4ulKIeimPTmvFAzRLrvGiqM5bSYLsOz4U BY62ULYoO4v8zejXJfgSyLY1oN92c1USbyjgCN1PcTi31vhOMbIENNyWUCU2d+tIMdVM 4+kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=ZZxMRCr3U247a7pzMzNRUdfjSJgipOrsTt2uVfBhf68=; fh=RsD2Wu/PkL4LmNZy/9z1j6mcj+O7Tm7PbiyQTKBxpww=; b=U9M6BASCSExpkUb+oIz6D+2wOwu0iIIJyZR/JfzzKEXyuhsdeobKhL5LQvUeDPcCrH /MiSEjPvQduP4mmIQEz+TLkWnwQY4OcQXtetZXbKkvNAoCNt3ApzsFuoHJLvTrFTJ1bB yZEh6auqERLZn7hKkoR1j7frDd8S0GFX0Cg0dIl7SoZbo2TUSF9gEosXvvXB7Ysj5zyM 5yPEtr+kuqDIPBe0MfI5Flb5M6g+cwPKOaom/gvffMZDmcvkJp/kvDFXIO3PzXvP/1P4 TiUXDKrMts9dJjch3ga6iE8uNlOrl7jobOsGV3EHnpoz74yMviuktzrPaholhDDBy0gZ pLVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hTqTdi7Q; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-180916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180916-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e822e4si15246581a12.122.2024.05.16.03.48.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 03:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hTqTdi7Q; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-180916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180916-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 476DDB23799 for ; Thu, 16 May 2024 10:44:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08437145347; Thu, 16 May 2024 10:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hTqTdi7Q" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 52A7A143887 for ; Thu, 16 May 2024 10:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715856253; cv=none; b=i0CsB3uugfT4qntIWTvJ+RdfVng/AN79UX3LorU4LR24JLVhN5t8mhEcYnqWpcyex2f1MaUwJL6kNChMEjy2Nl0yuCJuaNU//Om9y2n9yrme624hjDD/ed+ytHbNft2BcUX7Crkiw5JBBGw3lXXzLlXgUSVJBYzFkqwpmUgwFyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715856253; c=relaxed/simple; bh=g/yESgsrRvAbvwdU/jMz8g/5rzF9A1K3upemEo28IrM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K+j2eYTy7eXQVrzgZ0gaqWKIF+hpW4LYMxbWl95bop/7Q724X1r8cqQin71xc1NJy1tqOrZ/RBt9n9Facms8JKeyiaOv41AmykrUFJVR6kma2OB4MR9/VNk/FJ7nRV1hueX6OzOmjEf29dNux7up1LpvkSW1O+oL3gZYOHbmZg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=hTqTdi7Q; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C21BA2000C; Thu, 16 May 2024 10:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715856247; 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=ZZxMRCr3U247a7pzMzNRUdfjSJgipOrsTt2uVfBhf68=; b=hTqTdi7QxnvGDshjF8nWfXQNLwDQmsGSL1oITzxcohjcutOMjL9tOqCc8LbCkoI77zLpRW TH3MqQ1siOOJ42oiSxkjZPINO9M4WcKIdXjlFBalLKIm96+7Nh170n17WJiBaNXq/u9AMv ilPCD9YqK5KWOioBu9eHkJhrQslVSvlslx0eUB7nXeYN/2vYOUrboTpbwvq/quIQOCfp5n geB9kozgnFUIhGejHyquYAGoOvJRpcUYe0d7fOr7szFMjX87Qtn6yXO7amIiCq7L808xlM ne3Gx10WLUWcdVH1n+O+lf/+8OE/NE2qrZb210fBO6wNV2L1YbzAR85AHxONRQ== Date: Thu, 16 May 2024 12:44:05 +0200 From: Miquel Raynal To: Sascha Hauer Cc: Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] mtd: nand: mxc_nand: implement exec_op Message-ID: <20240516124405.2da1aa23@xps-13> In-Reply-To: References: <20240514-mtd-nand-mxc-nand-exec-op-v3-0-3e6f45fd3d82@pengutronix.de> <20240514-mtd-nand-mxc-nand-exec-op-v3-2-3e6f45fd3d82@pengutronix.de> <20240516103214.57a8ce33@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Sascha, s.hauer@pengutronix.de wrote on Thu, 16 May 2024 12:25:43 +0200: > On Thu, May 16, 2024 at 10:32:14AM +0200, Miquel Raynal wrote: > > Hi Sascha, > > =20 > > > +static const struct nand_op_parser mxcnd_op_parser =3D NAND_OP_PARSE= R( > > > + NAND_OP_PARSER_PATTERN(mxcnd_do_exec_op, > > > + NAND_OP_PARSER_PAT_CMD_ELEM(false), > > > + NAND_OP_PARSER_PAT_ADDR_ELEM(true, 7), > > > + NAND_OP_PARSER_PAT_CMD_ELEM(true), > > > + NAND_OP_PARSER_PAT_WAITRDY_ELEM(true), > > > + NAND_OP_PARSER_PAT_DATA_IN_ELEM(true, MAX_DATA_SIZE)), =20 > >=20 > > CMD, ADDR, CMD, DATA is the RNDOUT pattern. So it is now working fine? = =20 >=20 > Yes, RNDOUT is working now. Excellent! > > Or did you forget to adapt the patterns to your use case? =20 >=20 > Although it looks like the patterns from the pl35x-nand-controller.c, > there is one slight difference. The 'false' in the NAND_OP_PARSER_PAT_CMD= _ELEM > above has the effect that a plain NAND_OP_PARSER_PAT_DATA_IN_ELEM is > disallowed. I'm not sure I follow, the above pattern means: a single command cycle is supported, no? Miqu=C3=A8l