Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1209778rdb; Sun, 7 Jan 2024 08:25:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3RzTd/YL9ivRIW9HKAAgp3w8xzP7/OEKqBSMivKgfdZeauAS3/1L2GVl32yK553HS/ogD X-Received: by 2002:a05:620a:2403:b0:783:23e2:ae6f with SMTP id d3-20020a05620a240300b0078323e2ae6fmr26402qkn.124.1704644729389; Sun, 07 Jan 2024 08:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704644729; cv=none; d=google.com; s=arc-20160816; b=mxEzs8n96f2+2u3GuigEo0lXsAUBIXnl24Qx5UrepgUpC7dRXiIQaIWt4KPjhPnW9b XrubIoW6S6vgjfE4MEZbEIjcIaijuvSN1jDzhZdZ+ZAtyBVsTVJUxT9bFT7AuGUrRD3Z Cs7YVfngDDKRYLnOuRfvR+BcnhlDQDh7lhKe0HaDF8wYjDPHAg/9nH7s9cpBOHj4qFgC HsYhQ/VXejGeu5qkryWfXq4CYquVQ76rcRaWyjMrH1m7ABNl2LtY3/NcjARQr+U8adbL MW1frkObQ5ZipP+0n8UhXjedcpewa7MN7sz1lsCu4pajh6PDiofvArSROtw/gd3Jv42x FlOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=hevdVpjxoAhP9z2OlQyjt5TPuai9+Xb1S4RWdfga0B0=; fh=WMadBWVWyG2ERyPzTwoW9FDaB3/4COSTkuG6x+dZcss=; b=zuZ5K3GJlNMTtXgdTmwNsdHGSJFknHsdN0XVxPtZhuDmgMo1QHtoatL0+IUMNyquZY K/2r25yzKrNsTc3plj5RRjEL9cnInF3OQM6+yPzUXDws2LrYjElOJR28uBrDy3hmGvId T5qms2ii8BFmoRWj0dUJK2IG7y+9jTbisyVq+eE9eQK3PltkcB5GIpah0HkIjrYIHDhN ny65LAP8/Ji42yVxuuC2yXnaeP4TegF06N5cjkYay/muoWjYX2FFyKO1SpfKkObE1jR+ zcxQ0SrU4Q0DyyzQYocr/dm7oVz8upiqRaUxfmdf2NF7XApInT891mJ0BGV0CMvVlpW/ PXjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m13-20020a05620a290d00b00780f8f53c87si6241589qkp.695.2024.01.07.08.25.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 08:25:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2B6061C21396 for ; Sun, 7 Jan 2024 16:25:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0A313AE7; Sun, 7 Jan 2024 16:25:22 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-m25492.xmail.ntesmail.com (mail-m25492.xmail.ntesmail.com [103.129.254.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85A2513ADB for ; Sun, 7 Jan 2024 16:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [113.118.189.127]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 425C180005B; Sun, 7 Jan 2024 20:30:23 +0800 (CST) From: Chukun Pan To: Miquel Raynal Cc: Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Chukun Pan Subject: [PATCH 1/1] mtd: nand: Add Dosilicon manufacturer id Date: Sun, 7 Jan 2024 20:30:20 +0800 Message-Id: <20240107123020.22053-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaThlDVksZTElKSUkdHUsaT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUpJTFlXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8ce3e71cd0b03akuuu425c180005b X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ky46GSo4NzwtGDw2KyIJLxwu CygKFEtVSlVKTEtPTUhLTUlPS09JVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUpJTFlXWQgBWUFJSk9JNwY+ Add Dosilicon manufacturer id. Tested on Dosilicon FMND1G08S3D. Signed-off-by: Chukun Pan --- drivers/mtd/nand/raw/internals.h | 1 + drivers/mtd/nand/raw/nand_ids.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/internals.h b/drivers/mtd/nand/raw/internals.h index b7162ced9efa..e94788597a72 100644 --- a/drivers/mtd/nand/raw/internals.h +++ b/drivers/mtd/nand/raw/internals.h @@ -18,6 +18,7 @@ */ #define NAND_MFR_AMD 0x01 #define NAND_MFR_ATO 0x9b +#define NAND_MFR_DOSILICON 0xf8 #define NAND_MFR_EON 0x92 #define NAND_MFR_ESMT 0xc8 #define NAND_MFR_FUJITSU 0x04 diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index 650351c62af6..54e07e148c6e 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -181,6 +181,7 @@ struct nand_flash_dev nand_flash_ids[] = { static const struct nand_manufacturer_desc nand_manufacturer_descs[] = { {NAND_MFR_AMD, "AMD/Spansion", &amd_nand_manuf_ops}, {NAND_MFR_ATO, "ATO"}, + {NAND_MFR_DOSILICON, "Dosilicon"}, {NAND_MFR_EON, "Eon"}, {NAND_MFR_ESMT, "ESMT", &esmt_nand_manuf_ops}, {NAND_MFR_FUJITSU, "Fujitsu"}, -- 2.25.1