From patchwork Tue Jul 27 04:51:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12401463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE0DCC4338F for ; Tue, 27 Jul 2021 05:09:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B328C610A7 for ; Tue, 27 Jul 2021 05:09:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B328C610A7 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=+x8imf8a8Z9BPphRUl9rCqdgGAALEtG+p2aEmQu5d+0=; b=H1otAL+X9SaXp/ SoMRLWCs21xs26pST4TyF80x8kDpddc+Easmqc1/vGvo8eZrl6vo22ioIbLtf8w6FA8WD87t4dcfv ralFyS7lBfSB7BZmcZaxcCS4nwg1/+eMY+rwnJ7E9iQU9QTfL1SPjaX/yTYpFWQ+/z0QAHgHIgHR3 Qs51fhnanaI7eh1ERMehzJollEpMhTR/jmQqbMmj481Xcl76rmmI31hVOhhfffW6h3TfuKi+zApJw 7kn1z3HOEKIUt4BA3GA6LLgsD+znhI9u5u5X/u9x3GDNte9cFVBceCHGmx0vzoOXjHtK+gKCa9k/g wQSGDH5LB8zTW5m2RTag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8FJF-00DM7u-4W; Tue, 27 Jul 2021 05:07:18 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8F5X-00DHVh-9v; Tue, 27 Jul 2021 04:53:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1627361587; x=1658897587; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FnW9fxzApB6BxAtUcw3xQI1N0ia6iSLV+WDV+VjMt9o=; b=wmDfMyA8WYM4bqHl9gOMhygMw20X+BLq1WWYAj1ZGxPzlB9b5Zhh6n5X Lba4uTFYSBoxtG9lIkcwZ1CfthHRCflF6u9G5Oz9S+wIR5NbkQhrf27+d Wq7i1MHeeRzhVAz7xRQN7UcmwmMiLPjzUAvDbEJooCHaRA7qIfxtOo8aY eW6QaLvGYm7DGnA1FFYmy5fxjaeIOEN/Dw8pSOlGUuBy5QyvqrVxazp5Z snkBko9rcv6bUI5yH6kzeMII8nqYBklrEpq+bu/k4kB/RMXbJsDzQ+kbL oBOpmM6q8cbtSfsw4EGCL0XNLEYOZoPQjDEhX8H26EID5u39LVGOT3ZAg w==; IronPort-SDR: dndfBDwKSBX5Dp6qJbekKs8oANBVVxVtZR9UicEtlf09Dq3ZrdaHCgoXCWwcAuXPPOL2dG/6Zy 9zJSAUBi5oSVhed1LMjng5SthYzu+PBsk78Mu7iTrwaltE2KpOI/YnUB1TpUo5eJmkuibGmE4J Se98teMqTnVChSXAtxqGRtGUNvEqx9c8yk1pq+XFb2pa62DJmIt4B9UtZvQ7mGYWQHVbPQ5FkP +hiHNFZxPwq5gV1AfcQFHdl7Ow1vc69NnDUrumghHrshlWMguuMh8QD38by+wuh1LLni8RS1qe YJUrmSh90+WjQ7aMXXTTEt2L X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="126054976" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Jul 2021 21:53:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 26 Jul 2021 21:53:05 -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.2 via Frontend Transport; Mon, 26 Jul 2021 21:53:00 -0700 From: Tudor Ambarus To: , , Subject: [PATCH v2 07/35] mtd: spi-nor: manuf-id-collisions: Add support for xm25qh64c Date: Tue, 27 Jul 2021 07:51:54 +0300 Message-ID: <20210727045222.905056-8-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210727045222.905056-1-tudor.ambarus@microchip.com> References: <20210727045222.905056-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-20210726_215307_459512_D9DA939B X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: 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, figgyc@figgyc.uk, mail@david-bauer.net, zhengxunli@mxic.com.tw Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Flash ignores the manufacturer continuation codes and is likely to collide with other manufacturers flashes. Signed-off-by: Tudor Ambarus --- Do not apply without the SFDP tables hexdump. drivers/mtd/spi-nor/manuf-id-collisions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/manuf-id-collisions.c b/drivers/mtd/spi-nor/manuf-id-collisions.c index db31470ebf6a..f3ba00d17c68 100644 --- a/drivers/mtd/spi-nor/manuf-id-collisions.c +++ b/drivers/mtd/spi-nor/manuf-id-collisions.c @@ -14,6 +14,9 @@ static const struct flash_info id_collision_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */ + { "xm25qh64c", INFO(0x204017, 0, 64 * 1024, 128, SPI_NOR_PARSE_SFDP) }, + /* XTX (XTX Technology Limited) */ { "xt25f128b", INFO(0x0b4018, 0, 64 * 1024, 256, SPI_NOR_PARSE_SFDP | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },