Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2869299pxb; Tue, 19 Jan 2021 08:03:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdO7QP2dFBzAbEDyZvy9YRFZFd+LuUIX8Owrv+0vJdPe5erPx5VVLXtok2/HSI33onGIi7 X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr3850816edc.323.1611072181242; Tue, 19 Jan 2021 08:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611072181; cv=none; d=google.com; s=arc-20160816; b=vG26SaXlLdsdGRh2FVYfA8T2FE4dD1E0v+YDN9iOfd4HJ+RJvrkCz+yKl1al7gPPXY waYqlnL8k48u4laW8CYwy8WvRqKE5qfstGZoFuT3jy9GKJnL+40dntIT5eGoaJO7NHEh H5Rzb1SwA/humTD9J+mCHEKL6uNWTFyIVF+o/ltyO7UZS/vcca1EAbVtJ3qIYQqjU+Ib SSwxEWxi9oDz62g+hJ2O4zOFXEKJXgs9+52PVOe3QJ+SfEt2oqDRr+roXN1uOR+hoOj9 sS8EsSBJBdEdlwE9W/waVVEVpFA4+T1xEKoKN0/KRh053KWpTr1c1oxoBSPqEZ/ibw/Q x+Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=W6I8k3XTz6RxF/9/lJbgR/eV7WSUsUayGc3V8E9M1pI=; b=GIhJaVfjDBI6yZUYLbo4yZZnwf0rzN/RuYG+BlY6Pwv0yRFdPdJqmlR7Wxlb6KfLtz KJAiy1MHsoMVsi6Z9jZhVx6LaJ6xfPJW5zns9Vkw8kIkLK1INflkb8ZOVHLxU4v+x+FB yRG2JfEl1ELL+9mlbHfyH/YNuJVYkwKVwksuBTwvo9YeP9mGKO9ntE1TpgfzbAyjlDhe L+X33re4+azStTLHPfRBBoz8f5h6/TnHApt/AyOTWesnJ8zxZSubADQaOcUqpFVZrSuf KF49Fc8J6FFffcRd630tchFuE5oUKnjC1TBvoq1MPaHYdhphEOBaXLGUB0KT59wvkW7T u7EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si3574972eds.375.2021.01.19.08.02.19; Tue, 19 Jan 2021 08:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389864AbhASP6b convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Jan 2021 10:58:31 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:43137 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391409AbhASPwq (ORCPT ); Tue, 19 Jan 2021 10:52:46 -0500 X-Originating-IP: 86.201.233.230 Received: from xps13 (lfbn-tou-1-151-230.w86-201.abo.wanadoo.fr [86.201.233.230]) (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 265F4C0008; Tue, 19 Jan 2021 15:51:39 +0000 (UTC) Date: Tue, 19 Jan 2021 16:51:38 +0100 From: Miquel Raynal To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger Cc: Vignesh Raghavendra , Rob Herring , Boris Brezillon , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?B?UmFm?= =?UTF-8?B?YcWCIE1pxYJlY2tp?= Subject: Re: [PATCH 3/3] mtd: parsers: ofpart: support BCM4908 fixed partitions Message-ID: <20210119165138.4982ae46@xps13> In-Reply-To: <20210115153901.31052-3-zajec5@gmail.com> References: <20210115153901.31052-1-zajec5@gmail.com> <20210115153901.31052-3-zajec5@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafał, Rafał Miłecki wrote on Fri, 15 Jan 2021 16:39:01 +0100: > From: Rafał Miłecki > > BCM4908 partitioning is based on fixed layout but allows specifying > multiple firmware partitions. It requires detecting which firmware > partition was used for booting current kernel. > > To support such cases without duplicating a lot of code (without copying > most of the ofpart.c code) support for post-parsing callback was added. > > BCM4908 callback simply reads offset of currently used firmware > partition from the DT. Bootloader specifies it using the "brcm_blparms" > property. > > Signed-off-by: Rafał Miłecki The approach looks fine by me, let's see what other maintainers think. Cheers, Miquèl