From patchwork Thu Jul 14 14:35:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 2171 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5D8C83F066 for ; Thu, 14 Jul 2022 16:36:04 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id h189-20020a1c21c6000000b003a2fdf9bd2asf731717wmh.8 for ; Thu, 14 Jul 2022 07:36:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657809364; cv=pass; d=google.com; s=arc-20160816; b=PcCYSQp3q3ba6TT4Hcug5TVFSIHJFg0M4bb6hcXlV13WVbVUGhNrNVKdyIc6Ew5agu /TxRWfwU31zGLlgeptCIJmG6QhoOP+FnDlNtG1F/JM7rwMdcZ2ZRw80uXHHfyrrE6YSz 4/jnVErvqjzJ91qVwaFSKU9+QCmPicSG+F15R10mQwMuv4hrTNphcXbiAZ0iJnyo5Vaz r0l8MhzVJjzcNU5vyH4eDdC8eIROy5OOXI8ye/oVYvRH0uHY1uBMuXa4h5Zonjkpw/79 XCC52MiSU2u0boftnLh54vtOMLXhzlOxaEMM08+UUzqE1FdTxQO8mwGMdflFlTzO7UY+ HPDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pjsaOc5d3VSwvcEV367KBzy/ZYpzrfF+OATXAPBNDNo=; b=d9QSMoEiyetsUfqqzQTv9otZ6lQN7Ck/DhIyIjMSSxRhNUnBXiqiVefgNfbQ/kHoV1 QQxnJJfzLTP1BHzkisT4C/wNBqCjL0tt73Z3jPX49MabxhX7wodDf67YEjFcGmWCCAmg 4VSW9ousqXH8eOCWd1g0cpAJESRnjKNQm3pX5j93N925NSoPZrVklzHWC7jZ1uCxiFRS AA67RApgJ+17/Oj5c/dL+MxmDtiIuyuivKM4xdVK2uLWpYgcPIWu+P6IRM/M9C3usthr HdOmnV2e3BwSkcIpYbrgwc57ZZGz2S8VCIt113D5yvb3mV+nEmkZFsprHatS3x07UK1a ZWqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O8wsYyem; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=pjsaOc5d3VSwvcEV367KBzy/ZYpzrfF+OATXAPBNDNo=; b=LsgOIEnW3r1W/Wey/EhqzCmXllf9tuqsgYY/EV09GYEW1nmA430WKkmc0PJ2H9MCNe pY3N+lH72lU2YONwhD9eh8YOzqTKojh7rcCoIYYgTnJ19iWghQ7tQ1uPNN5yyULYFH98 Kh8taPdJsLu9M9ol42Frag9FVf76In9vCSS0M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=pjsaOc5d3VSwvcEV367KBzy/ZYpzrfF+OATXAPBNDNo=; b=m7HTtDkmnqtQuk97Mn4quRLatMjoVWG//r8rngMz9s8G70x5MWoSST4HIdVvl7wM+1 E0YaBMCTtaJyukTZCheK8di1I8E9dq7Sn2zQ+ceMDjmquztUF+5NyYWq7Z7p7RzRcufy rJGV4bH2NtHNArEc1L8SxuTYooja7RCbI5ukSTKd9CGGHRRFsBkAv21NQW8DZjbCqFWE TFPdhNDof9jMrDAbbCbV6xdnnaWhu51zMcVFSPv9Sb8GAzVkEYbut7oegX6gKdpboSH5 IAaS3q7VdmyNv3TSBh1+JjLA3hkylA7l7x6IexDDbP8wQOrJrGiM1h2VvUJCI+94pxxF HZMA== X-Gm-Message-State: AJIora/eh5cWwgiLs2SgTKnu7LL70uVixVeQt2u0tyOa3dxPcuvNUvDC aW3hmIjpYqlNL856VQQUl4TH+h1w X-Google-Smtp-Source: AGRyM1uQK3vCh9PMf0xo/8LZizAe03gqDGNOoZWVuiJX66FtMT1snPPeuNJ2lrug+DGGEYXVIX0CHw== X-Received: by 2002:a05:6000:888:b0:21b:b950:f4bd with SMTP id ca8-20020a056000088800b0021bb950f4bdmr8653175wrb.253.1657809364006; Thu, 14 Jul 2022 07:36:04 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b17:b0:3a0:2da0:3609 with SMTP id m23-20020a05600c3b1700b003a02da03609ls4512033wms.1.gmail; Thu, 14 Jul 2022 07:36:02 -0700 (PDT) X-Received: by 2002:a05:600c:17c7:b0:3a3:f1:148c with SMTP id y7-20020a05600c17c700b003a300f1148cmr4129732wmo.32.1657809362680; Thu, 14 Jul 2022 07:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657809362; cv=none; d=google.com; s=arc-20160816; b=wOCD5U8F99vM4/2rAMU7Pqc+HgZl63cWTfS0tbgDdqW3df+cqGf7q9It6sISoMJWmH yq/QDpbryZhPeIMaccAxm5r4vpYYmVuabi6lTwArnvoGyANyT+PalVhXImhxYmj+qoIn XgHoaeVQ25iKkD0wOPTKzkBQbY7vxZgykqyU2KeBpb0MI3njaT/ESJAKG7ZdenFdxOop XCTn7g/i7rZSGpPbRQ2UpWYqG+38DKgnNC9ZL/5hvIl8zh86b43+5QdiJHGDKAkwFNto Qz6T7I5mQrw9Wc1cgbyj6RAC0YtH+kqV8WsTRX3xsWuBIDud7DG1a3PI5pssBnMx5bXU xRDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GUpIdmojh0UYmi+/gUfiA+lJOYYykzTcKwI0/ILa5BA=; b=aejXKbl7yt3wz7ac0wBXvC/P9RE/oe4cMVfS/WEG9EZnAlXqbA1rkNhA0YyhmO8/nV NWZaHxC0zeDr0zaS9zWJgDvL0mT8wFwouo/+nIgM6xMFr7IpFkMd0vUKb9miq31fkPep so3+1+cxz7IJjDbn34pt3FMqOrEI/KtNupyercXvOcsd26AsIqzQXZ0BBw03gC4MEtA2 Za0Icm3203X8l39NFxJ8ZWUfdchqbZ7bGL9EJbYPrGeRMszDlxeGopI9emAlh8cm0Ib9 Qg2JnxhNV8Fb8BquWd6xhAEpZkZDhS1wzxD8gsyyNPjwFkcCo8VADCsPpORhM8SucJhs H5zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O8wsYyem; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 184-20020a1c02c1000000b003a3008806c2sor624716wmc.40.2022.07.14.07.36.02 for (Google Transport Security); Thu, 14 Jul 2022 07:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a1c:750e:0:b0:3a2:b42f:ec2c with SMTP id o14-20020a1c750e000000b003a2b42fec2cmr15709361wmc.153.1657809362003; Thu, 14 Jul 2022 07:36:02 -0700 (PDT) Received: from panicking.. ([2.198.242.86]) by smtp.gmail.com with ESMTPSA id u18-20020a05600c19d200b003973c54bd69sm5712357wmq.1.2022.07.14.07.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 07:36:01 -0700 (PDT) From: Michael Trimarchi To: linux-amarula@amarulasolutions.com, Dario Binacchi , Tommaso Merciai , Boris Brezillon , Richard Weinberger , Patrice Chotard , Wolfgang Denk , u-boot@lists.denx.de (open list) Cc: u-boot@lists.denx.de (open list) Subject: [PATCH 05/11] mtd: nand: Export symbol nand_decode_ext_id Date: Thu, 14 Jul 2022 16:35:37 +0200 Message-Id: <20220714143543.448991-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220714143543.448991-1-michael@amarulasolutions.com> References: <20220714143543.448991-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O8wsYyem; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 7d52372af5..4cb38378f4 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -4160,7 +4160,7 @@ static int nand_get_bits_per_cell(u8 cellinfo) * chip. The rest of the parameters must be decoded according to generic or * manufacturer-specific "extended ID" decoding patterns. */ -static void nand_decode_ext_id(struct nand_chip *chip) +void nand_decode_ext_id(struct nand_chip *chip) { struct mtd_info *mtd = &chip->mtd; int extid, id_len; @@ -4286,6 +4286,7 @@ static void nand_decode_ext_id(struct nand_chip *chip) } } +EXPORT_SYMBOL_GPL(nand_decode_ext_id); /* * Manufacturer detection. Only used when the NAND is not ONFI or JEDEC diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index d8141cb4d1..8fb2a43296 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -1374,4 +1374,7 @@ int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, int nand_write_data_op(struct nand_chip *chip, const void *buf, unsigned int len, bool force_8bit); +/* Default extended ID decoding function */ +void nand_decode_ext_id(struct nand_chip *chip); + #endif /* __LINUX_MTD_RAWNAND_H */