From patchwork Sat Nov 6 11:36:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 1551723 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Gaeyhs+E; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=bh2Kgien; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HmkWJ6TT4z9sXS for ; Sun, 7 Nov 2021 04:14:20 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pFO3yF+GjI8apmA/b/a2+KnesPe25eWlR2jPDzaWMvM=; b=Gaeyhs+E7VxaHG AwOgV1KzBEo4XbgUGsevMiazXXBhSZcdxHr/2YIoQjEDEkehzt/PDe/1yWT5kMOiURU9nDZ6dvozC WpmTs0LowMAUlC2c0Lw/0zsN9y5sePpOzun4WK/Pcv7bYFoKQb37lHbLLWCz//vTM0Q/iP1atsV13 aouP4Qt9+j7NMbZe56wvmbR2R6KFciy0JuTQKUTQh+A8/mGPS9+iSjqTKN6ILvEa6RvzSX6UGtowJ oLNPisFSqQ36l+W0n0TP6U3tL5dFg2ImloirCA5FU2/I4lYRA+2VI6ir2La/F1cDRW3jmUblMaZsp zg7u1uWMnP4HgtLMsncA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjPFy-00DGL1-JN; Sat, 06 Nov 2021 17:13:31 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjOq0-00D8Rk-Qd; Sat, 06 Nov 2021 16:46:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1636217200; x=1667753200; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z6soVn9xoeuYgr6zhzwFuyha5kHuGktTj62rC+ELlJo=; b=bh2Kgiente9d8CXxH+ArhMbvT5Q5CbX+W9c4ycry0Xrne37DHVVpVe4j n/NxY+w6Jv4WwsRJmytXcABIXAbl2btV66GlLc+1GnDrmaCqmnRfHj7qt VdfZ7TrJtZ5h4+wwYpj5BM6nOp68kKy+IQPe4M+rZC/0Ze5oZsjaMHLdW 18WWKyaDy2wYki/FcX9OUUxJvjTDACthG7AfsfqEKGrIqqpDLI6+WcaGN jD+NzmMjPH/E0nMwzcCJKUFCmIQE1BYgNiyh2qyJTqmuhPqDLcVLe61gf LED0k5lEPi369t7EP4QTPKq2x3H09sZW1KozzhIHmmIs9UshKpuinco+D A==; IronPort-SDR: nD2VmiKVKvukAoPFM3lRRvX7qlAVPt8qRa4ugcdlquXwCBk/BJh7oZhxa7RmJ2pjYsmB0JUJJ5 ufsmBOaCumlAdpzzqDz2gxoEXG8p8TWfW9Azt3dIOE3w3f9xfQC0FIsOHD6s8DAoo0I9YcDuo9 L7Pw76qmQrXb9BlnKi2MssP0GIJZp2mhOiAwYynUklkUPA+IWK9EncUqdasj4X1q4P4G00+OD8 F5c1/3hWvamaTUb+muF87bMUY7ZRnplIa4rjLlIjdlMpjVq02gcSS4jrsoOGCGQtta20/8WI2g TppDfL5esbmkFFLxVEHZ/oZZ X-IronPort-AV: E=Sophos;i="5.87,214,1631602800"; d="scan'208";a="142416176" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Nov 2021 04:37:33 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Sat, 6 Nov 2021 04:37:32 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Sat, 6 Nov 2021 04:37:27 -0700 From: Tudor Ambarus To: , , Subject: [PATCH v3 6/6] mtd: spi-nor: manuf-id-collisions: Add support for xm25qh64c Date: Sat, 6 Nov 2021 13:36:57 +0200 Message-ID: <20211106113657.172690-7-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211106113657.172690-1-tudor.ambarus@microchip.com> References: <20211106113657.172690-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211106_094640_923319_C3B3F026 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Do not apply without: # xxd -p /path/to/sfdp # sha1sum /path/to/sfdp # cat /path/to/jedec_id # cat /path/to/partname # cat /path/to/manufacturer Flash ignores the manufacturer continuation codes and is likely to collide with other manufacturers flashes. Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [68.232.153.233 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.153.233 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: macromorgan@hotmail.com, jaimeliao@mxic.com.tw, Tudor Ambarus , richard@nod.at, esben@geanix.com, linux@rasmusvillemoes.dk, knaerzche@gmail.com, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, code@reto-schneider.ch, miquel.raynal@bootlin.com, heiko.thiery@gmail.com, sr@denx.de, mail@david-bauer.net, zhengxunli@mxic.com.tw Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Do not apply without: # xxd -p /path/to/sfdp # sha1sum /path/to/sfdp # cat /path/to/jedec_id # cat /path/to/partname # cat /path/to/manufacturer Flash ignores the manufacturer continuation codes and is likely to collide with other manufacturers flashes. Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/manuf-id-collisions.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/mtd/spi-nor/manuf-id-collisions.c b/drivers/mtd/spi-nor/manuf-id-collisions.c index 7827cfc584df..0d0989dd25be 100644 --- a/drivers/mtd/spi-nor/manuf-id-collisions.c +++ b/drivers/mtd/spi-nor/manuf-id-collisions.c @@ -17,6 +17,15 @@ static const struct spi_nor_fixups boya_fixups = { .late_init = boya_late_init, }; +static void xmc_late_init(struct spi_nor *nor) +{ + nor->manufacturer_name = "xmc"; +} + +static const struct spi_nor_fixups xmc_fixups = { + .late_init = xmc_late_init, +}; + static void xtx_late_init(struct spi_nor *nor) { nor->manufacturer_name = "xtx"; @@ -33,6 +42,10 @@ static const struct flash_info id_collision_parts[] = { SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) .fixups = &boya_fixups }, + /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */ + { "xm25qh64c", INFO(0x204017, 0, 64 * 1024, 128, SPI_NOR_PARSE_SFDP) + .fixups = &xmc_fixups }, + /* XTX (XTX Technology Limited) */ { "xt25f128b", INFO(0x0b4018, 0, 64 * 1024, 256, SPI_NOR_PARSE_SFDP) .fixups = &xtx_fixups },