From patchwork Thu Jul 14 14:02:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 2159 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3FCEA3F013 for ; Thu, 14 Jul 2022 16:02:33 +0200 (CEST) Received: by mail-wr1-f70.google.com with SMTP id l17-20020adfc791000000b0021dc7dc268dsf269962wrg.0 for ; Thu, 14 Jul 2022 07:02:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657807352; cv=pass; d=google.com; s=arc-20160816; b=NBT6QqMRgx1iUlArboDymG00fMhfLWDWcF2wCbatIv3kHXkk/PPv5gZcqhCJ7sYMqs f9bE0D3tLvQk204BzX/2LiYM4PjoDbLwb1/kQlSTRwPKu08TRCtuTU/7jt/yNJjgYbnq ZavRqXqKi/UHfQ2ygv2JpaLn69y2hF9KolqZFpjasoJJqD1BDW5yuh2AvrBmJvtLe5Cc d4mv1XUjAVwGWXbJDN2iaghHu954TW6DvX2HlUQQFOTAdLlLd4R/l2nyFS2IpYXENJWi CF8OZCWDjT5TDwi2pl4fP3h++jyAgx3QUGQQFWur5KlI4auc99xFlpV1WS+oemCj4wo4 TmCA== 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:to:from:dkim-signature; bh=pjsaOc5d3VSwvcEV367KBzy/ZYpzrfF+OATXAPBNDNo=; b=RCuV9LJN23RLwvKvkihKDTVNBBx9dQwn7e+BjiVYf8Bd+eMFG6+6cAVcFguVu0430n oW6oUyN9g4Fu5PqVTRaDiAqO0lkbp0kqMBtEBDgDQqq4m07FeLPlmF8F4jrNWWm0VblA OZRiy7Ji7Nz1lMzlHcTupd3rEcy5o5krD3lBFitsqUMK3LNuss8MQ9TBWvr5RDNcg3oj Xhr5CoR+HNGKi0kI1X6cXU6+s5GOhBzjG/RFGB7M16n94mq1tx2dYU3sbY6blWio3m74 0KJfFCMTCzd1BA6AmQ/wcOoDhR8GTOt1fhzvhZ9EpBr6ScQWfDZkYzyjupVKCZ9gfCv7 5uCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Xb5occ4N; 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: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=enMyDss37xgzwy5ZjZ2OfA8uBuVGycNvH9Dj0lJTunY6UdjCBGDPYipBk5lwNkPx+u 38UUrOS/Q2f6Qpew5YwTHXyE4KjnxsvSrByZpzCkjOm6OHQL5Dw/tost3PR+RUezp9yv z++CloORXBqopWhs4CUUoRAnsClac+kUBvJq4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to: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=tBa74fIsMU506lR8eCuYMNVQNrp9s8jG1t34w1frXxbi+UsdpTsUcBZKMxoIQQE4vf y9HsSbC3c8OJO2tjhn6t2QT1mYC+TAI0aFxVDt3zQFgHTm+EPQRjbY9TWKybxWlqYPPH LvKXTR2qh+4VtFj34JaKXQMY0hIZfBw4wWcelq2D9yTjXV6bO7M918e/UT1ES5ptaj1U eupux5Les6iQPsp8iFbaLGaWgF3coWLlE5vCnUzGKVge4WgKxBXMoaHqKCTFtfGUYQ9+ NvqxjNxAOt6dhVyBX2qDq3MWqIcg7KqaV3ffj7jOvV7Ir4T+YWHIUB8kTeiKeyPB1K6e UwHw== X-Gm-Message-State: AJIora93vain3PbDCC0mJfVV4cwXSO8pEZZKHPOCCdS6Qabc8o/BP7fj /qET8jWWc9uKu4qY1nyFDocL7pYh X-Google-Smtp-Source: AGRyM1vsYY3p1S8DDHnFlPoBP2H188APXd5XUcT035AhCiCyxbIocQDP7WxJzF/KNTLUREmlm27pJQ== X-Received: by 2002:adf:eed1:0:b0:21d:7052:278a with SMTP id a17-20020adfeed1000000b0021d7052278amr8741700wrp.170.1657807352594; Thu, 14 Jul 2022 07:02:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6000:1849:b0:21d:9b2c:2273 with SMTP id c9-20020a056000184900b0021d9b2c2273ls110006wri.1.gmail; Thu, 14 Jul 2022 07:02:31 -0700 (PDT) X-Received: by 2002:a05:6000:2aa:b0:21d:ac4f:587c with SMTP id l10-20020a05600002aa00b0021dac4f587cmr8598777wry.675.1657807351019; Thu, 14 Jul 2022 07:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657807351; cv=none; d=google.com; s=arc-20160816; b=eZKBa5dhfGRnlk7btY80AEZ0mdUSOuRMRu0rb7roooH5+WeD1eipUiwiStscchEo5E Ubc/+hSMV75yizKZiDOKf6RyBsxu0COksMs3nNb7smjoOJR4WoRzV/LD5phPAv4naUe3 AU7ypzUp8bRRLMV6oeF3RpCox/YNucaTG4l9ZxB+zeC2+jgjYTgu71TzBulBqAz9NuqG eW1KKr3iUJVUgDsM+ImFbVKZjWd6CQ8LRbvh5YnjOeo2QmBwahMsuhedcM0ySm6FCyHp 6bex1Huw3ivHgJroKu5ATPGdKR0+dljCciQ4muiox34MdWOsAi5/tvE7YMauw7tbKEWJ g1eQ== 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:to:from:dkim-signature; bh=GUpIdmojh0UYmi+/gUfiA+lJOYYykzTcKwI0/ILa5BA=; b=hakoBPbmIFhFcayvm+niQePAj2KM9pBo8/JeXMLA9SJEUCkbf0sog3WfUYCjB1KAzO XQZFk+fLeA+JlNT4uIUe7Ls3MfL8mbwZD1mso08zUAlKoZrGJ7XT1J8BCZveWy/3s0e7 sEMerSyMr0yIOYGNkGZ5sYq1mbLwC2O3qy73yQUF1LZFfUrlTZxYz84O5aGW/kCK1c6c u10FQs81XtruHqJAgy23d6kAD6IRnDqHAY7dCdpoutazhuUw1Ruj8xaZWfc+dC4Sx51N ZM3qB/YR6CcncGsVPf9cSbS+qbYyOOqYV0wzKMhpaWwRT5GWH/IwXNAjHrc9LdL5mxC4 PmXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Xb5occ4N; 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 n126-20020a1ca484000000b003a2ddce8dbbsor471263wme.26.2022.07.14.07.02.30 for (Google Transport Security); Thu, 14 Jul 2022 07:02:31 -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:a1c7:0:b0:3a2:f171:8d68 with SMTP id k190-20020a1ca1c7000000b003a2f1718d68mr9455508wme.111.1657807350270; Thu, 14 Jul 2022 07:02:30 -0700 (PDT) Received: from panicking.. ([2.198.242.86]) by smtp.gmail.com with ESMTPSA id k11-20020a7bc40b000000b0039c5cecf206sm2029114wmi.4.2022.07.14.07.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 07:02:29 -0700 (PDT) From: Michael Trimarchi To: linux-amarula@amarulasolutions.com, Dario Binacchi , Tommaso Merciai Subject: [PATCH 05/11] mtd: nand: Export symbol nand_decode_ext_id Date: Thu, 14 Jul 2022 16:02:09 +0200 Message-Id: <20220714140215.444993-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220714140215.444993-1-michael@amarulasolutions.com> References: <20220714140215.444993-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=Xb5occ4N; 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 */