get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1745929/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1745929,
    "url": "http://patchwork.ozlabs.org/api/patches/1745929/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20230221201925.9644-51-pali@kernel.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20230221201925.9644-51-pali@kernel.org>",
    "list_archive_url": null,
    "date": "2023-02-21T20:19:16",
    "name": "[RFC,u-boot-mvebu,50/59] arm: mvebu: Add support for generating NAND kwbimage",
    "commit_ref": "67bd6158d49ffe62e610e2a2706720275dfe10cb",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "62836f6122c80f23ef138e4994551a1872267af1",
    "submitter": {
        "id": 78810,
        "url": "http://patchwork.ozlabs.org/api/people/78810/?format=api",
        "name": "Pali Rohár",
        "email": "pali@kernel.org"
    },
    "delegate": {
        "id": 1696,
        "url": "http://patchwork.ozlabs.org/api/users/1696/?format=api",
        "username": "stroese",
        "first_name": "Stefan",
        "last_name": "Roese",
        "email": "sr@denx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20230221201925.9644-51-pali@kernel.org/mbox/",
    "series": [
        {
            "id": 343058,
            "url": "http://patchwork.ozlabs.org/api/series/343058/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=343058",
            "date": "2023-02-21T20:18:27",
            "name": "arm: mvebu: Various fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/343058/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1745929/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1745929/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=a1dz/LR4;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"a1dz/LR4\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org",
            "phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (P-384))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4PLrxs0RWWz23j7\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Feb 2023 07:49:37 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 050A885AB9;\n\tTue, 21 Feb 2023 21:49:01 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 78286857C4; Tue, 21 Feb 2023 21:48:40 +0100 (CET)",
            "from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 91F3B85AC7\n for <u-boot@lists.denx.de>; Tue, 21 Feb 2023 21:22:42 +0100 (CET)",
            "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by ams.source.kernel.org (Postfix) with ESMTPS id 3C250B810CF;\n Tue, 21 Feb 2023 20:22:39 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id ACFC7C433EF;\n Tue, 21 Feb 2023 20:22:37 +0000 (UTC)",
            "by pali.im (Postfix)\n id AB537ADB; Tue, 21 Feb 2023 21:22:35 +0100 (CET)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,\n SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1677010958;\n bh=+kLLlRuQZRtkZQjev3QDpsRiYWm/US9Eg8Qy//RkOoU=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=a1dz/LR43vdB43EPiAPIQ2ncIp4QVWLsSGZE2dACKn94dZo/ocq+J6HG7kqORTcmu\n jPR62e0aihaDx+0LE0eDEuCvM9cnDrm9GZDg8KYVDaOVOSl1IhWfUu0EmJdHgt9Y1F\n 3QtaQc4sd861qc3yvnghxxJjcBu/s/9YPkH3d90+aEHCEumjbZOMPvpFyuaJ4uTOQQ\n TtDz17v1v23R/bvBfv6b2izEsjwIBRXFzYxoH0Zvt93dPumjkbgNWqNAhEcZQ489QU\n UQ7F8I3jeoJNLSK6Z8GGmJYCQy5V1e6V08o2/sgot2TAoRDls87NMwNrxpv+ikEUrV\n Tdti6sv2+lcAw==",
        "From": "=?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Stefan Roese <sr@denx.de>, Tony Dinh <mibodhi@gmail.com>,\n Josua Mayer <josua@solid-run.com>",
        "Subject": "[PATCH RFC u-boot-mvebu 50/59] arm: mvebu: Add support for generating\n NAND kwbimage",
        "Date": "Tue, 21 Feb 2023 21:19:16 +0100",
        "Message-Id": "<20230221201925.9644-51-pali@kernel.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20230221201925.9644-1-pali@kernel.org>",
        "References": "<20230221201925.9644-1-pali@kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.6 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Add a new Kconfig option CONFIG_MVEBU_SPL_BOOT_DEVICE_NAND which instruct\nmake to generate kwbimage with NAND header. This image is used for booting\nfrom NAND flash (either SPI or parallel).\n\nSupport is very simple, SPL after finishes DDR training returns back to the\nBootROM (via CONFIG_SPL_BOOTROM_SUPPORT option) and BootROM then loads and\nexecutes U-Boot proper.\n\nTo generate correct kwbimage NAND header, it is required to set following\nKconfig options:\n\nCONFIG_SYS_NAND_PAGE_SIZE\nCONFIG_SYS_NAND_BLOCK_SIZE\nCONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION\n\nThey are used only by make / mkimage when generating final kwbimage.\n\nCONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION is a new mvebu specific Kconfig\noption which is set into kwbimage NAND_BADBLK_LOCATION header field.\n\nSigned-off-by: Pali Rohár <pali@kernel.org>\n---\n arch/arm/mach-mvebu/Kconfig         | 13 +++++++++++++\n arch/arm/mach-mvebu/Makefile        | 10 ++++++++++\n arch/arm/mach-mvebu/kwbimage.cfg.in |  5 +++++\n drivers/mtd/nand/raw/Kconfig        |  4 +++-\n 4 files changed, 31 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig\nindex 2863babefbe3..5e9480aed291 100644\n--- a/arch/arm/mach-mvebu/Kconfig\n+++ b/arch/arm/mach-mvebu/Kconfig\n@@ -321,6 +321,11 @@ config MVEBU_SPL_BOOT_DEVICE_SPI\n \timply SPL_SPI\n \tselect SPL_BOOTROM_SUPPORT\n \n+config MVEBU_SPL_BOOT_DEVICE_NAND\n+\tbool \"NAND flash (SPI or parallel)\"\n+\tselect MTD_RAW_NAND\n+\tselect SPL_BOOTROM_SUPPORT\n+\n config MVEBU_SPL_BOOT_DEVICE_MMC\n \tbool \"SDIO/MMC card\"\n \timply ENV_IS_IN_MMC\n@@ -346,6 +351,14 @@ config MVEBU_SPL_BOOT_DEVICE_UART\n \n endchoice\n \n+config MVEBU_SPL_NAND_BADBLK_LOCATION\n+\thex \"NAND Bad block indicator location\"\n+\tdepends on MVEBU_SPL_BOOT_DEVICE_NAND\n+\trange 0x0 0x1\n+\thelp\n+\t  Value 0x0 = SLC flash = BBI at page 0 or page 1\n+\t  Value 0x1 = MLC flash = BBI at last page in the block\n+\n config MVEBU_EFUSE\n \tbool \"Enable eFuse support\"\n \tdepends on HAVE_MVEBU_EFUSE\ndiff --git a/arch/arm/mach-mvebu/Makefile b/arch/arm/mach-mvebu/Makefile\nindex a23511b113bb..4b7b9ff8b2f2 100644\n--- a/arch/arm/mach-mvebu/Makefile\n+++ b/arch/arm/mach-mvebu/Makefile\n@@ -50,6 +50,9 @@ KWB_REPLACE += BOOT_FROM\n ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI),)\n \tKWB_CFG_BOOT_FROM=spi\n endif\n+ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_NAND),)\n+\tKWB_CFG_BOOT_FROM=nand\n+endif\n ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC),)\n \tKWB_CFG_BOOT_FROM=sdio\n endif\n@@ -60,6 +63,13 @@ ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_UART),)\n \tKWB_CFG_BOOT_FROM=uart\n endif\n \n+ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_NAND),)\n+KWB_REPLACE += NAND_PAGE_SIZE NAND_BLKSZ NAND_BADBLK_LOCATION\n+KWB_CFG_NAND_PAGE_SIZE = $(CONFIG_SYS_NAND_PAGE_SIZE)\n+KWB_CFG_NAND_BLKSZ = $(CONFIG_SYS_NAND_BLOCK_SIZE)\n+KWB_CFG_NAND_BADBLK_LOCATION = $(CONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION)\n+endif\n+\n ifneq ($(CONFIG_SECURED_MODE_IMAGE),)\n KWB_REPLACE += CSK_INDEX\n KWB_CFG_CSK_INDEX = $(CONFIG_SECURED_MODE_CSK_INDEX)\ndiff --git a/arch/arm/mach-mvebu/kwbimage.cfg.in b/arch/arm/mach-mvebu/kwbimage.cfg.in\nindex ccb09975817e..90cf00c5b984 100644\n--- a/arch/arm/mach-mvebu/kwbimage.cfg.in\n+++ b/arch/arm/mach-mvebu/kwbimage.cfg.in\n@@ -11,6 +11,11 @@ VERSION\t\t1\n # Boot Media configurations\n #@BOOT_FROM\n \n+# NAND configuration\n+#@NAND_PAGE_SIZE\n+#@NAND_BLKSZ\n+#@NAND_BADBLK_LOCATION\n+\n # Enable BootROM output via DEBUG flag on SoCs which require it\n #@DEBUG\n \ndiff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig\nindex 8aaba8b1a2cf..8aaf135ab45d 100644\n--- a/drivers/mtd/nand/raw/Kconfig\n+++ b/drivers/mtd/nand/raw/Kconfig\n@@ -550,7 +550,8 @@ comment \"Generic NAND options\"\n \n config SYS_NAND_BLOCK_SIZE\n \thex \"NAND chip eraseblock size\"\n-\tdepends on ARCH_SUNXI || SPL_NAND_SUPPORT || TPL_NAND_SUPPORT\n+\tdepends on ARCH_SUNXI || SPL_NAND_SUPPORT || TPL_NAND_SUPPORT || \\\n+\t\tMVEBU_SPL_BOOT_DEVICE_NAND\n \tdepends on !NAND_MXS && !NAND_DENALI_DT && !NAND_LPC32XX_MLC && \\\n \t\t!NAND_FSL_IFC && !NAND_MT7621\n \thelp\n@@ -576,6 +577,7 @@ config SYS_NAND_PAGE_SIZE\n \thex \"NAND chip page size\"\n \tdepends on ARCH_SUNXI || NAND_OMAP_GPMC || NAND_LPC32XX_SLC || \\\n \t\tSPL_NAND_SIMPLE || (NAND_MXC && SPL_NAND_SUPPORT) || \\\n+\t\tMVEBU_SPL_BOOT_DEVICE_NAND || \\\n \t\t(NAND_ATMEL && SPL_NAND_SUPPORT) || SPL_GENERATE_ATMEL_PMECC_HEADER\n \tdepends on !NAND_MXS && !NAND_DENALI_DT && !NAND_LPC32XX_MLC && !NAND_MT7621\n \thelp\n",
    "prefixes": [
        "RFC",
        "u-boot-mvebu",
        "50/59"
    ]
}