get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1191951,
    "url": "http://patchwork.ozlabs.org/api/patches/1191951/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20191108130123.6839-34-linux@rasmusvillemoes.dk/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20191108130123.6839-34-linux@rasmusvillemoes.dk>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20191108130123.6839-34-linux@rasmusvillemoes.dk/",
    "date": "2019-11-08T13:01:09",
    "name": "[v4,33/47] serial: ucc_uart: access __be32 field using be32_to_cpu",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "d37c036cc6f1e830b0763b75f3c6b1b1a8b8aec7",
    "submitter": {
        "id": 27394,
        "url": "http://patchwork.ozlabs.org/api/people/27394/?format=api",
        "name": "Rasmus Villemoes",
        "email": "linux@rasmusvillemoes.dk"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20191108130123.6839-34-linux@rasmusvillemoes.dk/mbox/",
    "series": [
        {
            "id": 141654,
            "url": "http://patchwork.ozlabs.org/api/series/141654/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=141654",
            "date": "2019-11-08T13:00:38",
            "name": "QUICC Engine support on ARM and ARM64",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/141654/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1191951/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1191951/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 478k7k0BT4z9s4Y\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  9 Nov 2019 02:04:18 +1100 (AEDT)",
            "from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 478k7h51RszF60T\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  9 Nov 2019 02:04:16 +1100 (AEDT)",
            "from mail-lj1-x243.google.com (mail-lj1-x243.google.com\n\t[IPv6:2a00:1450:4864:20::243])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 478gQs68Z6zF6qp\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat,  9 Nov 2019 00:02:13 +1100 (AEDT)",
            "by mail-lj1-x243.google.com with SMTP id q2so6132529ljg.7\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 08 Nov 2019 05:02:13 -0800 (PST)",
            "from prevas-ravi.prevas.se ([81.216.59.226])\n\tby smtp.gmail.com with ESMTPSA id\n\td28sm2454725lfn.33.2019.11.08.05.02.08\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 08 Nov 2019 05:02:09 -0800 (PST)"
        ],
        "Authentication-Results": [
            "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=rasmusvillemoes.dk",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk\n\theader.b=\"iVy3OBxW\"; dkim-atps=neutral",
            "lists.ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=rasmusvillemoes.dk (client-ip=2a00:1450:4864:20::243;\n\thelo=mail-lj1-x243.google.com; envelope-from=linux@rasmusvillemoes.dk;\n\treceiver=<UNKNOWN>)",
            "lists.ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=rasmusvillemoes.dk",
            "lists.ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk\n\theader.b=\"iVy3OBxW\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=rasmusvillemoes.dk; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=Rl5uwkPm7ODgb0mKXC73DMWhjRD0JTB3vFmrVrN5ZB0=;\n\tb=iVy3OBxWjNuefDddBNbhbl7Cs/NtWVdjCC/od1h2NY+gSnjfqrNC9xMyzWE6JCHadL\n\tmeWz1TdGa1kFUaFe1LBV/jM67MkOrHyRosHmDMbLKH/YlGIs4KIFUjA0IRlMr2sAmplm\n\tOZODn39ovzWFKJB/jcopkfA5Ou+HMW8/g56bE=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=Rl5uwkPm7ODgb0mKXC73DMWhjRD0JTB3vFmrVrN5ZB0=;\n\tb=GfsbRgmG1YRezqwZBLICM/JuOk31AI6h4oogqA4sP48O9iABKul0jQgEH+ZTXk2zex\n\tjyJfpDNCa1VfLgFPNqMfn0CD6BQGqhieP8dRVjqpHyL+1LgqKkpYQW141W7UdJWuK/IZ\n\t3EuFADosk4bLmarS6mchjzmel2oA8Bqwl+9CcAev09SVMxPaSmXI55/wejPy77n1ub7/\n\t8EjWSy/RnvXvPkxN0q/DJJvkdi3O6ntZiWV8Q/feqxe/zHftFfUMrGeSqL1KHGKy9qLp\n\tYqMGkVpJrXee7+ABcUk3mc4VyGTIo/D85ucqbsygz+aM0rSTAsQPITu7xBAaDqZwbLuH\n\t+Dmw==",
        "X-Gm-Message-State": "APjAAAWZybo0B9jjbf/+V4Y6iX/zmTyiTEedI1bhPCX2t1i9zgrRJgv6\n\tonBsEyw2bGRMwzuJv0j8kBxp9g==",
        "X-Google-Smtp-Source": "APXvYqzZa5jEsgyjO4bjCEsZXjRtgdus6spNSgtKC++GgbqHCKBa6/dHZb1FcDGJ/haiGgd6jr0bwA==",
        "X-Received": "by 2002:a05:651c:1124:: with SMTP id\n\te4mr6831944ljo.52.1573218130055; \n\tFri, 08 Nov 2019 05:02:10 -0800 (PST)",
        "From": "Rasmus Villemoes <linux@rasmusvillemoes.dk>",
        "To": "Qiang Zhao <qiang.zhao@nxp.com>, Li Yang <leoyang.li@nxp.com>,\n\tChristophe Leroy <christophe.leroy@c-s.fr>",
        "Subject": "[PATCH v4 33/47] serial: ucc_uart: access __be32 field using\n\tbe32_to_cpu",
        "Date": "Fri,  8 Nov 2019 14:01:09 +0100",
        "Message-Id": "<20191108130123.6839-34-linux@rasmusvillemoes.dk>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20191108130123.6839-1-linux@rasmusvillemoes.dk>",
        "References": "<20191108130123.6839-1-linux@rasmusvillemoes.dk>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "Rasmus Villemoes <linux@rasmusvillemoes.dk>, linux-kernel@vger.kernel.org,\n\tScott Wood <oss@buserror.net>, linux-serial@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "The buf member of struct qe_bd is a __be32, so to make this work on\nlittle-endian hosts, use be32_to_cpu when reading it.\n\nSigned-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>\n---\n drivers/tty/serial/ucc_uart.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c\nindex f5ea84928a3b..a5330582b610 100644\n--- a/drivers/tty/serial/ucc_uart.c\n+++ b/drivers/tty/serial/ucc_uart.c\n@@ -343,7 +343,7 @@ static int qe_uart_tx_pump(struct uart_qe_port *qe_port)\n \t\t/* Pick next descriptor and fill from buffer */\n \t\tbdp = qe_port->tx_cur;\n \n-\t\tp = qe2cpu_addr(bdp->buf, qe_port);\n+\t\tp = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);\n \n \t\t*p++ = port->x_char;\n \t\tqe_iowrite16be(1, &bdp->length);\n@@ -371,7 +371,7 @@ static int qe_uart_tx_pump(struct uart_qe_port *qe_port)\n \twhile (!(qe_ioread16be(&bdp->status) & BD_SC_READY) &&\n \t       (xmit->tail != xmit->head)) {\n \t\tcount = 0;\n-\t\tp = qe2cpu_addr(bdp->buf, qe_port);\n+\t\tp = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);\n \t\twhile (count < qe_port->tx_fifosize) {\n \t\t\t*p++ = xmit->buf[xmit->tail];\n \t\t\txmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);\n@@ -491,7 +491,7 @@ static void qe_uart_int_rx(struct uart_qe_port *qe_port)\n \t\t}\n \n \t\t/* get pointer */\n-\t\tcp = qe2cpu_addr(bdp->buf, qe_port);\n+\t\tcp = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);\n \n \t\t/* loop through the buffer */\n \t\twhile (i-- > 0) {\n",
    "prefixes": [
        "v4",
        "33/47"
    ]
}