Show a cover letter.

GET /api/covers/1839979/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1839979,
    "url": "http://patchwork.ozlabs.org/api/covers/1839979/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/cover/20230926-gpio-led-trigger-dt-v2-0-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-0-e06e458b788e@linaro.org>",
    "list_archive_url": null,
    "date": "2023-09-26T21:48:10",
    "name": "[v2,0/3] Rewrite GPIO LED trigger to use trigger-sources",
    "submitter": {
        "id": 7055,
        "url": "http://patchwork.ozlabs.org/api/people/7055/?format=api",
        "name": "Linus Walleij",
        "email": "linus.walleij@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/cover/20230926-gpio-led-trigger-dt-v2-0-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/covers/1839979/comments/",
    "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=lsTrmsIP;\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 4RwHwY5F6Lz1yp0\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 27 Sep 2023 10:46:05 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n        id S232262AbjI0AqB (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n        Tue, 26 Sep 2023 20:46:01 -0400",
            "from lindbergh.monkeyblade.net ([23.128.96.19]:35358 \"EHLO\n        lindbergh.monkeyblade.net\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n        with ESMTP id S229555AbjI0AoB (ORCPT\n        <rfc822;linux-gpio@vger.kernel.org>); Tue, 26 Sep 2023 20:44:01 -0400",
            "from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com\n [IPv6:2a00:1450:4864:20::12e])\n        by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5097EDF\n        for <linux-gpio@vger.kernel.org>;\n Tue, 26 Sep 2023 14:48:16 -0700 (PDT)",
            "by mail-lf1-x12e.google.com with SMTP id\n 2adb3069b0e04-502e7d66c1eso15868319e87.1\n        for <linux-gpio@vger.kernel.org>;\n Tue, 26 Sep 2023 14:48:16 -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.14\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 26 Sep 2023 14:48:14 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=linaro.org; s=google; t=1695764895; x=1696369695;\n darn=vger.kernel.org;\n        h=cc:to:content-transfer-encoding:mime-version:message-id:date\n         :subject:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=XtIGAJAIn5DFyAAok8KJTgELmOKMBX9AjGhOfdYwP9U=;\n        b=lsTrmsIPu0gmn8AcD60ok0KEm1Hg/8coLlGwBA4bCQN/ZCAzNgtj6zXpZUEN1Q0e/S\n         ZmIt4HSagXgR59rsCtpRrbJIOECxGJ1WmYzU6z0XT9qiNjz2OUOX4viNs70806Tli21s\n         vG6YBqXBP4KHzGhAwS7ioHianYwlD1guOZYi6/fr1SF1ZnBMDKyPmpzSMNNbsmSiBtvp\n         ij75kfDitb3p/wRv6vm4sJgwROJoqir3uE+apqB3giHrQrCHw8bwgrfDudk6hS1AWua8\n         8GpUcai+VMu2P7kzIBfpQLB4MRyzMzpD7c3LoPTyxgnVMmF2Ey/uHpN/6bgEt0tsWqpQ\n         qCWg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1695764895; x=1696369695;\n        h=cc:to:content-transfer-encoding:mime-version:message-id:date\n         :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=XtIGAJAIn5DFyAAok8KJTgELmOKMBX9AjGhOfdYwP9U=;\n        b=ZsZwNBnVBW/SyTLgbXQXMtDsOMuI8DmCAX096w0UrIwoP+tHey9+CyuFfk2O7VdOZG\n         LGcvnRPeMTpxzJDe8ohDBeE+0Lq8JuxKloLAnRcGkigR0yXCpiTkhFdhK2ZufiqGRadb\n         N9rGBPaZbUPi9rfWe8yUpLnkhKG1/WCDNzRfb9CNT/vqKawaO5GXxdK8YYHRfZLcUM0I\n         nz28dC7+PpAKuAIqvJaPmAMIfQyyukXsb9BMvHvW/l0y2rnvp8ZLCfdGmbsxuZqVi8LX\n         yeIlAJIknzSucagpGRyiLj0MCJXTYh4XYuV4qlf4YuwU/dGaIaKKzvRdFayfE7noBUei\n         W9vw==",
        "X-Gm-Message-State": "AOJu0YxCf3EbbYku10btIEIaYCiys8nBYs/IzV2cx27xE/5u5UgB/fhP\n        Sc2Xa7I3Ld6VvFW//oxA5IXFoQ==",
        "X-Google-Smtp-Source": "\n AGHT+IGZJN6D1LppUajBIqaDv5vMWuxw8Tz7SHNssCZTCzblqzQErVamJzS0AJFKZ15Ta+fT3NcmDg==",
        "X-Received": "by 2002:ac2:4c31:0:b0:500:d8d6:fc5a with SMTP id\n u17-20020ac24c31000000b00500d8d6fc5amr33695lfq.37.1695764894943;\n        Tue, 26 Sep 2023 14:48:14 -0700 (PDT)",
        "From": "Linus Walleij <linus.walleij@linaro.org>",
        "Subject": "[PATCH v2 0/3] Rewrite GPIO LED trigger to use trigger-sources",
        "Date": "Tue, 26 Sep 2023 23:48:10 +0200",
        "Message-Id": "<20230926-gpio-led-trigger-dt-v2-0-e06e458b788e@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "X-B4-Tracking": "v=1; b=H4sIAJpRE2UC/22NQQqDMBBFryKz7pRkxBa76j2Ki9iMcUCMTIK0i\n HdvKnTX5Xvw398gsQonuFUbKK+SJM4F6FTBc3RzYBRfGMhQbVprMSwScWKPWSUEVvQZW6K+Z7K\n DI4KyXJQHeR3VR1d4lJSjvo+T1X7tr0d/e6tFg7ZvDNfX5uK9u08yO43nqAG6fd8/I9dZIbcAA\n AA=",
        "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=ham autolearn_force=no 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": "This rewrites the platform-data GPIO LED trigger to instead\nuse fwnode trigger-sources to describe the LED used.\n\nThis will work out-of-the-box with e.g. device tree.\n\nTested with real hardware by modifying a device tree adding\ntrigger-sources to a LED and trigger-source-cells to\na gpio chip, setting the trigger to a pushbutton. It works\nlike a charm, once the trigger is set to \"gpio\".\n\nAdding trigger-sources to GPIO chips in a simple way requires\nthis patch to be merged to the generic dtschema:\nhttps://lore.kernel.org/linux-devicetree/20230916-gpio-triggers-v1-1-6e5052bead9a@linaro.org/\n\nSigned-off-by: Linus Walleij <linus.walleij@linaro.org>\n---\nChanges in v2:\n- Add a quirk to gpiolib-of to allow to read out trigger-sources as\n  any regular GPIO.\n- Fix a use-after-free bug found by Dan Carpenter.\n- Tested on hardware.\n- Link to v1: https://lore.kernel.org/r/20230912-gpio-led-trigger-dt-v1-0-1b50e3756dda@linaro.org\n\n---\nLinus Walleij (3):\n      gpiolib: of: Allow \"trigger-sources\" to reference a GPIO\n      dt-bindings: leds: Mention GPIO triggers\n      leds: triggers: gpio: Rewrite to use trigger-sources\n\n Documentation/devicetree/bindings/leds/common.yaml |   2 +\n drivers/gpio/gpiolib-of.c                          |  28 +++++\n drivers/leds/trigger/Kconfig                       |   5 +-\n drivers/leds/trigger/ledtrig-gpio.c                | 137 ++++++---------------\n 4 files changed, 71 insertions(+), 101 deletions(-)\n---\nbase-commit: 8eb1c4d9b44873d30efc1846148944534f4a017d\nchange-id: 20230911-gpio-led-trigger-dt-922bbe21fa22\n\nBest regards,"
}