Message ID | 20221109202348.93666-2-dinguyen@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp545126wru; Wed, 9 Nov 2022 12:27:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM5aAATkax9vV+9e/JMSDNyiJtU0LA9kzU8/5U0rQtWT01hTsAsS3dMcUe9qn25KJ7RqbRPv X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr62226125eda.38.1668025668362; Wed, 09 Nov 2022 12:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668025668; cv=none; d=google.com; s=arc-20160816; b=CZwNQp7uldrCO8/HIDcaZ0/bqq+zXVZtygNMbZ+l73Z2eWLzvZN7Avmr7mJmcXyf7+ qfRAI8r4bru436awlH1cWAva+6DbVkYXc5X/sWL2ulJ+pE6Go/J9dPMBOELrVqKJEVFr SSHvjsUJcuChVCFk89jsXeH/bz1qlkAB/iX/YCvvvszZE86vX3AcAxFO3llwpVgVzeId Ya5f8EoB/4bkO5i7IFovA19RaSc8Jd2PyvMfDN8hlopbGgzhpwuD7CLEJRF0po/rJIWy wimpBuE+rtoXKCi1xa140F5PnlV8eggSBRyxSKC+h2YMsLxcVeMGNKTPNuJgVjzZSkqv ++mw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ntyf2SqV3Ptk4mEe1bu2Gewc1u6/sGCGvZ/+S2hlQDQ=; b=UJloFrOgZxpno9S0lV5u0LdsSw+srz5Y357ADx2qokIhAlxkFE44Dx2sC6ub1Qwrky e6HCoEn8oLSy3v5G1yXSF3tLM+5kU8UCDC2MFIxGJY0BQv3hw/qTb2T/bvnsHPtPpgEB 076Bs3dMFQZ1uEG6CGc44xew2vF60X3jlwcTY1VfPQbZemg726yCXzW7mu8Nwh2i89ft qr33lROE4fP+avr7GoMTmEmHGrYprtWhEhD56gOaUJRQDrhqTgBWjem7DFB/f+EMn6he 3OGwh3T+0T34R5KLErO1nqEsI4e9lepQ62LDyjelC3wYEhthG3lBj+OYDpLaoY5brsE+ Ageg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTvRSomo; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a1709065d0e00b007a20c586f4esi17697384ejt.876.2022.11.09.12.27.23; Wed, 09 Nov 2022 12:27:48 -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=@kernel.org header.s=k20201202 header.b=YTvRSomo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbiKIUYG (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 15:24:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbiKIUYE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 15:24:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0212DBC27 for <linux-kernel@vger.kernel.org>; Wed, 9 Nov 2022 12:24:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A7E32B8200A for <linux-kernel@vger.kernel.org>; Wed, 9 Nov 2022 20:24:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 770BBC433C1; Wed, 9 Nov 2022 20:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668025441; bh=7+5jyTKDsBSnzUCypgmhEzafnQWwO3MDHgaXspdMOVI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YTvRSomozFkiUg/FfR3yII1xY8PkR+w5h0C/UzmWX0Itx4wzX7VptefOqXmMGxhuP MLJcDXaJXSOVudCNuNYZLGjRZN8AzVQ465SU3fu3UfOoo7lX3vbjLPPQPCxLHY2SVI MDQ/q4RNeM7fhlwIOJ5HjoN+Q2ipG0WlrtKMpfMePmp4kFbj7EdPipxB3q1saktGFX 1NVQ7oK3PxBPht7A8b/ipFkNUvUK/hJTW38VKoz2V+Vhpc7OjD5pckLOue2tng3hUG Xg/RTX8xz5yGtuD4kc9AgisLEzwowboi0BftHtgGCAF8IHzvEvXsHAVjbkLHdyLz1x MpcU0Bf7dqq/g== From: Dinh Nguyen <dinguyen@kernel.org> To: linux-mtd@lists.infradead.org Cc: dinguyen@kernel.org, tudor.ambarus@microchip.com, pratyush@kernel.org, michael@walle.cc, linux-kernel@vger.kernel.org, Niravkumar L Rabara <niravkumar.l.rabara@intel.com> Subject: [PATCH] mtd: spi-nor: macronix: Add support for mx66u1g45g Date: Wed, 9 Nov 2022 14:23:48 -0600 Message-Id: <20221109202348.93666-2-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221109202348.93666-1-dinguyen@kernel.org> References: <20221109202348.93666-1-dinguyen@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749051656170931372?= X-GMAIL-MSGID: =?utf-8?q?1749051683345446474?= |
Series |
mtd: spi-nor: macronix: Add support for mx66u1g45g
|
|
Commit Message
Dinh Nguyen
Nov. 9, 2022, 8:23 p.m. UTC
The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB) that is already supported. Tested on Intel N5X socdk board, - random data write, erase, read - verified erase operations - random data write, read and compare - verified write/read operations Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> --- drivers/mtd/spi-nor/macronix.c | 4 ++++ 1 file changed, 4 insertions(+)
Comments
Hi Dinh, I love your patch! Yet something to improve: [auto build test ERROR on mtd/spi-nor/next] [also build test ERROR on linus/master v6.1-rc4 next-20221110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Dinh-Nguyen/mtd-spi-nor-macronix-Add-support-for-mx66u1g45g/20221110-042536 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-nor/next patch link: https://lore.kernel.org/r/20221109202348.93666-2-dinguyen%40kernel.org patch subject: [PATCH] mtd: spi-nor: macronix: Add support for mx66u1g45g config: m68k-randconfig-m031-20221110 compiler: m68k-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/068c68569fec28efdcee11c29844d3363181baf5 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Dinh-Nguyen/mtd-spi-nor-macronix-Add-support-for-mx66u1g45g/20221110-042536 git checkout 068c68569fec28efdcee11c29844d3363181baf5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/mtd/spi-nor/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): >> drivers/mtd/spi-nor/macronix.c:101:27: error: expected expression before ',' token 101 | PARSE_SFDP, | ^ vim +101 drivers/mtd/spi-nor/macronix.c 34 35 static const struct flash_info macronix_nor_parts[] = { 36 /* Macronix */ 37 { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1) 38 NO_SFDP_FLAGS(SECT_4K) }, 39 { "mx25l2005a", INFO(0xc22012, 0, 64 * 1024, 4) 40 NO_SFDP_FLAGS(SECT_4K) }, 41 { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8) 42 NO_SFDP_FLAGS(SECT_4K) }, 43 { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16) }, 44 { "mx25l1606e", INFO(0xc22015, 0, 64 * 1024, 32) 45 NO_SFDP_FLAGS(SECT_4K) }, 46 { "mx25l3205d", INFO(0xc22016, 0, 64 * 1024, 64) 47 NO_SFDP_FLAGS(SECT_4K) }, 48 { "mx25l3255e", INFO(0xc29e16, 0, 64 * 1024, 64) 49 NO_SFDP_FLAGS(SECT_4K) }, 50 { "mx25l6405d", INFO(0xc22017, 0, 64 * 1024, 128) 51 NO_SFDP_FLAGS(SECT_4K) }, 52 { "mx25u2033e", INFO(0xc22532, 0, 64 * 1024, 4) 53 NO_SFDP_FLAGS(SECT_4K) }, 54 { "mx25u3235f", INFO(0xc22536, 0, 64 * 1024, 64) 55 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 56 SPI_NOR_QUAD_READ) }, 57 { "mx25u4035", INFO(0xc22533, 0, 64 * 1024, 8) 58 NO_SFDP_FLAGS(SECT_4K) }, 59 { "mx25u8035", INFO(0xc22534, 0, 64 * 1024, 16) 60 NO_SFDP_FLAGS(SECT_4K) }, 61 { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128) 62 NO_SFDP_FLAGS(SECT_4K) }, 63 { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256) 64 FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP) 65 NO_SFDP_FLAGS(SECT_4K) }, 66 { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256) }, 67 { "mx25r1635f", INFO(0xc22815, 0, 64 * 1024, 32) 68 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 69 SPI_NOR_QUAD_READ) }, 70 { "mx25r3235f", INFO(0xc22816, 0, 64 * 1024, 64) 71 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 72 SPI_NOR_QUAD_READ) }, 73 { "mx25u12835f", INFO(0xc22538, 0, 64 * 1024, 256) 74 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 75 SPI_NOR_QUAD_READ) }, 76 { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512) 77 NO_SFDP_FLAGS(SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 78 .fixups = &mx25l25635_fixups }, 79 { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512) 80 NO_SFDP_FLAGS(SECT_4K) 81 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 82 { "mx25u51245g", INFO(0xc2253a, 0, 64 * 1024, 1024) 83 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 84 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 85 { "mx25v8035f", INFO(0xc22314, 0, 64 * 1024, 16) 86 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 87 SPI_NOR_QUAD_READ) }, 88 { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512) }, 89 { "mx66l51235f", INFO(0xc2201a, 0, 64 * 1024, 1024) 90 NO_SFDP_FLAGS(SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 91 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 92 { "mx66u51235f", INFO(0xc2253a, 0, 64 * 1024, 1024) 93 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 94 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 95 { "mx66l1g45g", INFO(0xc2201b, 0, 64 * 1024, 2048) 96 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | 97 SPI_NOR_QUAD_READ) }, 98 { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048) 99 NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) }, 100 { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048) > 101 PARSE_SFDP, 102 FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 103 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 104 { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096) 105 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) 106 FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, 107 }; 108
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index d81a4cb2812b..46ba898f3dd0 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_parts[] = { SPI_NOR_QUAD_READ) }, { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048) NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) }, + { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048) + PARSE_SFDP, + FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },