From patchwork Sun Jan 7 12:30:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 185745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp611946dyq; Sun, 7 Jan 2024 08:30:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf5A5WNpa0wbys0B4g/rB2QjAnIOADPqoSmvGj17RqFlrnnXS2cglchWKL0GstdExZZRCL X-Received: by 2002:a17:906:5ac8:b0:a28:c495:1c86 with SMTP id x8-20020a1709065ac800b00a28c4951c86mr1159048ejs.36.1704645054767; Sun, 07 Jan 2024 08:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704645054; cv=none; d=google.com; s=arc-20160816; b=Zns5zrnfAsRl7EWtQBpr3Tr8XEJn8fSd/DtSHsce1lwIgnSP9Tl9TaKIe1mw8Qtdo8 Ef2puD/ZlwIXsO5Rc5dKoYtPD2JAcOezPWk+CWcZFsv2qMpOwm3QlAi7yAP6EbdwlJkg 9+nQznXA+CvEVeS7IKahIdlussIY49Kc5IHVBKo+XEHqibDNuSAUCbnJ+ySvEu2O/ACg IJIGpb2g/RLQUreulIwFhcZ/MEcOnZ1hVfAoQBPu1OKfDto2DYOochCiDRZJalh5RRRF ugNJwQk5VYZ8Py26ZDnPfn06nmDL/N32JBe5/pKMDn9yZLNhEzzmwJzPwQC9/6wiFrI0 8Hhw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18915-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o26-20020a1709064f9a00b00a27c4870128si2392035eju.877.2024.01.07.08.30.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 08:30:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18915-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18915-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18915-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id AB64F1F22A3C for ; Sun, 7 Jan 2024 16:25:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C01F213AFC; Sun, 7 Jan 2024 16:25:23 +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 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaThlDVksZTElKSUkdHUsaT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUpJTFlXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8ce3e71cd0b03akuuu425c180005b X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ky46GSo4NzwtGDw2KyIJLxwu CygKFEtVSlVKTEtPTUhLTUlPS09JVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUpJTFlXWQgBWUFJSk9JNwY+ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787449892714025506 X-GMAIL-MSGID: 1787449892714025506 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"},