Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3367383rdb; Thu, 16 Nov 2023 07:47:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2O5D0DyUqhfDnVsgsMfgzoKODyP92n2bT3ezTFt8pM3GyDas2zsbHBP7z0C9zwOjjE8/c X-Received: by 2002:a05:6a20:431f:b0:187:349d:de16 with SMTP id h31-20020a056a20431f00b00187349dde16mr7894792pzk.37.1700149623021; Thu, 16 Nov 2023 07:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700149623; cv=none; d=google.com; s=arc-20160816; b=WFTAz766KbFPfB4MqFg/LiCKHLleJZL0yFd3ij4eGg11b/zqDitHAnIRCIpm73zs39 n1gVQvBBWZWUbhlgisPQNHtFBhATk2BJQnWkmCFQFeUUcQ3/X8BKsW9Zz44ub9hgf9zz mmj5fKPbVlHJamydFODl+ajdmuIWSnMqo52Dzxy/iwCODMkul56XPWgdFyuYiCqYPkiB 0DRBdPE5fxXqsExv1XTKVQg8IBGOHqbnjSeBHE6Oug9vDK4hvDZKvxj9aZ68ExmeU7lP JTGktlgrKCYllqzZmGsIY82ztxzeYFsk0H5ObftgyLkiSHS2VDrnWReCTzwEo8D4+Dor VY1Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=NzP6omckKO6pXhBexT1X2n8wT+/cFEgMRBiyd2eBaWg=; fh=Xw2Vtal8IG9kVp+FPIvCP7hRx+fk+ovWTjL2HntTKtg=; b=OoFkxN9CEkvhj77Ks6MN5jnRqYZQfrYAYo26tg89/atqMKbLe1dA7iALXejA02TcJf Iwm2f/5LpNXzjjyvHSXzESMaNyFmsxAI1wBYNT6NdFK24+MAKCq/w3VeRySFbE+NRL4M B2TnbWCfrC+4RhJe0QEk+d2rVY9mpqCF9ZK/W8l2V8NwVqLapBZFw1bPxe5ws43Ia58Q uZoqlqufP/6QKLhMg22qpQfHcBm9fVX5UUTy7F3TqTkfbcL4r0HxQknw0l3oumJousmL j0CbNUXb8u7Yss/bPn1FdVUEWDfA7zhQJUp4DMpjrHzomS+kSP1DRpmM/yyBAcb0GTxk IIyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KZYfnwvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bv184-20020a632ec1000000b005bdc49d22a4si12050696pgb.103.2023.11.16.07.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:47:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KZYfnwvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 72BA680ECB34; Thu, 16 Nov 2023 07:47:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345202AbjKPPqv (ORCPT + 99 others); Thu, 16 Nov 2023 10:46:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjKPPqu (ORCPT ); Thu, 16 Nov 2023 10:46:50 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A2A11F for ; Thu, 16 Nov 2023 07:46:43 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0055AFF811; Thu, 16 Nov 2023 15:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700149602; 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=NzP6omckKO6pXhBexT1X2n8wT+/cFEgMRBiyd2eBaWg=; b=KZYfnwvsovuEUdw9BicMVkdt6L8HYUJwBzlp4wQSmeQJcF8m365OG77RAHx7AECWuTCv40 Z96sByOGHIc4KsRGzXpiv5ZUIUW98tnV8TvhoK2b3ypY1OEkcfKoQtaPp9ZpUKdbJyCExK qvCVtY9OdYB9llRGycCqSzPlD4chR6NLyl/dIAJD+eRG5XHgPQWmK1Ulr49Ykx/Fc5g5Op mZxRFTRZBxhf4ipE0ij3wMkI15RKcnKV18fFs2CRYGCaTijj5gkwlueWWgk1Et7AN+hglj 6F0FBeHsTul7CMixl9DZqA5946isEjLOGuH8biYeV/Y5mrbS0SbzN2YmOgkTiw== Date: Thu, 16 Nov 2023 16:46:40 +0100 From: Miquel Raynal To: Chukun Pan Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, richard@nod.at, vigneshr@ti.com Subject: Re: [PATCH 1/1] mtd: rawnand: add support for TH58NYG3S0HBAI4 NAND flash Message-ID: <20231116164640.7eedec50@xps-13> In-Reply-To: <20231114123008.185071-1-amadeus@jmu.edu.cn> References: <20231029144840.484facee@xps-13> <20231114123008.185071-1-amadeus@jmu.edu.cn> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 07:47:00 -0800 (PST) Hi Chukun, amadeus@jmu.edu.cn wrote on Tue, 14 Nov 2023 20:30:08 +0800: > Hi Miquel, >=20 > > It's more like a request than a question. Please fix the parameter page > > at run time by registering a ->.fixup_onfi_param_page() hook in > > Toshiba's nand_manufacturer_ops structure. =20 >=20 > Sorry for the late reply. This flash is not ONFI compliant NAND, > so onfi fixup can't work. Datasheet available at: > https://europe.kioxia.com/content/dam/kioxia/newidr/productinfo/datasheet= /201910/DST_TH58NYG3S0HBAI4-TDE_EN_31565.pdf You said in your commit log that this flash was detected with a smaller (or bigger, I don't remember) OOB size than it really has. This number comes from somewhere? Is it an existing ID? Is it an auto-discovery mechanism? If it's an ID then why not adding a new entry. Otherwise you can I guess make some changes in the device geometry in the manufacturer init operation as well if the fixup-onfi hook does no apply. Thanks, Miqu=C3=A8l