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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2A67C00140 for ; Sun, 21 Aug 2022 06:56:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D671F844D6; Sun, 21 Aug 2022 08:56:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="dEHXjAQu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B17C3845E7; Sun, 21 Aug 2022 08:56:42 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EA96E84233 for ; Sun, 21 Aug 2022 08:56:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661064995; bh=xjFWuapvwj+HA+oxFBvzFc0jVE1ZjD19/wNWh3gCUsg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=dEHXjAQui12yWaP6up5CwifItlku1+N6IKNnPn9BknLN5IKE9g3MBeM63HDLIv2an RSO5NS1P4ioJ2vwDGa9Zs6EPz6M8+8p393flmOWL4lBPXYtl6GWjkTcHwC9xmzSEpx kTRXcjalWDoppQxeOVQ4m3YEXGv/cipnmSZCcNJg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([84.118.157.2]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8QWA-1oU2bb1Juy-004SXz; Sun, 21 Aug 2022 08:56:35 +0200 Message-ID: <90889056-db03-9567-9db7-ad2ff6255c58@gmx.de> Date: Sun, 21 Aug 2022 08:56:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH 0/5] FWU: Add support for mtd backed feature on DeveloperBox To: jassisinghbrar@gmail.com Cc: ilias.apalodimas@linaro.org, takahiro.akashi@linaro.org, patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com, sjg@chromium.org, bmeng.cn@gmail.com, trini@konsulko.com, etienne.carriere@linaro.org, monstr@monstr.eu, Jassi Brar , u-boot@lists.denx.de, Sughosh Ganu , Masami Hiramatsu References: <20220714183913.118505-1-sughosh.ganu@linaro.org> <20220722174240.63935-1-jassisinghbrar@gmail.com> Content-Language: en-US From: Heinrich Schuchardt In-Reply-To: <20220722174240.63935-1-jassisinghbrar@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:iUnCyxMRa6u46hamsl6RUfR7qLqQsAY3l5w3G3QVG/CDhb4YP7P qAgiIX7V6SyNoI/D4IH0J64lUg+avrAavubKnIEDnQHa0qYZi5CnealGlvd8OKEKmiBHMYL q8rlsfCoHWrPA6FIUxPaxCZfKapfDw0HNaHqhs/6WcOwN9YXplHv/+7FNgprkMvase6KcAG AID5ku9JzZ14ozOusLiKQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:MDcqCqQRyl8=:MBrPbH//i124KaRnFLtgAF t7Wpo6SVJYUp0yjFtPBgks2aUh0JZS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OvdNjw/kTdQUwseDW99wqzr0aXNw4K4QmPRdNy7WCSKZcmPA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 7/22/22 19:42, jassisinghbrar@gmail.com wrote: > From: Jassi Brar > > The mtd and synquacer (developerbox) support was dropped from v6[1] > This patchset re-introduces the support over last v7[2] submission of th= e patchset. > > All the comments on this code over v5 submission have been addressed. Mo= ving forward > a changelog will be maintained. > > [1] https://lore.kernel.org/all/20220704051658.1085442-1-sughosh.ganu@li= naro.org/ > [2] https://lore.kernel.org/all/20220714183913.118505-1-sughosh.ganu@lin= aro.org/ This new feature deserves a test that can executed in Gitlab. Preferably we would test on the sandbox. But testing on QEMU using an emulated flash would be another option. Best regards Heinrich > > Jassi Brar (2): > dt: fwu: developerbox: enable fwu banks and mdata regions > fwu: DeveloperBox: add support for FWU > > Sughosh Ganu (3): > dt/bindings: Add bindings for FWU Metadata mtd storage > FWU: Add FWU metadata access driver for MTD storage regions > FWU: mtd: Add helper functions for accessing FWU metadata > > .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 +- > board/socionext/developerbox/Makefile | 1 + > board/socionext/developerbox/developerbox.c | 13 + > board/socionext/developerbox/fwu_plat.c | 95 ++++++ > configs/synquacer_developerbox_defconfig | 13 +- > doc/board/socionext/developerbox.rst | 96 ++++++ > .../firmware/fwu-mdata-mtd.yaml | 38 +++ > drivers/fwu-mdata/Kconfig | 8 + > drivers/fwu-mdata/Makefile | 1 + > drivers/fwu-mdata/fwu_mdata_mtd.c | 308 ++++++++++++++++++ > include/configs/synquacer.h | 10 + > lib/fwu_updates/Makefile | 1 + > lib/fwu_updates/fwu_mtd.c | 173 ++++++++++ > 13 files changed, 776 insertions(+), 3 deletions(-) > create mode 100644 board/socionext/developerbox/fwu_plat.c > create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-mtd.yam= l > create mode 100644 drivers/fwu-mdata/fwu_mdata_mtd.c > create mode 100644 lib/fwu_updates/fwu_mtd.c >