get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1839955,
    "url": "http://patchwork.ozlabs.org/api/patches/1839955/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org/",
    "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": "<20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org>",
    "list_archive_url": null,
    "date": "2023-09-26T21:48:12",
    "name": "[v2,2/3] dt-bindings: leds: Mention GPIO triggers",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a8399c79ed723bf03eb75720c1e6bbe626f6c66f",
    "submitter": {
        "id": 7055,
        "url": "http://patchwork.ozlabs.org/api/people/7055/?format=api",
        "name": "Linus Walleij",
        "email": "linus.walleij@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org/mbox/",
    "series": [
        {
            "id": 375009,
            "url": "http://patchwork.ozlabs.org/api/series/375009/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=375009",
            "date": "2023-09-26T21:48:11",
            "name": "Rewrite GPIO LED trigger to use trigger-sources",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/375009/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1839955/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1839955/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-gpio-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=hpdLunO6;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2620:137:e000::1:20; helo=out1.vger.email;\n envelope-from=linux-gpio-owner@vger.kernel.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20])\n\tby legolas.ozlabs.org (Postfix) with ESMTP id 4RwF9G6CC5z1ynX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 27 Sep 2023 08:41:54 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n        id S229485AbjIZWlv (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n        Tue, 26 Sep 2023 18:41:51 -0400",
            "from lindbergh.monkeyblade.net ([23.128.96.19]:40656 \"EHLO\n        lindbergh.monkeyblade.net\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n        with ESMTP id S231597AbjIZWju (ORCPT\n        <rfc822;linux-gpio@vger.kernel.org>); Tue, 26 Sep 2023 18:39:50 -0400",
            "from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com\n [IPv6:2a00:1450:4864:20::12b])\n        by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769D91856E\n        for <linux-gpio@vger.kernel.org>;\n Tue, 26 Sep 2023 14:48:18 -0700 (PDT)",
            "by mail-lf1-x12b.google.com with SMTP id\n 2adb3069b0e04-5031426b626so15522226e87.3\n        for <linux-gpio@vger.kernel.org>;\n Tue, 26 Sep 2023 14:48:18 -0700 (PDT)",
            "from [127.0.1.1] ([85.235.12.238])\n        by smtp.gmail.com with ESMTPSA id\n f10-20020a19ae0a000000b0050334e5f5a8sm2299982lfc.271.2023.09.26.14.48.15\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 26 Sep 2023 14:48:16 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=linaro.org; s=google; t=1695764896; x=1696369696;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=kgLC0yegwN9YtWotfp/L618EWCW38wnqoTZssZI78wo=;\n        b=hpdLunO6fT4qa5/0wHi90PLH70CTyjaZMgu2KDeHYt9goNOHmyTiL7N1eg2XQuwyi+\n         x8kFeOKBSsYLeKaBEEBpwFgwt3p6i6t1xy7ogHv1GL39GThvb5IW+UeJxylD8NcQdiJr\n         ZBwZ4cnqk34uPKDR43BzxC64SNufEGzlu5fO+UX9ZR4q1GtMZwYQutwxQWvxjeAbkmJ6\n         LtDb28izmhHrooNTNnyYyGxfFY1JsPK+rizHKOT5pYXwxZqoCd4rk7BPWfxZn6K6M8Xs\n         Qc19TFFfQDf6neLf/VAAKvozFpRtczgxyGeMhf8Z+kcbYrNs5tqaDQHyyXLdNasK5ZUO\n         MfRw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1695764896; x=1696369696;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-message-state:from:to:cc\n         :subject:date:message-id:reply-to;\n        bh=kgLC0yegwN9YtWotfp/L618EWCW38wnqoTZssZI78wo=;\n        b=g3TH3zjUisXm9y36e0mnl+RICEecccMuUQGntwXXkegIhCpjw1K1DXwuT6noe73Lcl\n         blTgNbu0avr0fNHWm6amldDqEIjP4RhdwabI98G4AqvOSf5QDZdLvnL1VrCqNnQLitVc\n         mOe4URIg1e3sSIinggsy7Uh3K0wPLeFzuwMmwT/NZHb5nLXJJzJvF9TfRiS3WMNxgVJb\n         pQTlqJ8G+i2GoWxQMDiWzhdtPPrXp4jX/BYzBt3UvKbeRnG6gF2Ud5kFkLtFYbYTEiWD\n         hRLBVd258zsixRL3W3k6+ECFTae8GiIksFRXQAiax4JTAqLns2Sj0igqyD60t+zakQSg\n         RvJw==",
        "X-Gm-Message-State": "AOJu0YzDSGOeXMTCyOelHI+/jwc1aYfd3YVN6R4OueX3ftW1XQ35ojdI\n        xedwzuSPuKGHTEtM1O7Rubraiw==",
        "X-Google-Smtp-Source": "\n AGHT+IH5jMp1la/wAsctQFsK6FsN53AbjwItO8UhW5YsVBunUbQGovUk+oVdorH/Gl1+UnnAluZfoQ==",
        "X-Received": "by 2002:a05:6512:3e10:b0:503:446:b468 with SMTP id\n i16-20020a0565123e1000b005030446b468mr16652lfv.67.1695764896685;\n        Tue, 26 Sep 2023 14:48:16 -0700 (PDT)",
        "From": "Linus Walleij <linus.walleij@linaro.org>",
        "Date": "Tue, 26 Sep 2023 23:48:12 +0200",
        "Subject": "[PATCH v2 2/3] dt-bindings: leds: Mention GPIO triggers",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org>",
        "References": "<20230926-gpio-led-trigger-dt-v2-0-e06e458b788e@linaro.org>",
        "In-Reply-To": "<20230926-gpio-led-trigger-dt-v2-0-e06e458b788e@linaro.org>",
        "To": "=?utf-8?q?Jan_Kundr=C3=A1t?= <jan.kundrat@cesnet.cz>,\n Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,\n Rob Herring <robh+dt@kernel.org>,\n Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,\n Conor Dooley <conor+dt@kernel.org>,\n Jacek Anaszewski <jacek.anaszewski@gmail.com>",
        "Cc": "linux-leds@vger.kernel.org, linux-gpio@vger.kernel.org,\n        devicetree@vger.kernel.org,\n        Linus Walleij <linus.walleij@linaro.org>,\n        Conor Dooley <conor.dooley@microchip.com>",
        "X-Mailer": "b4 0.12.3",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n        DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n        SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no\n        version=3.4.6",
        "X-Spam-Checker-Version": "SpamAssassin 3.4.6 (2021-04-09) on\n        lindbergh.monkeyblade.net",
        "Precedence": "bulk",
        "List-ID": "<linux-gpio.vger.kernel.org>",
        "X-Mailing-List": "linux-gpio@vger.kernel.org"
    },
    "content": "We reuse the trigger-sources phandle to just point to\nGPIOs we may want to use as LED triggers.\n\nExample:\n\ngpio: gpio@0 {\n    compatible \"my-gpio\";\n    gpio-controller;\n    #gpio-cells = <2>;\n    interrupt-controller;\n    #interrupt-cells = <2>;\n    #trigger-source-cells = <2>;\n};\n\nleds {\n    compatible = \"gpio-leds\";\n    led-my-gpio {\n        label = \"device:blue:myled\";\n        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;\n        default-state = \"off\";\n        linux,default-trigger = \"gpio\";\n        trigger-sources = <&gpio 1 GPIO_ACTIVE_HIGH>;\n    };\n};\n\nAcked-by: Conor Dooley <conor.dooley@microchip.com>\nSigned-off-by: Linus Walleij <linus.walleij@linaro.org>\n---\n Documentation/devicetree/bindings/leds/common.yaml | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml\nindex 5fb7007f3618..b42950643b9d 100644\n--- a/Documentation/devicetree/bindings/leds/common.yaml\n+++ b/Documentation/devicetree/bindings/leds/common.yaml\n@@ -191,6 +191,8 @@ properties:\n       each of them having its own LED assigned (assuming they are not\n       hardwired). In such cases this property should contain phandle(s) of\n       related source device(s).\n+      Another example is a GPIO line that will be monitored and mirror the\n+      state of the line (with or without inversion flags) to the LED.\n       In many cases LED can be related to more than one device (e.g. one USB LED\n       vs. multiple USB ports). Each source should be represented by a node in\n       the device tree and be referenced by a phandle and a set of phandle\n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}