From patchwork Thu Jul 14 07:51:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 2147 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B84143F013 for ; Thu, 14 Jul 2022 09:51:45 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id n8-20020a05640205c800b00434fb0c150csf960485edx.19 for ; Thu, 14 Jul 2022 00:51:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657785105; cv=pass; d=google.com; s=arc-20160816; b=L7ABFGeNZPReeGJZrDzw9T3n84HG4XAGvzNwUZ+9MkQW9rF/lkX9v+kCxteUgp7iFX skV0tykBNmvNGrWjlRfjd850zOn0ANAxydKqD5b+i96ssy+YQvmEK/zITTUJGoRGorhP EYDEs7uP6ORHgxbap1A1OThZv0XnYqn7MELosF/aV7qwkYabVe/5287Qx051LSPI5dtX eiVnfcQoVxmBc5upUnaZWsPTzB+QQ7ZKeJbjWAIXbpRuByZ32urlGQvza8JOXwI8FsDq +Jj8TBPrwZs3O8dAHsuGpcmG0wHjX89ITgH7BxVhoiZW086lxdaArwCmR9jxWNA7p6SI dzhA== 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=cYzKJjsY3u6TeHrlxCITAU4kuqViXCgubZkTJzQQFSo=; b=p0Zv39P5YkW48T4VRfU2G6ZHVFi2GqAE17RSwp28sefxfHMM7wkPUwc08KEdigN6o9 h2geE6AxPR09mI48Fw7TarhA81hd7XXwp0MBFsfolMDVCs0UTt3/MLmqsC0gY9l/yqML 7rDK8SGt+sXypt2S6kOHD4C0i5rnZEs2AW/BYIM1gALJfBud07wleRSUBeym9wi8hY3I YlFNs9q5AkIed3C1FIav2xaJDHgn17jAV+ApTeg45VTYl4wuTWrIu2nsn3Z9fKSn6BDT ONUNo5YjF4tpoleGoFnLwGBM/qMhzogASS5W0S1khCCNKAkSv8/Bj1m+WXvWbls6GqRZ RhaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rmdiUWnj; 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=cYzKJjsY3u6TeHrlxCITAU4kuqViXCgubZkTJzQQFSo=; b=UK8gguX1ytZ7O4BWPbs00Mxg+CaaVG7uXAH9S8ngiaE9IARSh/QfHKXjRpKWRaX5wA Cq3KRZgI3NyAA5wH4kn5TgFXXy7p7pE6ze4EgfLcum4Nm/4lurfGbDJ7ykmySoKRRe5F nNMesn3Wnvk0Tc4tGmAoeJbSxYuZNbHAyCcpw= 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=cYzKJjsY3u6TeHrlxCITAU4kuqViXCgubZkTJzQQFSo=; b=7FC+gCKvinpCDNnBIfOHvlfCSxWi0jCFvwz02MNurSHUwLYwqJU4DdHwD6xVUNnyVs +avfxJHChB7wPqnslpcEizkGG0N/EjBhIBf1gkew5KmOvjk9DF2Ko8BAaw72mgG7zoQB u+oz/RjYs5jabIsSpJmlm8ta8HA8++WCn/CjYhBcB7hmizvj7er65CC1H70/xcwpoGos YkUGTlr3bTaOxs0yGRZIWKql2Jp17saeINHjrmxyNETpHRNg8+yLttG6sTfLbR8by0r/ w1sORpTAY38QPwc7vwTQt0y2qsK1nDiAZQVifiL0CZbKsR44vwRz1u85HyaIE/4uEr+6 a7yg== X-Gm-Message-State: AJIora8dubMZ9X1uicCHNH53UFvBQ2rq2Rm34Eb8er26zofIrfV/afRd z9JVz8TdpHIQAB3aVy3/CWwdamdV X-Google-Smtp-Source: AGRyM1sYWP19/AHVZTF+xCUumGoSt9xvvab1fMdHyCS8pr1403GAX1+0uM3fMdndpu/jM1mR9lLr2g== X-Received: by 2002:a05:6402:2b88:b0:43a:6c58:6c64 with SMTP id fj8-20020a0564022b8800b0043a6c586c64mr10831810edb.348.1657785105590; Thu, 14 Jul 2022 00:51:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:34cc:b0:43a:d872:b6aa with SMTP id w12-20020a05640234cc00b0043ad872b6aals143516edc.0.gmail; Thu, 14 Jul 2022 00:51:44 -0700 (PDT) X-Received: by 2002:a05:6402:e85:b0:434:f9d9:3b18 with SMTP id h5-20020a0564020e8500b00434f9d93b18mr10828537eda.37.1657785104364; Thu, 14 Jul 2022 00:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657785104; cv=none; d=google.com; s=arc-20160816; b=P+fMbGyMDwwWsEowTu3IyB4Jw6yu0lQsbCPrynqCHJ4lBzmjSEGUPnjUlP1yWEsONu 6ecobbfl8iBmukS6tRtsIW5oq2h6v19ryNrXKqWMMhXxFCao35p9Fykq96kE9gZDGSis seIP9VzMlGQNIpu76ScQqqFTMUV6sswIwWwT5zIC9FECc79jM4GFiiuLCV+ERzZtIHEQ 1Hmh5hWwap8iKg8LssD1v7vfFhcH7Bn6NaDWeaiPV3BR5feI8Urcf9G940ogxDcesySp QTSHSI5Ca2yVx8pTdLATPXT2wwgwth4H5Z0JHRU4kKKOvRr1i7QDXm3SpQ/mcdJjaq43 pn6g== 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=Wpdt+COOKHXEpR+08DmOXQXCpR/U8hBWkNJWEsLZGVA=; b=nqNRhCuOBpM4u/unCSZl1XCq/puheOetQ8echeiCZTPXDyqHlTFVAX0XBXsNiewFNN PhlOne78fk6CL2kNXFR+NJbsgzCyMXVzAHNIq9aqDO7N8ax5hhZ4qY0WuYQneSw9/AUE ERFtt5Fd4RF0LMFFPl6qJY9scXtVXS4ovQy90ciCZYaIxjPLpuAh4TNnJ259VgTSdKHj Gsm8yDokf1qO+MPYsMwmLD+obrxyUcY63ZjldxZGTKw3OGBbtmgzQhXS9MKeXNxcIa6E zz8nFzsqpFZ6kcXLg9hJFH3n8qcp83ifGpb0ZZj5z6WJEl0QOLzoR/1V8Y8ZE2GozDr5 mISQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rmdiUWnj; 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 10-20020a170906058a00b007033fef81a4sor312486ejn.56.2022.07.14.00.51.44 for (Google Transport Security); Thu, 14 Jul 2022 00:51:44 -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:a17:907:2bde:b0:72b:4da0:6f3c with SMTP id gv30-20020a1709072bde00b0072b4da06f3cmr7289712ejc.623.1657785103706; Thu, 14 Jul 2022 00:51:43 -0700 (PDT) Received: from panicking.amarulasolutions.com ([2.198.242.86]) by smtp.gmail.com with ESMTPSA id r23-20020a170906a21700b0072b616ade26sm369252ejy.216.2022.07.14.00.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 00:51:43 -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 09:51:25 +0200 Message-Id: <20220714075131.411548-5-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220714075131.411548-1-michael@amarulasolutions.com> References: <20220714075131.411548-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=rmdiUWnj; 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 be1a6738c1..fa9ffb56fd 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -4152,7 +4152,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; @@ -4278,6 +4278,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 */