Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6362800rwl; Thu, 29 Dec 2022 11:26:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXtVPahY5eTY357DBayAQTKh2rQl9eXaHEVA906T6i2zq8quGYis2iMIKQkWG819eFE0jz35 X-Received: by 2002:a05:6402:2b87:b0:482:4ffd:3e80 with SMTP id fj7-20020a0564022b8700b004824ffd3e80mr17592928edb.12.1672341998922; Thu, 29 Dec 2022 11:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672341998; cv=none; d=google.com; s=arc-20160816; b=BwcAbGTsu80vnm+bohb4jOIr9yGAK3kxZpbSW2DOVmxEdrxbJuz7aMEJ0uNza48cVB 7h9FWu4WMWso4EG5Uqi5W1wnDyhNWe5qE9PS8tv85JgAASTWx0ljqZdAZREycp2Pbtwt rPwKD+SfOmE61J+fdYVoZwdiuWutwIgIwa7bTUGauY9kyPbz2lBAK8nmTtUvlV0UVTpB UnGWp/CgM8/L3si5GJz9nabz5WY1QkoMc5A2ZedbfM62RvJ68SPkpWNupLDq6TNlhQ64 qeqHqgOICEicfKiwUGL+1SzXuSzHuk6nzgLB6W8oU8QgpcFsIS2HyuIsXdgU+z64aaOL qScg== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=0RQE8/nTaUDJx2rfTZDgn+HEP18KjlUXz+uMmj/1Xf4=; b=GeOoUquzhEybYE+R0qX54D/zukOwI+wcKYvuF2ki48cQA5gp2yTspYZj1zrc4sbcwy 0i2r6ncV+Ul/LYAgLJLZoLiCfSfWKZWdIUu9uEvLtoEDrnyrZNyDrzkorywsxsi+5o+Q dnCCT5LCoOYTWWXZdLDIGYAS2hbYUGFQl/NnO3kaUyyjXGo3mgOIkeUdcmhLuN+Eppe5 Akqdau2rklFt9O/2/ddlLi62umrZUBc9B793m6dPT8xhjfSyRLaU+xhD++FHqUSpYPc6 XvDpFQq1qOEWsJ3lmx6VVHmQ/wxW5os1cqLPlWlGQ3flroobro+p/pzUEphTyDLG5qOi qWqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=T9BbuC+H; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mL+bYvNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xj4-20020a170906db0400b007ac60b82ea5si16239300ejb.96.2022.12.29.11.26.24; Thu, 29 Dec 2022 11:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=T9BbuC+H; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mL+bYvNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233726AbiL2TJP (ORCPT + 62 others); Thu, 29 Dec 2022 14:09:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbiL2TJK (ORCPT ); Thu, 29 Dec 2022 14:09:10 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4A714D21 for ; Thu, 29 Dec 2022 11:09:09 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C1BB83200906; Thu, 29 Dec 2022 14:09:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 29 Dec 2022 14:09:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1672340948; x=1672427348; bh=0RQE8/nTaUDJx2rfTZDgn+HEP 18KjlUXz+uMmj/1Xf4=; b=T9BbuC+HiYQ10P5oB/PBvffq/N3eXR365yLl+l3N+ ZHq0/KRiGLN+DkPdoDeesmm3Lymqonl9kAMJifIk0Fo29+Tra4IEkIEikF1NYd/8 shILVotAK3Z2fxqi/TLQx41MRxI1V3NqWz6ppAqoYxS0RmFnLxSnZRuyNGRQ3ReT yx7qfUXRibmL7FAbeoOdlFtFwCDepC8fnkB+WoQOqydRUvpTZDbmxzsd/74T4VGh 1fOix0uaNDfcgZLFqGqEztNa66EHvhF3LvqGvmqk0JRURO+kTVYCsPAtf5Lo/Hez 9JnPBTqGOkQ+oulVjQ0uRL/SkBxrPa9fbF61CP+iSdE6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672340948; x=1672427348; bh=0RQE8/nTaUDJx2rfTZDgn+HEP18KjlUXz+u Mmj/1Xf4=; b=mL+bYvNCMGh78XX/SW79Ie5O+5bmiRBMIExeEDzSGTXNc0pSwxl jjvsFZ+KUWBQ0jUIaEAMDosdq1CUI4crH0BtNdm+Df/0Zf3jUDmUVzmF8ThVe8fm TvE4HxpZ2Fv2GK43JWcATWwLYDTvTxQ0lobNKHONHBgPalpM+pNN8ShafZ9bksNt d4h/OaIqs4m3ogrzSrLU0hmEB5FjPVpt4KFVnMgwrxe/ZqIrWKWjLoaH/f6h3Is0 dDaQr+kA48NTRCVDsuTNX13xhg+lMrJayqqLxvk+/ZKnJb8DYQ4fn2JsH6P/AAYf 8KQakKK7oF3WeDCSbWhrxK2XCPgSCtymY4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieeggdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Dec 2022 14:09:07 -0500 (EST) From: Samuel Holland To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH 0/3] mtd: rawnand: Add H27UCG8T2FTR-BC MLC NAND Date: Thu, 29 Dec 2022 13:09:02 -0600 Message-Id: <20221229190906.6467-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the subject NAND chip, found in an Allwinner A33 tablet, which appears to be a slightly newer revision of the already-supported H27UCG8T2ETR-BC. I initially tried declaring the chip with the number of pages from the datasheet, but it appears the NAND core only supports power-of-two page counts. I made a change which works for me, but I am marking it as RFC because I am unsure of any other impacts of this change. Samuel Holland (3): mtd: rawnand: hynix: Add support for H27UCG8T2FTR-BC MLC NAND mtd: rawnand: Support non-power-of-two chip sizes mtd: rawnand: hynix: Expose the full H27UCG8T2FTR-BC chip size drivers/mtd/nand/raw/nand_base.c | 14 +++++--------- drivers/mtd/nand/raw/nand_hynix.c | 4 ++++ drivers/mtd/nand/raw/nand_ids.c | 4 ++++ 3 files changed, 13 insertions(+), 9 deletions(-) -- 2.37.4