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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E741EB64DC for ; Tue, 18 Jul 2023 09:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbjGRJTv (ORCPT ); Tue, 18 Jul 2023 05:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232292AbjGRJTZ (ORCPT ); Tue, 18 Jul 2023 05:19:25 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9B5B1BF1 for ; Tue, 18 Jul 2023 02:19:12 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id D9A16FF808; Tue, 18 Jul 2023 09:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689671951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rZ0tsLSHYDdinW0/0PSHBjblW1PDJmeicsu1MK6xsHo=; b=CT8zw+LeHEjAlkRmAO6trQ+Y7PgX95BBLggVkp1O2D5aq9mec4Qk7pQbOVriI1Cb2LQjUX xjoaWjTwcg77DLUFdNYpluZq0Te6uErtV5HqM7OnKeSIEX7YmUbswaA9rQ3rLDr39LNKl1 QYPvJ3dYYbG5mbUX5+yy17iflFTRXYa3acpg0hMwfnBpoThYuR8zDXD1acB+78jak4TKNM N5G/Vf2VolmNUjAldig0cTnt1C4wjik/A2A24vSQLOQCaUa5oiI2eY6MUjWrS9OfhNpeb6 ltkVvNeeqKACXJ61a3tTDYuArkmDgWBHfGXIwvhKsjHMPRO3jydabU1hn7F+hQ== Date: Tue, 18 Jul 2023 11:19:06 +0200 From: Miquel Raynal To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Srinivas Kandagatla , Richard Weinberger , Vignesh Raghavendra , Bartosz Golaszewski , Alban Bedel , Christian Marangi , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] Revert "nvmem: add new config option" Message-ID: <20230718111906.7a69c320@xps-13> In-Reply-To: <20230718084804.20139-1-zajec5@gmail.com> References: <20230718084804.20139-1-zajec5@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafa=C5=82, zajec5@gmail.com wrote on Tue, 18 Jul 2023 10:48:04 +0200: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > This reverts commit 517f14d9cf3533d5ab4fded195ab6f80a92e378f. >=20 > It seems that "no_of_node" config option was added to help mtd's case. >=20 > DT nodes of MTD partitions (that are also NVMEM devices) may contain > subnodes that SHOULD NOT be treated as NVMEM fixed cells. To prevent > NVMEM core code from parsing them "no_of_node" was set to true and that > made for_each_child_of_node() in NVMEM a no-op. >=20 > With the introduction of "add_legacy_fixed_of_cells" config option > things got more explicit. MTD subsystem simply tells NVMEM when to look > for fixed cells and there is no need to hack "of_node" pointer anymore. >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l