Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp226200lqo; Thu, 16 May 2024 04:48:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyWQp4o5uMCMv0x1uX3nsH1imSmewnpk4YmQyKiYuL3lq7g90BFYkDBTE40QMGoBipgicTGdCTX7wo8zTKzp2o4tgd9Je0t04CTiElfA== X-Google-Smtp-Source: AGHT+IFgRTfckYuedZC9ep1FSObrYbo1elcNGFI/X0QnxpWJ4zZumrup1foE0oQdUeitC2Op1nZ1 X-Received: by 2002:a17:90b:3a83:b0:2b9:de4c:f24 with SMTP id 98e67ed59e1d1-2b9de4c1027mr3781380a91.30.1715860127082; Thu, 16 May 2024 04:48:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715860127; cv=pass; d=google.com; s=arc-20160816; b=Qk1PDLFFeEA2T/spbxVtjlP4/r9F52oIufyPCtfjLsZYd3VgiE8RkQXYYSHfe1y9cb NI1mResLj3RxbTVlQWescZJleLDvFNW/E5mic+HQtjAEjgOJzM0mBIU6QyzqFsnEyCCA vHQbCMTjWNFg3enICIzVED/ou1yKiSVfhZ+B55drbaKor3NstXunaQR1IVKbztitjn6R dzSAMdlmRQM8kURAcq6BEjw8f7WmXfNhxzBINZiUhAnYkfB/1SbYLQON0uqO0Ummb5Jh Z0srMRAIVEkUVuX5BzYPcvoErTY/MlkTu7kct+8VW5Of1a5oE21sNdE7bvRP4K1iEmuP AxZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Ar5WFBNWg79cJb76FWnFmrLSApx/PQAbDUo2VpyziqU=; fh=Jdoq4o0GQrR7waxQ/q24hd8jpbkj/4l79ULV/eX+Bys=; b=tcko92nnbGaGx+2LhlXf4jYuWsu4y9U7Kghyig0nIwhVGgUYU8u+O67thYGcVuZy/+ t/2zBRkUkunniZLVnKznCXeYluNzXo2qL5x9cTdfE1ExZV/KA1kTMp8Z7HaA9WqAwJRw ipGkQuu8qMTVw3w8q/KbrO6G+l+BrqLYLIDNk+bba/SqlosDJMYbCkLiOBsejwiMb2fe aGdcSxUvjxyF0p9pNtv3Vful1MgwBuZI1eO5rRYEPujFAPp9+C4JTQMUJrmQJV185ehI sTpDCE0lkvPQkF/sH4IhmP/Cuvrz5Qv3ZjR/Myju7q1tFrtyVEkWC0pzKT5KyVAt9BR9 VxoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-180958-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180958-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f4e1a6si15292549a91.60.2024.05.16.04.48.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180958-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-180958-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180958-linux.lists.archive=gmail.com@vger.kernel.org" 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 AAE1E2834E6 for ; Thu, 16 May 2024 11:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4851A145A10; Thu, 16 May 2024 11:48:41 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 773E026AD0 for ; Thu, 16 May 2024 11:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715860120; cv=none; b=GE+j+Ni0TMoyZJgPkonVv0ij7KQvFrGgv/DQT301JFEab1uWL08UBLYWo4k07yZhOkO6Er0sR0aU2wngP2M/azGdckcRHCZ0Qesf2dQxvs3QLKVaNXfBMUDWANFKaEAEOPDo8Ol8gKxjjcBrCvwB0Odo3kLjN50ig8riY/p/VY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715860120; c=relaxed/simple; bh=mHH8ds+0VZ4unF0VY0gZRjYkLC4SrJlPPaUUO2d7NXc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C7L4BnOTDjm0KpRAX4bRaY5qDClKynt6uQau4FAYfLQeM8jRE0f43RLFpCc/Xs+K8wk03oEDYNIIVkespkOpzdg+U3vk4IJwbxH2K+l3FI89n+Ouv5surrRcd3BcPDEVHL8ngiROV/SZQB0iMDHwITOkDf0znmnudqyElj0E94E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s7ZbB-0002rM-GM; Thu, 16 May 2024 13:48:37 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7ZbB-001hhR-0h; Thu, 16 May 2024 13:48:37 +0200 Received: from sha by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s7ZbA-00EqdY-31; Thu, 16 May 2024 13:48:36 +0200 Date: Thu, 16 May 2024 13:48:36 +0200 From: Sascha Hauer To: Miquel Raynal Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Richard Weinberger Subject: Re: [PATCH] mtd: rawnand: onfi: read parameter pages in one go Message-ID: References: <20240514134140.1050141-1-s.hauer@pengutronix.de> <20240516101350.78e5ee29@xps-13> <20240516115812.02908822@xps-13> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240516115812.02908822@xps-13> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Thu, May 16, 2024 at 11:58:12AM +0200, Miquel Raynal wrote: > > miquel.raynal@bootlin.com wrote on Thu, 16 May 2024 10:13:50 +0200: > > > Hi Sascha, > > > > s.hauer@pengutronix.de wrote on Tue, 14 May 2024 15:41:40 +0200: > > > > > nand_read_data_op() is not supported by all NAND controllers. > > > nand_change_read_column_op() is not supported or at least is hard to > > > support by NAND controllers that use a different page layout than > > > expected by the NAND core. > > > > I'm sorry but RNDOUT is not so hard to support, and I know no NAND > > controller without this feature (I think even the first mxc controller > > supports it?). However, the command does not exist on small page NANDs > > (512 bytes). > > Nevermind, the ONFI spec (in all versions) states that RNDOUT are > allowed during parameter page reads, regardless of the size of the chip > (at least, that is not mentioned). I could imagine that there are no ONFI compliant chips with small pages, I don't know how to verify this though. Anyway, this was a try to make reading the parameter pages a bit more straight forward. It seems the MXC NAND controller can't support reading three parameter pages in one go either. It works in software ECC mode because I reverse the syndome type layout the controller introduces, but it can't work with hardware ECC. So disregard this patch. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |