Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp143052lqo; Thu, 16 May 2024 01:41:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUh2az8cr+u98/1tFDiIZ+mLodRafx9dkod+gbfiqhNxWcwpNB5Ay6nF+a8LcPiP7sSDtV/ERC7vCcTI4uLUn3UCm4UD4CSYLXwtR8X6g== X-Google-Smtp-Source: AGHT+IHU2z8EedmCoD8l9j3JuwOkHoIQP+nv/zsRz1vX1sdMv9Z7oTQ1/pIgKnrsz7cPrVvzj2Yq X-Received: by 2002:a17:90a:ac06:b0:2b6:ab87:4f80 with SMTP id 98e67ed59e1d1-2b6ccd9ec37mr17025201a91.48.1715848882734; Thu, 16 May 2024 01:41:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715848882; cv=pass; d=google.com; s=arc-20160816; b=wQNaD2k9e9ENlHy9+FG79ee2yLwnw3/y6J4vWzqBQuvFZilher6RlwuIfUcE0olZ0y DU6AuYnSS0zfVAiqEG4ZaCPuStuw+mAzBAwJ5Y5LjR0pgcL8fAXNxBC9LW+HtRt8KHi5 gpRBYg2sOTlGi+WA17UnLm4HwwiqXDdvfk3oW90myLG7lE7XhcUAosGFJMNrJ9ZV65aa IVyug+xk+TU76Zv9GapnO0KIqXEh2pDHqumK2XBX+z1g586SGG8f2Axt05/7juzJDyYh 3e1omNfbXNCK6ClqjQ4+PLNpnzTtZNXLO9dUH896qgg6cbpq9QXf8RN5WrveWVDOgnOB bRSw== 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=2CeoEgDzrf8v+3ybZyI2qi/yVTnST3l7VSUfdHfTW0U=; fh=RsD2Wu/PkL4LmNZy/9z1j6mcj+O7Tm7PbiyQTKBxpww=; b=s9JOqkQ4Z0tqtbRzsmqRNzVptctL1lGBNM2U7GV25j1NmVco0RnRJE6XV8tyELIC75 JLn3F3DunI+aw7bP8CKKm3+yGg4E7o2Eza09n9eSa7ulp+c7JrazRGVoqFy8I82HmP2J yF84zh6dIhOgXY2PRpj6Cy2f8Y/2OjXT0Eqd5f8giR0PUBZic+DRwMGIDfFxEWVPc5bO 0rikgxICeeSWjfYAylfY0b4mZFVMdmHO91mjrM9h9gon+sXNZ871kgKYzPJ4W57+PiAs gOzLaBhDnabilfoqq/HhIpPjhd5mdXx5oQ0MJwks0ddc1ebATcGo0gJv7TYvy09tMmMI d2dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NX2Z0NGa; 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-180771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628868b9dsi16856072a91.14.2024.05.16.01.41.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NX2Z0NGa; 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-180771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180771-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 888C5285B92 for ; Thu, 16 May 2024 08:32:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29BAA13D890; Thu, 16 May 2024 08:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NX2Z0NGa" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 1A6E613E419 for ; Thu, 16 May 2024 08:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848339; cv=none; b=KT1r6M5f4CnEdQh5Dh5RMu7PfK0567MZObJ72SRUMBHUXpP7RJOo7gFkLsXjVoFJQ6Ccl3o/3Ygo2uVpYH5vSMX46gX3TwhMagifo5Cw3ImJKl02AcBhBdgCgSkLD0tQ0nDqAeklU2jwvGQ8PDi80aWvTxa8wP1+1ULdA4+IlRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848339; c=relaxed/simple; bh=N3F4LANa81kWz5jS+zElqxrFqvp6HyHFZXEGk+FZp2k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pgrUPK6BP68Ak1I2chP1DBMzKxc6F41zhXB1oF54EcIbdqxO1Qt/ch7eovaT841fMUIt07faXf/xF8oA9KZxzCzKl65YBCB5WhUAMRtVJtpH4OTdKnAcQ+Ckxp2kLXqqXxQK/dv/XIG/ptqGg7DjroIdAUXlofh2g9ziFIUord0= 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=NX2Z0NGa; arc=none smtp.client-ip=217.70.183.197 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 2F9C91C0003; Thu, 16 May 2024 08:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715848335; 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=2CeoEgDzrf8v+3ybZyI2qi/yVTnST3l7VSUfdHfTW0U=; b=NX2Z0NGaTiPVsDW8QZg3U7UpGgybZS0a7rLSrTVJbWrixdTFRo1Z51MHIfFLR7xifbA1ZM uQ5IQ5EZEIQJnjdRqczPADjFh5GZ8ocjCtWWOudPzbu95pScuUUeHgRzieTBLr6uCG/fKd 3lmEWBeNtFh1wk9wHKi8BrMuEXl2QlU5HGH63cOTHP8vg8B6I1nNUuDuJz43cIswb0wUFW G0reP4DCvEn50JudYxHMRJCWAi30IytD/Hra4yEJbm6l7/FqTRvJ/BfUHOL/0Pl+mmPvFd FlMNlT6Di3t5Bm30k4ENKooN75eBxxHlrQZUnwDidyjtqMDNAV+89MCZwZJpJQ== Date: Thu, 16 May 2024 10:32:14 +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: <20240516103214.57a8ce33@xps-13> In-Reply-To: <20240514-mtd-nand-mxc-nand-exec-op-v3-2-3e6f45fd3d82@pengutronix.de> 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> 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, > +static const struct nand_op_parser mxcnd_op_parser =3D NAND_OP_PARSER( > + 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)), CMD, ADDR, CMD, DATA is the RNDOUT pattern. So it is now working fine? Or did you forget to adapt the patterns to your use case? Thanks, Miqu=C3=A8l