From patchwork Thu Jul 21 06:44:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2220 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EE1C344190 for ; Thu, 21 Jul 2022 08:44:57 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id p2-20020a05600c1d8200b003a3262d9c51sf2378090wms.6 for ; Wed, 20 Jul 2022 23:44:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658385897; cv=pass; d=google.com; s=arc-20160816; b=m1XZ2prNp6PBLmZNv4mVzj1ubFdrZWOcUqcYwOISGpNk7DgJ7t6Js69QLI2r6duyPJ whp7XA+dMsxgAQUrx0LyfxKs4K0ipn7q7wQI6+utB7gn3q72SUMtndWChQs4TZaCxvNc PlqLXopPdBjA9Nqu7skUBZHMSflklk/vFeVFtSp1soJp1dMTVKkrSsbJjP4/aOySR7Va GfFS4V04wiqxwFUzGRvghFNzldVc8KXs7Lm3nE/d615YxeullGeixyD1n8i3mTeYcW5P CEVsfmztzm1Y+uNoUYQheX1a3+0uwhJNJvYH8KUCR+cFIrJm9+zLh6AbdGdWXilynKli KdPQ== 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=Mx4WhDoVE9eDaatrUeXtmIleNQy27p8J6+NyWVgG2ZE=; b=iVjCXcGXAemuf6I3ND6pt2E5dpk7QcwaQ91ZupKXlcd+xpbyFzBKNB4Jh8lkiiN841 VyZxnugXbFdDwheKfZ05Qhp6xERz7Owk5Rzv67Gym/JI0L+8jbH5++YbgdOn53dvPrbv 4MosKlZUL9/rfn5vb/Z6CLBMFA+BGOdoMDynSvIEkPZXYAteFV0PzwgO1H22syN3584m ExmXxW078Tjjjs0RLisZBkbLkmNA7w42Qab/f9XO2mt3xWdluWCOIPXz1pTlw4LgjipS YOBkgCn6qkRRDW8OTgVk5hZOQOA2WNzhatVMCQ9LrY0QLpGZ97JKQtJChloCgBlq3QWz fz+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=T92lpCrA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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=Mx4WhDoVE9eDaatrUeXtmIleNQy27p8J6+NyWVgG2ZE=; b=QfK9bwCgyNa2EXGv4O38Nk6RG+LLd60tkWUDkWiRxtm62LUBxOCDa2oKsChCe+Uws9 XO5GlQp9ycQngZOpLnDwoT9knjU5EgzPEpiWWds/MM6WxSk1765X3NIk7+2wVcDoIqP3 oWCnE5FZYbmYKh3CqfjztIFlEW3TKekqlJjqo= 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=Mx4WhDoVE9eDaatrUeXtmIleNQy27p8J6+NyWVgG2ZE=; b=17UoAS2rv4JaXh9j9Vy1hrtBWYRQfQCYozEYQBBXZUlGsXU0jeF2SfHkIvXRocYv3K 5l9o9T8E3yS+YDUcxtMfJbH4N/T7ar8i//PJFRe/+XcSPUz6O++LlUo3L48v6AuH8DD9 qyKD7ms0WLKZlR8jqF17F+HYvEgNkWKB93PeppphvIGgvUXjBhvdntHtf/apwk23YBHX yR7crptv1X8O7WHix77btq1bEuBzvHCoTbDzPHO2wisnvY5lWdmZVls2UtDy1XvsHj4t 8ZmrCmEgVAklK0DDRjJiQhbj7CXSwD6egOB2z+joUHfoDpzMVLaqlEb5BCccP3yqQHGh knLw== X-Gm-Message-State: AJIora8Ak2aFa77FEaPIbI4P8RdAaf7GwfRGu+Pp41UMeXzAEWDsno0Z jPCb6MCmz36GyIXH+nmnPXhisPp7 X-Google-Smtp-Source: AGRyM1tFbRaAvcb8xAI6Ff6pOUaCRmKvtCRsOGsEpsXmxRUFtp6JO8SdLnvUrw0HLo1JSnHDID/77Q== X-Received: by 2002:a5d:6d08:0:b0:21d:adba:1a65 with SMTP id e8-20020a5d6d08000000b0021dadba1a65mr33420496wrq.229.1658385897764; Wed, 20 Jul 2022 23:44:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:6547:0:b0:21d:668b:3503 with SMTP id z7-20020a5d6547000000b0021d668b3503ls243207wrv.2.-pod-prod-gmail; Wed, 20 Jul 2022 23:44:56 -0700 (PDT) X-Received: by 2002:a05:6000:144a:b0:21d:c50a:89dd with SMTP id v10-20020a056000144a00b0021dc50a89ddmr27621371wrx.608.1658385896657; Wed, 20 Jul 2022 23:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658385896; cv=none; d=google.com; s=arc-20160816; b=yQjgjhy7J98EhA4f0Jj2Rgf9snZRyY/EtmtHQOr1CihEK9Jq/lyX+6uAyIru6nvBmO drGXQBZndqxIMDwiSq1IufyHwsobt+jDjGlHRi2NlAXnZjUX9bJ7/kYeaPkrwD9EsV4G a4WB1UsCW+68Ri5+9dK0Gdt+ucXeWmOeO7z+2Rjo8fmFSzQDRLeYEq65nZqegMm+WlSS BuiQexx2R/ZzSqSXAYH+lvTCO6ciFHau+ewqP5D793hACaZ4dOtvk2+tBKWTs1XuPR7d cS6vwLsFmGsaYZLINAsBZEkGP1KU2jq6Js0DRLvH/7nmdPG5iHeW6AK/IMEHuDVUF9Qe vZHg== 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=PqkGaZHSNiv+wfu/yU2ktE6N+nN1VwOJ0uXBw8IizDw=; b=OxoVh2D2812MKzAE3PrvE+UHLLpYaVwJQytiDDTWbaHGQVrvylUXghKr5Wtp96p47H lcga9jjnuUOYUkGJr++fQRq1KalHCnaawqesZ/uMc0R74Ikv5RdmE/KHo1xkmaIEPrE4 u2ECI+J/6vgJkslxjMi7clgXXOY2VBGQge8NiI/jlHEFPGUD4pldLwuzr1il4nE8wOXP PZd3xgLRLXILtPpsKhMS/EDv9EkNCUiLlkqcDWols237QjC8+OrMVVo9RUuhu/wQZ6+o mbc4OmN9rnrN7CXxBbuDBYu0iQCkEJo9ziRBrlo94q2A1JWwROsKmLQ7F0Dnvghlrpwp y3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=T92lpCrA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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 x3-20020adfcc03000000b0021bbc8a65d1sor413872wrh.41.2022.07.20.23.44.56 for (Google Transport Security); Wed, 20 Jul 2022 23:44:56 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:595f:0:b0:21d:78fd:70d6 with SMTP id e31-20020a5d595f000000b0021d78fd70d6mr33123640wri.402.1658385896371; Wed, 20 Jul 2022 23:44:56 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (mob-5-90-140-42.net.vodafone.it. [5.90.140.42]) by smtp.gmail.com with ESMTPSA id c18-20020a056000105200b0021e4f446d43sm903711wrx.58.2022.07.20.23.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 23:44:55 -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 v3 05/13] mtd: nand: Export symbol nand_decode_ext_id Date: Thu, 21 Jul 2022 08:44:27 +0200 Message-Id: <20220721064435.2456601-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220721064435.2456601-1-dario.binacchi@amarulasolutions.com> References: <20220721064435.2456601-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=T92lpCrA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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: , 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 */