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 CE842C43334 for ; Tue, 19 Jul 2022 20:23:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B43CC840CB; Tue, 19 Jul 2022 22:22:42 +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="WYt0FYCb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4830B8408A; Tue, 19 Jul 2022 22:22:34 +0200 (CEST) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 D8E538406A for ; Tue, 19 Jul 2022 22:22:31 +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=michael@amarulasolutions.com Received: by mail-ej1-x633.google.com with SMTP id bp15so29377944ejb.6 for ; Tue, 19 Jul 2022 13:22:31 -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=tzL7AyB0XeILW/PCBKskQxlxKXHZ7JUmzjPRVVYZCII=; b=WYt0FYCboZu85+5oJ7ulc+Lh6ELHGPqXVpkTXDThJSasy7kxIBIK5IWYwsh4/bqmwK DtVatMAM24G20ebdQfLFsDCe02oMwZ36lz2DkgowyFqS7zcY/0MA4UKPbK0k/6h7/D8l zcmVdPBZNTm2q/kP+vZRMiNyZ6voHwCecmMwA= 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=tzL7AyB0XeILW/PCBKskQxlxKXHZ7JUmzjPRVVYZCII=; b=hvB7TkzM5KFKHkNj3ERmjUxAEppxbZRcsnHtS4X5MhMy4ekMUq14IeW/uN6+3voR8P R79c1nF1uwvblSNSa8eEuDGG6RHklR0Dtea03FvlhtbZwIXtnkiygYjDK3XX6DkESgD8 y/3ENJeJiO19VFtCFLDU9nfL9Nx0TxpVG6unu5c8wolNgrlsw1ZQjk4or1CvSbmug6E/ Yd4rpfmq7D9KeYiTbsCciIfV4x8/VpGpPnrBTa4IlrCefNupqKomwb8hma4xqxH7TQDW rISvdF8tDMv8dYhQe8Pup7pZuhw1B0XLXUxpgVmHllN3Y+IM9ubsVSH2s1caFKsYBU9B qWTg== X-Gm-Message-State: AJIora8c2+OdSMKfzIOLeSlhYnArh+Ean4LOUgpQQ7Qir2VS1kcQNPWS jBmvJ3GbldpzxGgzWopMGRsHWvLJZAHZfgvb X-Google-Smtp-Source: AGRyM1s/MW2oBDLBMtsWiR5AKIFm7MwZzlJc766yvGfNf90Kn/wvBxxgXPxl7IxSalDKPc1OhYmEBg== X-Received: by 2002:a17:907:8a0e:b0:72b:9ca3:507 with SMTP id sc14-20020a1709078a0e00b0072b9ca30507mr32930310ejc.477.1658262150777; Tue, 19 Jul 2022 13:22:30 -0700 (PDT) Received: from panicking.amarulasolutions.com (mob-37-180-67-237.net.vodafone.it. [37.180.67.237]) by smtp.gmail.com with ESMTPSA id sa8-20020a170906eda800b00726dbb16b8dsm7003243ejb.65.2022.07.19.13.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 13:22:30 -0700 (PDT) From: Michael Trimarchi To: u-boot@lists.denx.de Cc: Dario Binacchi , Tommaso Merciai , Patrice Chotard , Wolfgang Denk , Miquel Raynal , =?UTF-8?q?Marek=20Beh=C3=BAn?= , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Kory Maincent , Simon Glass Subject: [PATCH V2 05/13] mtd: nand: Export symbol nand_decode_ext_id Date: Tue, 19 Jul 2022 22:21:55 +0200 Message-Id: <20220719202213.1753259-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220719202213.1753259-1-michael@amarulasolutions.com> References: <20220719202213.1753259-1-michael@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 In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi --- V1->V2: - no changes --- 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 */ -- 2.34.1