get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813226,
    "url": "http://patchwork.ozlabs.org/api/patches/813226/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1505292990-22957-2-git-send-email-yamada.masahiro@socionext.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1505292990-22957-2-git-send-email-yamada.masahiro@socionext.com>",
    "list_archive_url": null,
    "date": "2017-09-13T08:56:28",
    "name": "[v5,1/3] irqdomain: export of_phandle_args_to_fwspec",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "029c65037ae3e8b4fd8cfb9597582aa79b4575cd",
    "submitter": {
        "id": 65882,
        "url": "http://patchwork.ozlabs.org/api/people/65882/?format=api",
        "name": "Masahiro Yamada",
        "email": "yamada.masahiro@socionext.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1505292990-22957-2-git-send-email-yamada.masahiro@socionext.com/mbox/",
    "series": [
        {
            "id": 2840,
            "url": "http://patchwork.ozlabs.org/api/series/2840/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=2840",
            "date": "2017-09-13T08:56:28",
            "name": "gpio: uniphier: UniPhier GPIO driver",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/2840/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813226/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813226/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-gpio-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-gpio-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nifty.com header.i=@nifty.com\n\theader.b=\"tNqCiR+k\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsbCm2vLGz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 18:57:56 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751529AbdIMI5z (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 13 Sep 2017 04:57:55 -0400",
            "from conuserg-09.nifty.com ([210.131.2.76]:63482 \"EHLO\n\tconuserg-09.nifty.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751509AbdIMI5y (ORCPT\n\t<rfc822; linux-gpio@vger.kernel.org>); Wed, 13 Sep 2017 04:57:54 -0400",
            "from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp\n\t[153.142.97.92]) (authenticated)\n\tby conuserg-09.nifty.com with ESMTP id v8D8ugqj027391;\n\tWed, 13 Sep 2017 17:56:44 +0900"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v8D8ugqj027391",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com;\n\ts=dec2015msa; t=1505293004;\n\tbh=K71TLI2/P3W5pwWNaeGBWb/aEFj77mq1rVvWPb8V2yc=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=tNqCiR+k1LS9sStTgVnfvEBXEfxYZ/xYBrL4uhmK/vlUIg82j2S9V2jh+ad5EqNWc\n\totvvHP8Sz/kIfVFIz9tp+VE7r46iQKmZMbN3n/WGAc2+mGbKejOmkbSMzDWV1Qw05B\n\twZKF71hCm62mmcvo/yzKV3qfv6JDYR4JhFbSohq3ens8rihj+Sb8ZX7Ip/jHEQMi56\n\t4Rr6wyOXDx89JzEjq1eNJ3WEzvztakrZkRx4WB5+rXawdhjtJtLVNFSDMzl2C9KTi6\n\tylIr1QOnPgPdfxOKRYBloYdlAkTfg+KtUUAmLrurQuN5MGJl/XZut7OR2Cgm5iXMIP\n\tkiuinI0BGzgNA==",
        "X-Nifty-SrcIP": "[153.142.97.92]",
        "From": "Masahiro Yamada <yamada.masahiro@socionext.com>",
        "To": "Marc Zyngier <marc.zyngier@arm.com>, linux-gpio@vger.kernel.org",
        "Cc": "Thomas Gleixner <tglx@linutronix.de>,\n\tJason Cooper <jason@lakedaemon.net>, Rob Herring <robh@kernel.org>,\n\tLinus Walleij <linus.walleij@linaro.org>,\n\tDavid Daney <david.daney@cavium.com>,\n\tMasami Hiramatsu <mhiramat@kernel.org>,\n\tJassi Brar <jaswinder.singh@linaro.org>,\n\tMasahiro Yamada <yamada.masahiro@socionext.com>,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH v5 1/3] irqdomain: export of_phandle_args_to_fwspec",
        "Date": "Wed, 13 Sep 2017 17:56:28 +0900",
        "Message-Id": "<1505292990-22957-2-git-send-email-yamada.masahiro@socionext.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1505292990-22957-1-git-send-email-yamada.masahiro@socionext.com>",
        "References": "<1505292990-22957-1-git-send-email-yamada.masahiro@socionext.com>",
        "Sender": "linux-gpio-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-gpio.vger.kernel.org>",
        "X-Mailing-List": "linux-gpio@vger.kernel.org"
    },
    "content": "This helper will be useful for irqchip drivers that need to convert\nDT binding into IRQ fwspec.\n\nSigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>\n---\n\nThis patch is necessary for my GPIO driver.\nSince it is trivial enough, I hope Marc will allow this to go\nthough the GPIO subsystem.\n\nIf this patch is rejected, I can copy this function into my GPIO\ndriver, but I'd like to avoid code duplication.\n\n\n include/linux/irqdomain.h | 2 ++\n kernel/irq/irqdomain.c    | 5 +++--\n 2 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h\nindex 81e4889..440772c 100644\n--- a/include/linux/irqdomain.h\n+++ b/include/linux/irqdomain.h\n@@ -259,6 +259,8 @@ extern void irq_set_default_host(struct irq_domain *host);\n extern int irq_domain_alloc_descs(int virq, unsigned int nr_irqs,\n \t\t\t\t  irq_hw_number_t hwirq, int node,\n \t\t\t\t  const struct cpumask *affinity);\n+extern void of_phandle_args_to_fwspec(struct of_phandle_args *irq_data,\n+\t\t\t\t      struct irq_fwspec *fwspec);\n \n static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)\n {\ndiff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c\nindex e84b705..e34cd63 100644\n--- a/kernel/irq/irqdomain.c\n+++ b/kernel/irq/irqdomain.c\n@@ -727,8 +727,8 @@ static int irq_domain_translate(struct irq_domain *d,\n \treturn 0;\n }\n \n-static void of_phandle_args_to_fwspec(struct of_phandle_args *irq_data,\n-\t\t\t\t      struct irq_fwspec *fwspec)\n+void of_phandle_args_to_fwspec(struct of_phandle_args *irq_data,\n+\t\t\t       struct irq_fwspec *fwspec)\n {\n \tint i;\n \n@@ -738,6 +738,7 @@ static void of_phandle_args_to_fwspec(struct of_phandle_args *irq_data,\n \tfor (i = 0; i < irq_data->args_count; i++)\n \t\tfwspec->param[i] = irq_data->args[i];\n }\n+EXPORT_SYMBOL_GPL(of_phandle_args_to_fwspec);\n \n unsigned int irq_create_fwspec_mapping(struct irq_fwspec *fwspec)\n {\n",
    "prefixes": [
        "v5",
        "1/3"
    ]
}