From patchwork Wed Jul 20 16:22:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2206 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 296663F046 for ; Wed, 20 Jul 2022 18:22:41 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id h17-20020a056402281100b0043aa5c0493dsf12408106ede.16 for ; Wed, 20 Jul 2022 09:22:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658334161; cv=pass; d=google.com; s=arc-20160816; b=gNPoKUhbGF4Ze4ac0GS4u4pn3Ms9kdjONgs12RaqkT8qkfH7XUgzTImtSOEtKLUDFi llZZmwNXXW5pppzo/84KRtSczQCPIb4O5AAcqst4/5+9fly8W005BZpX8OvI5MqdLvhC u7lWprxQxU8ges0DMW+6KiQsgFbdjO19IhlVYeP0ajrSebJM9TvQfaqKgyyc4K2L8eWb uljvcov2qjn9twkysPD4r3+sPxpxqNXQYLLp1n+EyFBCL4bmVNgTSt8b1NRhVdBN65P+ NkaRUTy1Bx8TVzFRwdQpBXrCV5e2RpcxiGAGiQIw5t8oZt+V1GHSBpuU0Me0x3d5Ae2C uzkw== 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=P1it3JVXsMN+sgCK+1vaByG2poIVKGAjFaM2bDaNQfsiKP673ONMFy5wZJNh5H51nU frYp+5xKVMcfoJPWJr1P+ZCWcwA1yF3lgUTM4iDfu4fOiEAf0+m1UN5x9L3PvHLvHs73 kOi3qm0800lkK8xNVj79gOGKlhltzXtTLaYgVh8hST4QWcok620hiydRi9XRTQKiJR2d xMIEzz3nQydCzUX7JHiNgnvR2TXkbXg6U4nD8lR8INfMx36MHf1YPykmONPY8Ob8NtU/ FHWC41zTCmuYjlyQAT1sCTgWEFSCS9mFfu4st1UBf+72n2BMTgw9JDGB44ewHezCTuG+ yzNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hK9eVrh0; 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=WSDFHzsgPWO5npbBeTd4YA5skjWtytiUyb9LJlLP42OGfXUvIj4AAU3PMb8Y+XS6iZ RtlnqVPIGcSf+0LWGYlHIEheG1n/ftZoI6HWXphATpKMTN76eld73dM+hShzOQkoVONs BCzjeSzZX2TwZNRUgXiSJ/rhbkOKSM2x4eWyg= 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=4wGpugX0W7PqGvQNAwIwLoSAwvgc1/SvgGuMJpz/4MKiIBBawQQbIM0uPC3Adi1e/Q lI+Uc1akK7ic9xXnQra23xpzGRBx89HcTlxCKg6iKNTvpL0EgHIerqn+FdnsX2h34wEv iRLyxzTbHiMk1BMYGQ2cUPUPTtrOZkVlIRI4NJnNkvY79+BUDv7Xnp3Pc/KnKC2EhFzv 3vw0LGnRoFCgpKtuLiguu+f6prCGhsF4OCET6XDLncAPuPSVdah/wlQH1/O0gg6uISzj wCaam1CtS4qz5pPkakdoq417nNpL+AJknviD98If5MIi39P0CnXuMJe+4o1CikjL6h51 mNFQ== X-Gm-Message-State: AJIora9ymPmPByBV2QDsYY61Lmlzag3XNpa29woOXCwY4L5ssH/s1a/o 8P0sZJ6LowusGbN+2Yhlj/lH80So X-Google-Smtp-Source: AGRyM1uRNFlyVO0Lg+wGFKoV5mCM9V3mmFsM6lE1GzXob7tFteenn9XF4llkp9NoWQ4dtPebQ/t+tg== X-Received: by 2002:a05:6402:350b:b0:43a:e18e:dee6 with SMTP id b11-20020a056402350b00b0043ae18edee6mr51662737edd.31.1658334160914; Wed, 20 Jul 2022 09:22:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:b6c4:b0:72b:64f1:57ef with SMTP id ec4-20020a170906b6c400b0072b64f157efls377164ejb.6.-pod-prod-gmail; Wed, 20 Jul 2022 09:22:40 -0700 (PDT) X-Received: by 2002:a17:907:a40b:b0:72b:64e3:4c5e with SMTP id sg11-20020a170907a40b00b0072b64e34c5emr37433815ejc.612.1658334159812; Wed, 20 Jul 2022 09:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658334159; cv=none; d=google.com; s=arc-20160816; b=LSz27toc6sTIP8N0WxO8W+rniJ50DkrAxFVI/sXBBhrkU40yNexHQzMKat2bQM/DqK mFvJKE3GjtQpbTBuDBAqyuwbQkwo9xPuC8as4AuZdsP/leg1K98MYJMedZZmrf5vzL86 6qvklL/MibG2ZO29mdLioyOm1DChf/2J0Z/oABmdsEEbjyFnMzRqE1aUqoloibmpQtp3 IsGYJIBPud5hwF5f0Vdyl+TEnbuGsE9viyU+DbYlnFsUf5R2nvv4bpSPGdTPejdrXhXd cr8ZSKwITjz11lDzQY/ZaqEWf7Up+Q+ovgMd/jsVjQyx68HfDY4jMboqBhaYMNgZ6hQ8 rkVA== 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=Vtn3sqftmL7KtFsLeSw4zRHjDBFitPzKWz495Bw1RX1l4z13bhSiL23Kz8Nk0qt/9X fyBKt98jwMH45ATjkbmM4pDUrI09TyHSsJ0sUqZr2lGfteBvpRh3547mv6t7dnochR/9 WQwWyi1s1Zvqed69BVumAQ9UDsl4UZ1Octgy0hJeRM7gpTDlN/fAsWSltDURYVNg2NtW jfML2em7TUBwiRJXZL7Td2nbZOmm7J+FebW1Gb7Vy/HZNg+9csysBuFCvHErJHFDGL+i sSYnfNcfRMXRVxPC3mf0q+5YvQyADpBUJ5jrYOi2yncIkv8Tc2zC/fKoMv1NtPF6UV1M bjPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hK9eVrh0; 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 pw14-20020a17090720ae00b0070f34760164sor5997999ejb.14.2022.07.20.09.22.39 for (Google Transport Security); Wed, 20 Jul 2022 09:22:39 -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:a17:906:ef90:b0:72b:50d5:7383 with SMTP id ze16-20020a170906ef9000b0072b50d57383mr36684444ejb.485.1658334159579; Wed, 20 Jul 2022 09:22:39 -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 jl10-20020a17090775ca00b0072ed9efc9dfsm8057839ejc.48.2022.07.20.09.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 09:22:39 -0700 (PDT) From: Dario Binacchi To: michael@amarulasolutions.com Cc: Amarula patchwork , Dario Binacchi Subject: [PATCH v3 05/13] mtd: nand: Export symbol nand_decode_ext_id Date: Wed, 20 Jul 2022 18:22:08 +0200 Message-Id: <20220720162216.2397616-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220720162216.2397616-1-dario.binacchi@amarulasolutions.com> References: <20220720162216.2397616-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=hK9eVrh0; 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 */