get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2215487,
    "url": "http://patchwork.ozlabs.org/api/patches/2215487/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260324170212.481394-2-tomas.alvarez-vanoli@hitachienergy.com/",
    "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": "<20260324170212.481394-2-tomas.alvarez-vanoli@hitachienergy.com>",
    "list_archive_url": null,
    "date": "2026-03-24T17:02:12",
    "name": "[1/1] spi: fsl_espi: fix din offset",
    "commit_ref": "7917c2e356042505c7dea469c358f07b6e424fa2",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "fa440da9c3a868ea7240be043562331019a51ea5",
    "submitter": {
        "id": 87680,
        "url": "http://patchwork.ozlabs.org/api/people/87680/?format=api",
        "name": "Tomas Alvarez Vanoli",
        "email": "tomas.alvarez-vanoli@hitachienergy.com"
    },
    "delegate": {
        "id": 151988,
        "url": "http://patchwork.ozlabs.org/api/users/151988/?format=api",
        "username": "festevam",
        "first_name": "Fabio",
        "last_name": "Estevam",
        "email": "festevam@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260324170212.481394-2-tomas.alvarez-vanoli@hitachienergy.com/mbox/",
    "series": [
        {
            "id": 497323,
            "url": "http://patchwork.ozlabs.org/api/series/497323/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497323",
            "date": "2026-03-24T17:02:11",
            "name": "spi: fsl_espi: fix din offset",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497323/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215487/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215487/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\tdkim=pass (1024-bit key;\n unprotected) header.d=hitachienergy.com header.i=@hitachienergy.com\n header.a=rsa-sha256 header.s=duo-1630306886989-947ac67a header.b=ppAXRF56;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=outbound.mailhop.org header.i=@outbound.mailhop.org\n header.a=rsa-sha256 header.s=dkim-high header.b=Y7pwTIrV;\n\tdkim-atps=neutral",
            "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=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=hitachienergy.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=hitachienergy.com header.i=@hitachienergy.com\n header.b=\"ppAXRF56\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=outbound.mailhop.org header.i=@outbound.mailhop.org\n header.b=\"Y7pwTIrV\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=hitachienergy.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=tomas.alvarez-vanoli@hitachienergy.com"
        ],
        "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgHmD5Gzcz1y1g\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 04:56:44 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DBFD883952;\n\tTue, 24 Mar 2026 18:56:28 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 41D3F838BB; Tue, 24 Mar 2026 18:02:41 +0100 (CET)",
            "from out-ip0052.fra.mailhop.org (out-ip0052.fra.mailhop.org\n [18.158.144.38])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 477BD80087\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 18:02:39 +0100 (CET)",
            "from HPG0000000331.corp.hitachi-powergrids.com (unknown\n [20.82.50.241]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA\n id 41a81992-27a3-11f1-be08-754228886235;\n Tue, 24 Mar 2026 17:02:36 +0000 (UTC)",
            "from gitsiv.hitachienergy.com (unknown [10.54.139.14])\n by HPG0000000331.corp.hitachi-powergrids.com (Postfix) with ESMTP id\n DDF0C4043;\n Tue, 24 Mar 2026 17:02:35 +0000 (UTC)",
            "from chbrn3-p-dev026.keymile.net (chbrn3-p-dev026.keymile.net\n [172.31.41.203])\n by gitsiv.hitachienergy.com (Postfix) with ESMTP id BC35F60B7D47;\n Tue, 24 Mar 2026 18:02: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_MED,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=hitachienergy.com; s=duo-1630306886989-947ac67a;\n h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date:\n subject:cc:to:from:cfbl-address:cfbl-feedback-id:from;\n bh=lq7PZ9mIFMKaa6yvhGmpugAS/9LWugxDF/81Wc2hUmI=;\n b=ppAXRF56gzZxAvNideIw7f7na08TfiyGSSEs2ZBYUrYgqME/hN35tBkCBrR4ffoXKaYVK6iNJ7V/2\n 6RQUkxX++nVFqbyJyaOUoG7SA1Yq8C33/Hr8oNYOvDgUk/Xk0INhh+JHvpK907tvPIUMtPxJ5OS/QZ\n hE3SS4OlEjTJ3CzM=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=outbound.mailhop.org; s=dkim-high;\n h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date:\n subject:cc:to:from:cfbl-address:cfbl-feedback-id:from;\n bh=lq7PZ9mIFMKaa6yvhGmpugAS/9LWugxDF/81Wc2hUmI=;\n b=Y7pwTIrVXnYav1bdw3um3ZsMJW8PIxv5hdZxTU83jHTx/iQOHrzSHannGlG3/MLkOvblAQSgi1+9G\n PveTQ6K1CAh+jqCgrkEc8f4ycT9Dz8b+sllzn0THzNPtZTHlAreGBX2om7J/+eeeDiutFUSbi2whaJ\n seCsryy1kFohdroP8diwuhdvVWdV2qkiRz8/46IPMkEt4fRaGOdePeLlZV2Kb9JTqcuXLzZJxbQpwo\n zu8F9jqajT7mhisotoGGphWH1tBbA8+PFzEN2FpdyRfYUZgzgK2ak9wsX8MRCD9dXP4VeLa7mfU/6l\n 4CkF+MiZBHt4hKrHnuT2tR+1Y3zBt1g=="
        ],
        "X-Originating-IP": "20.82.50.241",
        "X-MHO-RoutePath": "aGVkY3NtdHA=",
        "X-MHO-User": "41a81992-27a3-11f1-be08-754228886235",
        "X-Report-Abuse-To": "\n https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information",
        "X-Mail-Handler": "DuoCircle Outbound SMTP",
        "CFBL-Feedback-ID": "41a81992-27a3-11f1-be08-754228886235:5",
        "CFBL-Address": "prvs=0543124a45=abuse@outbound.mailhop.org; report=arf",
        "From": "Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "trini@konsulko.com, chuanhua.han@nxp.com,\n Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>",
        "Subject": "[PATCH 1/1] spi: fsl_espi: fix din offset",
        "Date": "Tue, 24 Mar 2026 18:02:12 +0100",
        "Message-ID": "<20260324170212.481394-2-tomas.alvarez-vanoli@hitachienergy.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260324170212.481394-1-tomas.alvarez-vanoli@hitachienergy.com>",
        "References": "<20260324170212.481394-1-tomas.alvarez-vanoli@hitachienergy.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Tue, 24 Mar 2026 18:56:27 +0100",
        "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.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "In the case of SPI_XFER_BEGIN | SPI_XFER_END, the function creates a\nbuffer of double the size of the transaction, so that it can write the\ndata in into the second half. It sets the rx_offset to len, and in the\nwhile loop we are setting an internal \"din\" to buffer + rx_offset.\n\nHowever, at the end of each loop, the driver copies \"buffer + 2 *\ncmd_len\" back to the data_in pointer.\n\nThis commit changes the source of the data to buffer + rx_offset.\n\nSigned-off-by: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>\n---\n drivers/spi/fsl_espi.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c\nindex 7ed35aa3e66..117e36376b7 100644\n--- a/drivers/spi/fsl_espi.c\n+++ b/drivers/spi/fsl_espi.c\n@@ -275,7 +275,7 @@ int espi_xfer(struct fsl_spi_slave *fsl,  uint cs, unsigned int bitlen,\n \t\t\t}\n \t\t}\n \t\tif (data_in) {\n-\t\t\tmemcpy(data_in, buffer + 2 * cmd_len, tran_len);\n+\t\t\tmemcpy(data_in, buffer + rx_offset, tran_len);\n \t\t\tif (*buffer == 0x0b) {\n \t\t\t\tdata_in += tran_len;\n \t\t\t\tdata_len -= tran_len;\n",
    "prefixes": [
        "1/1"
    ]
}