From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 916E0C433EF for ; Fri, 22 Jul 2022 16:12:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD6FC84148; Fri, 22 Jul 2022 18:11:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="JCpHs0nO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 180278412C; Fri, 22 Jul 2022 18:11:24 +0200 (CEST) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C67EA84148 for ; Fri, 22 Jul 2022 18:11:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ej1-x62e.google.com with SMTP id sz17so9367715ejc.9 for ; Fri, 22 Jul 2022 09:11:14 -0700 (PDT) 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:content-transfer-encoding; bh=PqkGaZHSNiv+wfu/yU2ktE6N+nN1VwOJ0uXBw8IizDw=; b=JCpHs0nOGqpUGgYQdy+zORHHZbtINYrb9IqccsQJfXznsaao3DB2n6j03fe95z+QQd GP+5392a02r2z2fChQnUqjqIe58DWLNPVBM803vwL3cdeGbqctlcH+7WPwxXOG84B4Uk lujaFd+yL7lNb/UTvMbDg2ArsKgjB5bL7L7Ms= 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:content-transfer-encoding; bh=PqkGaZHSNiv+wfu/yU2ktE6N+nN1VwOJ0uXBw8IizDw=; b=L0m8duSgT0coxec/4EvRiK4hjhtgMx4I/yxgXdZ9COOU2pPFT+bu0rdue01ZDviKq2 1Hwp2OzWMZQ0EFTLgg89mwWTAQfIxdWbrlPP9gKnnkJHxcNuvjmNW9wQqYFE3qql6Ctn VsNZRM1t5T394P+7ov9KfTrS+07bVAfdmlnqLtNsfd/Ng0M/RNxICc5MNDrpE9WThMG3 T+jky5Qy0fSyGlBmXG6uprUAbhhXZzZgTavC+ogE9vMqbI79151I3xSQgd+qIHMQM9SA LENIoPf6HbyZZSiCOkpKlg0SC4nyW6ld9rwBKC/eG0P4nZiPocz7j4MXIrnHRkzm4VY+ ceqQ== X-Gm-Message-State: AJIora+M5719YwnksrTrfON/Hw/b1FFxeFZUIy8/ebFlQqfu7mmr1kIu hIkRIcpvmRdGdUM5Z07mj32bQq/Hi5qRoQ== X-Google-Smtp-Source: AGRyM1u2P4wdvQAsGbzIZ8IP5UubHFjoJhGa5DTDV8gcJIFt8+d6GQ/MEdNGIQ2Wr0tkQHcmqhh0iw== X-Received: by 2002:a17:906:9751:b0:72f:1b36:e1de with SMTP id o17-20020a170906975100b0072f1b36e1demr479298ejy.451.1658506274266; Fri, 22 Jul 2022 09:11:14 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-87-14-98-67.retail.telecomitalia.it. [87.14.98.67]) by smtp.gmail.com with ESMTPSA id d19-20020a170906305300b006fe8ac6bc69sm2174025ejd.140.2022.07.22.09.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 09:11:13 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Patrice Chotard , Simon Glass , Wolfgang Denk Subject: [PATCH v4 06/14] mtd: nand: Export symbol nand_decode_ext_id Date: Fri, 22 Jul 2022 18:10:00 +0200 Message-Id: <20220722161009.2686504-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220722161009.2686504-1-dario.binacchi@amarulasolutions.com> References: <20220722161009.2686504-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Michael Trimarchi In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) 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 145de22be852..174c760f3416 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 d8141cb4d114..8fb2a43296f5 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 */ -- 2.32.0