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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91CA3D49222 for ; Mon, 18 Nov 2024 13:40:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id BF6BCB65; Mon, 18 Nov 2024 14:40:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BF6BCB65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1731937214; bh=1dzIu+bDS3mEQECtESSifdxh9boBbAqXLDWb6o78W1w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=KU4/vSbuvL3m7GODebQn1CN5aE9zviGs7pZj4MgK1vdso7NbVzGutmu25+uuLxVri WplJqpTNXcU8coYihvMAcsLWE8GbB6ZLGcKsMETvJPT+fs5vdgao8yu6TLLsV3Cpzq 13hCBioZnLNsHdDVSrst5eMmV0/mBF0SRIAeTIew= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 48534F805B3; Mon, 18 Nov 2024 14:39:41 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CB6FDF80517; Mon, 18 Nov 2024 14:39:40 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2FF9FF8026D; Mon, 18 Nov 2024 14:39:37 +0100 (CET) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7151DF800BA for ; Mon, 18 Nov 2024 14:39:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7151DF800BA Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=kg3o6mNG Received: by mail.gandi.net (Postfix) with ESMTPSA id DB8351BF208; Mon, 18 Nov 2024 13:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731937174; 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=WKBfmWwe0K8YK6G59KsdbaDz2+vE4JtCifokD5Jr7zc=; b=kg3o6mNGQfhtXlBOIcFMtnFqK7OJJG4S/uA++2tR7IMdOehPRj+qTUkcxNKZsF0cG/F2tl 0ZgptP2PYC9FDYJwuWbteP+AZysqliZ5AjXxkJCmIgsRapeZgllNAdrIMyv9zvYXlwzrRx ZqV098zadeIDwrUDGNzQUrlE4xBplfMZD43XGUbtqou3is7C9EK0RaSZhQXtjbCbxLyl80 9aEGY3YDkivEu5QHWUCM9NWfy8H6dVznjYMubOhNE5+h3OOltp9KVebf4/O6lkzkqvisQ/ Ywr8UohM5O+ut7DpWgSA96aAkUNb0IorayZKgQZrcFnPpicVpPrZE1EBBPPBlg== From: Miquel Raynal To: Amit Kumar Mahapatra Cc: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH 2/2] dt-bindings: spi: Update stacked and parallel bindings In-Reply-To: <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> (Amit Kumar Mahapatra's message of "Sat, 26 Oct 2024 13:23:47 +0530") References: <20241026075347.580858-1-amit.kumar-mahapatra@amd.com> <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Mon, 18 Nov 2024 14:39:32 +0100 Message-ID: <87y11gwtij.fsf@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Message-ID-Hash: H2SZW2LORGHY4IYLU4RRKE2NUBVIDY4Q X-Message-ID-Hash: H2SZW2LORGHY4IYLU4RRKE2NUBVIDY4Q X-MailFrom: miquel.raynal@bootlin.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Amit, On 26/10/2024 at 13:23:47 +0530, Amit Kumar Mahapatra wrote: > For implementing the proposed solution the current 'stacked-memories' & > 'parallel-memories' bindings need to be updated as follow. > > stacked-memories binding changes: > - Each flash will have its own flash node. This approach allows flashes of > different makes and sizes to be stacked together, as each flash will be > probed individually. > - Each of the flash node will have its own =E2=80=9Creg=E2=80=9D property= that will contain > its physical CS. > - Remove the size information from the bindings as it can be retrived > drirectly from the flash. > - The stacked-memories DT bindings will contain the phandles of the flash > nodes connected in stacked mode. > > The new layer will update the mtd->size and other mtd_info parameters aft= er > both the flashes are probed and will call mtd_device_register with the > combined information. > > spi@0 { > ... > flash@0 { > compatible =3D "jedec,spi-nor" > reg =3D <0x00>; > stacked-memories =3D <&flash@0 &flash@1>; > spi-max-frequency =3D <50000000>; > ... > partitions { > compatible =3D "fixed-partitions"; > concat-partition =3D <&flash0_partition &= flash1_partition>; > flash0_partition: partition@0 { > label =3D "part0_0"; > reg =3D <0x0 0x800000>; > } > } > } > flash@1 { > compatible =3D "jedec,spi-nor" > reg =3D <0x01>; > stacked-memories =3D <&flash@0 &flash@1>; > spi-max-frequency =3D <50000000>; > ... > partitions { Same comment as before here. > compatible =3D "fixed-partitions"; > concat-partition =3D <&flash0_partition &= flash1_partition>; > flash1_partition: partition@0 { > label =3D "part0_1"; > reg =3D <0x0 0x800000>; > } > } > } > > } > > parallel-memories binding changes: > - Remove the size information from the bindings and change the type to > boolen. > - Each flash connected in parallel mode should be identical and will have > one flash node for both the flash devices. > - The =E2=80=9Creg=E2=80=9D prop will contain the physical CS number for = both the connected > flashes. > > The new layer will double the mtd-> size and register it with the mtd > layer. Not so sure about that, you'll need a new mtd device to capture the whole device. But this is implementation related, not relevant for binding. > > spi@1 { > ... > flash@3 { > compatible =3D "jedec,spi-nor" > reg =3D <0x00 0x01>; > paralle-memories ; Please fix the typos and the spacing (same above). > spi-max-frequency =3D <50000000>; > ... > partitions { > compatible =3D "fixed-partitions"; > flash0_partition: partition@0 { > label =3D "part0_0"; > reg =3D <0x0 0x800000>; > } > } > } > } > > Signed-off-by: Amit Kumar Mahapatra > --- > .../bindings/spi/spi-controller.yaml | 23 +++++++++++++++++-- > .../bindings/spi/spi-peripheral-props.yaml | 9 +++----- > 2 files changed, 24 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/= Documentation/devicetree/bindings/spi/spi-controller.yaml > index 093150c0cb87..2d300f98dd72 100644 > --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml > +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml > @@ -185,7 +185,26 @@ examples: > flash@2 { > compatible =3D "jedec,spi-nor"; > spi-max-frequency =3D <50000000>; > - reg =3D <2>, <3>; > - stacked-memories =3D /bits/ 64 <0x10000000 0x10000000>; > + reg =3D <2>; > + stacked-memories =3D <&flash0 &flash1>; > }; I'm sorry but this is not what you've talked about in this series. Either you have flash0 and flash1 and use the stacked-memories property in both of them (which is what you described) or you create a third virtual device which points to two other flashes. This example allows for an easier use of the partitions mechanism on top of a virtual mtd device but, heh, you're now describing a virtual mtd device, which is not a physical device as it "should" be. Thanks, Miqu=C3=A8l 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C2C8D49222 for ; Mon, 18 Nov 2024 13:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WKBfmWwe0K8YK6G59KsdbaDz2+vE4JtCifokD5Jr7zc=; b=mdt1zff2qxjCwrVfL2+4IWJwcA 5XoYYgKaftWCj8C0APklfXNNB9naoatkJhFpUztASii9E1EF/U9yzsfoLNvFZdnzHWk0zl0FSQ64R syImqseHD1DRWVkRkQeFnTnNj6PblXyLRAMwJAZ2RUtds2avadlajJAnh9DmPCBleJ6Hc8ekWgmCV fyLj5/mi2cYvxBjWP1b2QjN+s/8hM+NfFBhl5zFSenPJi3HRcYSK9P8PfXStTcuDELAsqGj/E+paf CP+1eeZAjfwTi3L3ZVnsCsFofP2DH5aVN0Kz2eQgRZVTJAoMUKRBP0BP+0PP0FIREzQa11wqBlqZk 3GETXn4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD1zm-00000009d5s-478u; Mon, 18 Nov 2024 13:40:50 +0000 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD1ya-00000009cgI-2LAc; Mon, 18 Nov 2024 13:39:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DB8351BF208; Mon, 18 Nov 2024 13:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731937174; 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=WKBfmWwe0K8YK6G59KsdbaDz2+vE4JtCifokD5Jr7zc=; b=kg3o6mNGQfhtXlBOIcFMtnFqK7OJJG4S/uA++2tR7IMdOehPRj+qTUkcxNKZsF0cG/F2tl 0ZgptP2PYC9FDYJwuWbteP+AZysqliZ5AjXxkJCmIgsRapeZgllNAdrIMyv9zvYXlwzrRx ZqV098zadeIDwrUDGNzQUrlE4xBplfMZD43XGUbtqou3is7C9EK0RaSZhQXtjbCbxLyl80 9aEGY3YDkivEu5QHWUCM9NWfy8H6dVznjYMubOhNE5+h3OOltp9KVebf4/O6lkzkqvisQ/ Ywr8UohM5O+ut7DpWgSA96aAkUNb0IorayZKgQZrcFnPpicVpPrZE1EBBPPBlg== From: Miquel Raynal To: Amit Kumar Mahapatra Subject: Re: [RFC PATCH 2/2] dt-bindings: spi: Update stacked and parallel bindings In-Reply-To: <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> (Amit Kumar Mahapatra's message of "Sat, 26 Oct 2024 13:23:47 +0530") References: <20241026075347.580858-1-amit.kumar-mahapatra@amd.com> <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Mon, 18 Nov 2024 14:39:32 +0100 Message-ID: <87y11gwtij.fsf@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_053936_867963_41B80B68 X-CRM114-Status: GOOD ( 23.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, vigneshr@ti.com, amitrkcian2002@gmail.com, linux-mtd@lists.infradead.org, claudiu.beznea@tuxon.dev, beanhuo@micron.com, git@amd.com, robh@kernel.org, richard@nod.at, tudor.ambarus@linaro.org, conor+dt@kernel.org, alsa-devel@alsa-project.org, broonie@kernel.org, venkatesh.abbarapu@amd.com, michal.simek@amd.com, linux-arm-kernel@lists.infradead.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, michael@walle.cc, krzk+dt@kernel.org, pratyush@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Amit, On 26/10/2024 at 13:23:47 +0530, Amit Kumar Mahapatra wrote: > For implementing the proposed solution the current 'stacked-memories' & > 'parallel-memories' bindings need to be updated as follow. > > stacked-memories binding changes: > - Each flash will have its own flash node. This approach allows flashes of > different makes and sizes to be stacked together, as each flash will be > probed individually. > - Each of the flash node will have its own =E2=80=9Creg=E2=80=9D property= that will contain > its physical CS. > - Remove the size information from the bindings as it can be retrived > drirectly from the flash. > - The stacked-memories DT bindings will contain the phandles of the flash > nodes connected in stacked mode. > > The new layer will update the mtd->size and other mtd_info parameters aft= er > both the flashes are probed and will call mtd_device_register with the > combined information. > > spi@0 { > ... > flash@0 { > compatible =3D "jedec,spi-nor" > reg =3D <0x00>; > stacked-memories =3D <&flash@0 &flash@1>; > spi-max-frequency =3D <50000000>; > ... > partitions { > compatible =3D "fixed-partitions"; > concat-partition =3D <&flash0_partition &= flash1_partition>; > flash0_partition: partition@0 { > label =3D "part0_0"; > reg =3D <0x0 0x800000>; > } > } > } > flash@1 { > compatible =3D "jedec,spi-nor" > reg =3D <0x01>; > stacked-memories =3D <&flash@0 &flash@1>; > spi-max-frequency =3D <50000000>; > ... > partitions { Same comment as before here. > compatible =3D "fixed-partitions"; > concat-partition =3D <&flash0_partition &= flash1_partition>; > flash1_partition: partition@0 { > label =3D "part0_1"; > reg =3D <0x0 0x800000>; > } > } > } > > } > > parallel-memories binding changes: > - Remove the size information from the bindings and change the type to > boolen. > - Each flash connected in parallel mode should be identical and will have > one flash node for both the flash devices. > - The =E2=80=9Creg=E2=80=9D prop will contain the physical CS number for = both the connected > flashes. > > The new layer will double the mtd-> size and register it with the mtd > layer. Not so sure about that, you'll need a new mtd device to capture the whole device. But this is implementation related, not relevant for binding. > > spi@1 { > ... > flash@3 { > compatible =3D "jedec,spi-nor" > reg =3D <0x00 0x01>; > paralle-memories ; Please fix the typos and the spacing (same above). > spi-max-frequency =3D <50000000>; > ... > partitions { > compatible =3D "fixed-partitions"; > flash0_partition: partition@0 { > label =3D "part0_0"; > reg =3D <0x0 0x800000>; > } > } > } > } > > Signed-off-by: Amit Kumar Mahapatra > --- > .../bindings/spi/spi-controller.yaml | 23 +++++++++++++++++-- > .../bindings/spi/spi-peripheral-props.yaml | 9 +++----- > 2 files changed, 24 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/= Documentation/devicetree/bindings/spi/spi-controller.yaml > index 093150c0cb87..2d300f98dd72 100644 > --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml > +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml > @@ -185,7 +185,26 @@ examples: > flash@2 { > compatible =3D "jedec,spi-nor"; > spi-max-frequency =3D <50000000>; > - reg =3D <2>, <3>; > - stacked-memories =3D /bits/ 64 <0x10000000 0x10000000>; > + reg =3D <2>; > + stacked-memories =3D <&flash0 &flash1>; > }; I'm sorry but this is not what you've talked about in this series. Either you have flash0 and flash1 and use the stacked-memories property in both of them (which is what you described) or you create a third virtual device which points to two other flashes. This example allows for an easier use of the partitions mechanism on top of a virtual mtd device but, heh, you're now describing a virtual mtd device, which is not a physical device as it "should" be. Thanks, Miqu=C3=A8l 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4870DD49222 for ; Mon, 18 Nov 2024 13:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zav485ZtzjoZrMQAkpCJTYDwonalwnSKhba+xhCLyr4=; b=kMlrZ8SBck6GsJ MlLLGG8R3xcmW0OtNh6wLuj0v/ofuGPXov3pIMC5kKDaqv9f5tvSNZgKsMfz4b0Jdnx8TMvSGTfeo 4FTUTQvXFfWQU0QoTwb/9ge1i1WpBn5Zuj5EDaBHh8I/Gdxe7CWT4ZAbPpahCz+bm7sR6NFk6MFMA kt10iKkchD/syrIXtX09L9mf+XvElDT/FGzCO8BU3OLdpRQfBj0tgLQvtiRjj2OEu8C3HaBodr35t MsA4kI9ARp5VjVNeAHQ/wMNxBx9Dblre2YSPgvYAgCgmhm35D/I25Fx3YVcUPjWx/mMld3KQJkZsj p1y5KGa9dHRKoKynfoZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD1zn-00000009d6C-2Fck; Mon, 18 Nov 2024 13:40:51 +0000 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD1ya-00000009cgI-2LAc; Mon, 18 Nov 2024 13:39:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DB8351BF208; Mon, 18 Nov 2024 13:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731937174; 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=WKBfmWwe0K8YK6G59KsdbaDz2+vE4JtCifokD5Jr7zc=; b=kg3o6mNGQfhtXlBOIcFMtnFqK7OJJG4S/uA++2tR7IMdOehPRj+qTUkcxNKZsF0cG/F2tl 0ZgptP2PYC9FDYJwuWbteP+AZysqliZ5AjXxkJCmIgsRapeZgllNAdrIMyv9zvYXlwzrRx ZqV098zadeIDwrUDGNzQUrlE4xBplfMZD43XGUbtqou3is7C9EK0RaSZhQXtjbCbxLyl80 9aEGY3YDkivEu5QHWUCM9NWfy8H6dVznjYMubOhNE5+h3OOltp9KVebf4/O6lkzkqvisQ/ Ywr8UohM5O+ut7DpWgSA96aAkUNb0IorayZKgQZrcFnPpicVpPrZE1EBBPPBlg== From: Miquel Raynal To: Amit Kumar Mahapatra Cc: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH 2/2] dt-bindings: spi: Update stacked and parallel bindings In-Reply-To: <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> (Amit Kumar Mahapatra's message of "Sat, 26 Oct 2024 13:23:47 +0530") References: <20241026075347.580858-1-amit.kumar-mahapatra@amd.com> <20241026075347.580858-3-amit.kumar-mahapatra@amd.com> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Mon, 18 Nov 2024 14:39:32 +0100 Message-ID: <87y11gwtij.fsf@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_053936_867963_41B80B68 X-CRM114-Status: GOOD ( 23.62 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org SGkgQW1pdCwKCk9uIDI2LzEwLzIwMjQgYXQgMTM6MjM6NDcgKzA1MzAsIEFtaXQgS3VtYXIgTWFo YXBhdHJhIDxhbWl0Lmt1bWFyLW1haGFwYXRyYUBhbWQuY29tPiB3cm90ZToKCj4gRm9yIGltcGxl bWVudGluZyB0aGUgcHJvcG9zZWQgc29sdXRpb24gdGhlIGN1cnJlbnQgJ3N0YWNrZWQtbWVtb3Jp ZXMnICYKPiAncGFyYWxsZWwtbWVtb3JpZXMnIGJpbmRpbmdzIG5lZWQgdG8gYmUgdXBkYXRlZCBh cyBmb2xsb3cuCj4KPiBzdGFja2VkLW1lbW9yaWVzIGJpbmRpbmcgY2hhbmdlczoKPiAtIEVhY2gg Zmxhc2ggd2lsbCBoYXZlIGl0cyBvd24gZmxhc2ggbm9kZS4gVGhpcyBhcHByb2FjaCBhbGxvd3Mg Zmxhc2hlcyBvZgo+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S1tYXgtZnJlcXVlbmN5ID0gPDUwMDAwMDAwPjsKPiAgICAgICAgICAgICAg ICAgLi4uCj4gICAgICAgICAgICAgICAgICAgICAgICAgcGFydGl0aW9ucyB7Cj4gICAgICAgICAg ICAgICAgICAgICAgICAgY29tcGF0aWJsZSA9ICJmaXhlZC1wYXJ0aXRpb25zIjsKPiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGNvbmNhdC1wYXJ0aXRpb24gPSA8JmZsYXNoMF9wYXJ0 aXRpb24gJmZsYXNoMV9wYXJ0aXRpb24+Owo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgZmxhc2gwX3BhcnRpdGlvbjogcGFydGl0aW9uQDAgewo+ICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBsYWJlbCA9ICJwYXJ0MF8wIjsKPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgcmVnID0gPDB4MCAweDgwMDAwMD47Cj4gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB9Cj4gICAgICAgICAgICAgICAgICAgICAgICAgfQo+ICAg ICAgICAgfQo+ICAgICAgICAgZmxhc2hAMSB7Cj4gICAgICAgICAgICAgICAgIGNvbXBhdGlibGUg PSAiamVkZWMsc3BpLW5vciIKPiAgICAgICAgICAgICAgICAgcmVnID0gPDB4MDE+Owo+ICAgICAg ICAgICAgICAgICBzdGFja2VkLW1lbW9yaWVzID0gPCZmbGFzaEAwICZmbGFzaEAxPjsKPiAgICAg ICAgICAgICAgICAgc3BpLW1heC1mcmVxdWVuY3kgPSA8NTAwMDAwMDA+Owo+ICAgICAgICAgICAg ICAgICAuLi4KPiAgICAgICAgICAgICAgICAgICAgICAgICBwYXJ0aXRpb25zIHsKClNhbWUgY29t bWVudCBhcyBiZWZvcmUgaGVyZS4KCj4gICAgICAgICAgICAgICAgICAgICAgICAgY29tcGF0aWJs ZSA9ICJmaXhlZC1wYXJ0aXRpb25zIjsKPi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VlZCBhIG5l dyBtdGQgZGV2aWNlIHRvIGNhcHR1cmUgdGhlCndob2xlIGRldmljZS4gQnV0IHRoaXMgaXMgaW1w bGVtZW50YXRpb24gcmVsYXRlZCwgbm90IHJlbGV2YW50IGZvcgpiaW5kaW5nLgoKPgo+IHNwaUAx IHsKPiAgICAgICAgIC4uLgo+ICAgICAgICAgZmxhc2hAMyB7Cj4gICAgICAgICAgICAgICAgIGNv bXBhdGlibGUgPSAiamVkZWMsc3BpLW5vciIKPiAgICAgICAgICAgICAgICAgcmVnID0gPDB4MDAg MHgwMT47Cj4gICAgICAgICAgICAgICAgIHBhcmFsbGUtbWVtb3JpZXMgOwoKUGxlYXNlIGZpeCB0 aGUgdHlwb3MgYW5kIHRoZSBzcGFjaW5nIChzYW1lIGFib3ZlKS4KCj4gICAgICAgICAgICAgICAg IHNwaS1tYXgtZnJlcXVlbmN5ID0gPDUwMDAwMDAwPjsKPiAgICAgICAgICAgICAgICAgLi4uCj4g ICAgICAgICAgICAgICAgICAgICAgICAgcGFydGl0aW9ucyB7Cj4gICAgICAgICAgICAgICAgICAg ICAgICAgY29tcGF0aWJsZSA9ICJmaXhlZC1wYXJ0aXRpb25zIjsKPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGZsYXNoMF9wYXJ0aXRpb246IHBhcnRpdGlvbkAwIHsKPiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWwgPSAicGFydDBfMCI7Cj4gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZyA9IDwweDAgMHg4MDAwMDA+ Owo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQo+ICAgICAgICAgICAgICAgICAg ICAgICAgIH0KPiAgICAgICAgIH0KPiB9Cj4KPiBTaWduZWQtb2ZmLWJ5OiBBbWl0IEt1bWFyIE1h aGFwYXRyYSA8YW1pdC5rdW1hci1tYWhhcGF0cmFAYW1kLmNvbT4KPiAtL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