get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2119159,
    "url": "http://patchwork.ozlabs.org/api/patches/2119159/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250805-mv88e6xxx-v1-1-9e345d0d48b2@linaro.org/",
    "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": "<20250805-mv88e6xxx-v1-1-9e345d0d48b2@linaro.org>",
    "list_archive_url": null,
    "date": "2025-08-05T11:14:14",
    "name": "net: mv88e6xxx: Fix logical operator instead of bitwise",
    "commit_ref": "34bc71f2db6bcd83b718ac9c28c39bd7d788a356",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5154407d9d5669359f8df0403dc121e5d2a56971",
    "submitter": {
        "id": 88793,
        "url": "http://patchwork.ozlabs.org/api/people/88793/?format=api",
        "name": "Andrew Goodbody",
        "email": "andrew.goodbody@linaro.org"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250805-mv88e6xxx-v1-1-9e345d0d48b2@linaro.org/mbox/",
    "series": [
        {
            "id": 467939,
            "url": "http://patchwork.ozlabs.org/api/series/467939/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=467939",
            "date": "2025-08-05T11:14:14",
            "name": "net: mv88e6xxx: Fix logical operator instead of bitwise",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/467939/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2119159/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2119159/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 (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=OFNzpTAH;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"OFNzpTAH\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=andrew.goodbody@linaro.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4bx9mW34yvz1xtN\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  5 Aug 2025 21:14:19 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2C17C80548;\n\tTue,  5 Aug 2025 13:14:25 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 7095580B9B; Tue,  5 Aug 2025 13:14:24 +0200 (CEST)",
            "from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n [IPv6:2a00:1450:4864:20::331])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id E7429801BE\n for <u-boot@lists.denx.de>; Tue,  5 Aug 2025 13:14:16 +0200 (CEST)",
            "by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-458b2d9dba5so22780505e9.1\n for <u-boot@lists.denx.de>; Tue, 05 Aug 2025 04:14:16 -0700 (PDT)",
            "from artemis2.elfringham.co.uk\n ([2a0a:ef40:f9e:3c01:60bc:24e3:6dcd:9f35])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-458bc1f62e7sm129462935e9.2.2025.08.05.04.14.15\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 Aug 2025 04:14:15 -0700 (PDT)"
        ],
        "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,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.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1754392456; x=1754997256; darn=lists.denx.de;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:from:to:cc:subject:date:message-id:reply-to;\n bh=3ZgwR9kTJB/daxtGoiEFKPvQujfBqKoxDcFHexAKzyM=;\n b=OFNzpTAHOYsvYQUbwY8PpUnGLcQiDwb6oXpxWFq/fF5ZW1ZQuZyZBxDpcJCOPo0aiw\n E4qnk+fgiws8AAd9Dc55YdqC84ePke83NM2OwyydhaIHoXA4ae0oaL9lpWXv7o3JNxE4\n ECanXCuEe+uCq+5u33N6qAzA4cioMH5SaXi3NMyR+T88eYTCfEpa0HLc292pgK0yZAsW\n LSpALEg0VDruaYRjnl8W0TPQuoGPlkgFf129MsFdMbMyV1ZobhbPcLgFg7F3Y4VqBQsP\n EHhanOMuRvTOpRZqMB8LMpgyS8KQMRqM6Lx5Z8c3PfJqDJX6bGRH27Rw3qXkOY5Dpyee\n yFAA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1754392456; x=1754997256;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=3ZgwR9kTJB/daxtGoiEFKPvQujfBqKoxDcFHexAKzyM=;\n b=XvMTDrFRpZ4gXlF04QsxR+QhT3caEwEgk5ylGaiZ/ZtLghHCktAp0Z0SVWmWxyD1ax\n DDw2XHTqt9toesLeKGVM45HEo+U6k6rNFwczZXaCtmuFJ/7FdtJoTVoNPSsF8Al8x4gm\n mkkq1v0MHxZcIJ3ArsNAFlGRVKVVLxz2rWMy5LtBpBJKDrT7zBpBVzpwyX0ucyF1xGU/\n 1moCJ0urKJ6C/9h3RycqqrqJdP6JtcIGwlnVr+zpHqMxkUVVACeDBxnQAN9NQDnUDjb3\n ELr3Wu2wG/olLOxAkrx7Xcu6UkusF+BbFB+lQAYJOZ+C/LErViIoh+to0lmbXJSnYgft\n 0K+w==",
        "X-Gm-Message-State": "AOJu0YzlV3sofpYEjp9J4TeYCcliCmvO/wd/+cVLxv54qoZETcg9uznb\n pzwF0aPI1aVLqwZI6GCS7ONELujOmImBXqg1gwqXIBtIXuofKDS0VIZvqLunSwY1cGzwknAXve7\n D9iR9",
        "X-Gm-Gg": "ASbGnctpHybAUrfglIkt861u1TMkGhEwH1txID7pG+N+cc0wa4OKiUTmGQl24FkWbCi\n Mv+a6iVX1fNPOQMww4IrIuOKU+hPzn7pYIqaIjStgzsDzBr+HJQwVIEUEoZtzUh2c59RohjVIhU\n FMCCFlCUQRiEd8bYXW9VfVOtjQIPNxP6jTl0QDNJI1nHj4ZY1o8ALW1nKb28mHA/0I1nM+ISgVS\n 8frrDIRTwCREI8B9w7KMX/+4BcSYFb5EFAbX+Z+Gn5Q5jSpvQPMcQb3B81hh9Ua3uQMcdnWCcOu\n uBByXLR9FhYqiwEGj/e2keMQJo8NlzCscVPzyxKNCqgYW05uH7iBu92PeV+yuF0OlJfKexDN9nv\n SZAbMTydRng5YH8zXukN4Qfu+XQWMYlfTTa5ozJGEJsWbX+WHUQFln6UQPe3jLQ==",
        "X-Google-Smtp-Source": "\n AGHT+IEojifZpgyXDhBz0N4+6rkLuEcHy26JWcA8VOEnytyMBOW4pQwP2iyNiP3ovzsDkcAzSYV2kw==",
        "X-Received": "by 2002:a05:600c:1d0c:b0:456:1bae:5470 with SMTP id\n 5b1f17b1804b1-458b69dddedmr99833235e9.8.1754392456250;\n Tue, 05 Aug 2025 04:14:16 -0700 (PDT)",
        "From": "Andrew Goodbody <andrew.goodbody@linaro.org>",
        "Date": "Tue, 05 Aug 2025 12:14:14 +0100",
        "Subject": "[PATCH] net: mv88e6xxx: Fix logical operator instead of bitwise",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20250805-mv88e6xxx-v1-1-9e345d0d48b2@linaro.org>",
        "X-B4-Tracking": "v=1; b=H4sIAIXnkWgC/x2NSwqEMBAFryK9NhDFT/QqMoskdrQXRukeJCDe3\n eiyePWoCwSZUGAsLmA8SWiPGaqyAL/auKCiOTPUum610a3aTmOwSympUAUzzH5o+s5B9p0VVI5\n t9Ov72Kz8kd/hYAyUvsj0u+8HJP6Y4XQAAAA=",
        "To": "Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>",
        "Cc": "u-boot@lists.denx.de, Andrew Goodbody <andrew.goodbody@linaro.org>",
        "X-Mailer": "b4 0.12.0",
        "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 mv88e6xxx_port_enable when attempting to mask out the previous\nsettings of two bits a logical operator was used instead of a bitwise\noperator. Fix this.\n\nThis issue was found by Smatch.\n\nSigned-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>\n---\n drivers/net/mv88e6xxx.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\n\n---\nbase-commit: 007610da2cca405ea7739fc120d90085be4b6ac2\nchange-id: 20250805-mv88e6xxx-f1f89dc9476b\n\nBest regards,",
    "diff": "diff --git a/drivers/net/mv88e6xxx.c b/drivers/net/mv88e6xxx.c\nindex 557b6b2c8f6..f06c73c20f8 100644\n--- a/drivers/net/mv88e6xxx.c\n+++ b/drivers/net/mv88e6xxx.c\n@@ -631,7 +631,7 @@ static int mv88e6xxx_port_enable(struct udevice *dev, int port, struct phy_devic\n \t\t\tdev_dbg(dev, \"configure internal RGMII delays\\n\");\n \n \t\t\t/* RGMII delays */\n-\t\t\tval &= ~(PORT_REG_PHYS_CTRL_RGMII_DELAY_RXCLK ||\n+\t\t\tval &= ~(PORT_REG_PHYS_CTRL_RGMII_DELAY_RXCLK |\n \t\t\t\t PORT_REG_PHYS_CTRL_RGMII_DELAY_TXCLK);\n \t\t\tif (phy->interface == PHY_INTERFACE_MODE_RGMII_ID ||\n \t\t\t    phy->interface == PHY_INTERFACE_MODE_RGMII_RXID)\n",
    "prefixes": []
}