get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195249,
    "url": "http://patchwork.ozlabs.org/api/patches/2195249/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260210-ufs-ufs_hba_ops-cleanup-v2-2-dd73da21aa92@baylibre.com/",
    "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": "<20260210-ufs-ufs_hba_ops-cleanup-v2-2-dd73da21aa92@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-02-10T16:22:44",
    "name": "[v2,2/3] drivers: ufs: add helper for phy_initialization callback",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "63170d650803ba9be5014238729f53f9c479f90d",
    "submitter": {
        "id": 84831,
        "url": "http://patchwork.ozlabs.org/api/people/84831/?format=api",
        "name": "Julien Stephan",
        "email": "jstephan@baylibre.com"
    },
    "delegate": {
        "id": 84350,
        "url": "http://patchwork.ozlabs.org/api/users/84350/?format=api",
        "username": "narmstrong",
        "first_name": "Neil",
        "last_name": "Armstrong",
        "email": "narmstrong@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260210-ufs-ufs_hba_ops-cleanup-v2-2-dd73da21aa92@baylibre.com/mbox/",
    "series": [
        {
            "id": 491703,
            "url": "http://patchwork.ozlabs.org/api/series/491703/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=491703",
            "date": "2026-02-10T16:22:42",
            "name": "drivers: ufs: ufs_hba_ops callbacks cleanup",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/491703/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195249/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195249/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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=mMiAGxps;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=\"mMiAGxps\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=jstephan@baylibre.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9Rgg27yJz1xwG\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 03:23:11 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 416AC83DCB;\n\tTue, 10 Feb 2026 17:22:54 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BB82583DB6; Tue, 10 Feb 2026 17:22:53 +0100 (CET)",
            "from mail-wr1-x436.google.com (mail-wr1-x436.google.com\n [IPv6:2a00:1450:4864:20::436])\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 C261283D77\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 17:22:51 +0100 (CET)",
            "by mail-wr1-x436.google.com with SMTP id\n ffacd0b85a97d-43638a3330dso2479720f8f.0\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 08:22:51 -0800 (PST)",
            "from [192.168.1.100]\n (2a02-842a-d52e-6101-43a2-d2f0-c793-0a1b.rev.sfr.net.\n [2a02:842a:d52e:6101:43a2:d2f0:c793:a1b])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-436296bd4a1sm35185402f8f.17.2026.02.10.08.22.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 08:22:50 -0800 (PST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1770740571;\n x=1771345371;\n darn=lists.denx.de;\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; bh=gLMXeRJzk/F1MP3iOK1XQj2/8Y/Iv20RFR4qmixR/78=;\n b=mMiAGxpsNOxK7EEFBdVg+bEPzQbGCbijhieNwOhjij//JKlVeU54E3JlaiiCJB/Ef2\n JP5XcQOJrnay/uU5sz5tVkZpkpRP+1AHfgr7ej2jOnWNVHpMCCmClNXF4ODQQAao+qZ8\n qciALUj95n6F4m2CdvK9pQj6ufd3hgICuepnX1wTvjDQbJKs/bEE38KvGYJzQWjxMTm1\n lccoM9c5th2ZZD5sJhuTp4kcWWRXWsVKu+woofpulyN9fCT9kteLwtvO5QeSF+zMV3pZ\n Z/YfvDotDzHQAO4IuM6jqJiHGB/LqD93SeK5Bk3cXBoFSOBVBNVpEAv1XwTzJinL+Urq\n N1Kg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770740571; x=1771345371;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=gLMXeRJzk/F1MP3iOK1XQj2/8Y/Iv20RFR4qmixR/78=;\n b=SPVl0jHil7/6+fzsUUcQLDSkHJDk1hQjwdoKTgczRklwSqCIAVAHXCyB1NYzGQMlUa\n p6FyC+5/3NbVbNjL3Dw2+qFw4pM9w4BKTjneUe7sXrRsa//hQnMJQrLm3CfR8TNHr0ch\n iwK+nF+4vrAAZ17mMs8qQasxu+yE/Snxk8nqAsbdY5cESqqbiJCBGfwMJn/Eo+lkUGzc\n dvMzYB7PNKx36UZuLJvVclFif2QDQGa1DuFNv8iZ/uatESHb3uOWd9RWJdGw7dtpDDcY\n pXz6WwAMvR+BviB1OzEZ3dKixNOy8miDw98tejZ9tlu/aEpdjvISHkX4liPusa0YXIvJ\n ZYWw==",
        "X-Gm-Message-State": "AOJu0YwWEfgcmOHgC8AXLpF+qHeoY2WE4sxCTYO7r5RJEHZe+iojs6F8\n Y/LX3nXGItq3yXFwoN4/A6top94/xbbbysZJochXJLq7/Pfs2HfI0iGi1aBMBWqF6RM=",
        "X-Gm-Gg": "AZuq6aLqTTM+8ptYNL1E1SOMsMUOKz3AmZNYEeG1E1eQhBxNxvURi2HNf8Qn09xhURD\n nLqgR53e6OAwww4aVxMtNwufHPsTvBHDzwkDel1cdEJLsr9DwLqKCBpdIo8j4vgsQekvDbmHBQA\n zuCF/nSc2wZ77ey0yT96dr5w28xexCPm1iq3jq3D3l0Ze2pIjAZUKQvf5ccL9xe8HsDt9Rbm6ql\n VTsVUJdQXrILcGudTnnM1xb8HcrGdhOkKqEwWwPt8qyxe0DR5+mb7kL6lKUQECG2jtoGm8H4Q94\n IPeQLOnGGhVHUcWKbKHbdwBBICOnkBUZJbXStgaYOBJ6sD3OREVUaXynrqEoOek2V355oFMEwL7\n wiJJenzciPE0VAQRTz8SLTpvkXkisQJKxlHd6+5I/0J9uU3x6NnJKSwrJ3Q86n97aJ5QEYo3yx5\n RdJ9YzzgSLRHii3Y+TE660iEtmdn1C1sfxaPP8qeRNQOqywAqtoR78lkUDCl9sLUm+bECD6inxo\n fVWUXYXfV0K4lURneRltEUV0kLtBK0Q",
        "X-Received": "by 2002:a5d:5d0d:0:b0:430:f5ed:83e3 with SMTP id\n ffacd0b85a97d-4362933bddemr20494341f8f.6.1770740571089;\n Tue, 10 Feb 2026 08:22:51 -0800 (PST)",
        "From": "Julien Stephan <jstephan@baylibre.com>",
        "Date": "Tue, 10 Feb 2026 17:22:44 +0100",
        "Subject": "[PATCH v2 2/3] drivers: ufs: add helper for phy_initialization\n callback",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260210-ufs-ufs_hba_ops-cleanup-v2-2-dd73da21aa92@baylibre.com>",
        "References": "<20260210-ufs-ufs_hba_ops-cleanup-v2-0-dd73da21aa92@baylibre.com>",
        "In-Reply-To": "<20260210-ufs-ufs_hba_ops-cleanup-v2-0-dd73da21aa92@baylibre.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Bhupesh Sharma <bhupesh.linux@gmail.com>,\n Neha Malcom Francis <n-francis@ti.com>, Tom Rini <trini@konsulko.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@vrull.eu>,\n Kever Yang <kever.yang@rock-chips.com>,\n Shawn Lin <shawn.lin@rock-chips.com>, Bryan Brattlof <bb@ti.com>,\n Udit Kumar <u-kumar1@ti.com>, Jared McArthur <j-mcarthur@ti.com>,\n Kunihiko Hayashi <hayashi.kunihiko@socionext.com>,\n Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>,\n Michal Simek <michal.simek@amd.com>, dlechner@baylibre.com,\n Julien Stephan <jstephan@baylibre.com>",
        "X-Mailer": "b4 0.14.3",
        "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": "Introduce ufshcd_ops_phy_initialization() as a helper for invoking the\nphy_initialization callback from ufs_hba_ops.\n\nThis mirrors the existing helper pattern used for other ufs_hba_ops\ncallbacks and keeps the call sites consistent and easier to maintain.\n\nSigned-off-by: Julien Stephan <jstephan@baylibre.com>\n---\n drivers/ufs/ufs-rockchip.c | 10 ++++------\n drivers/ufs/ufs.h          |  8 ++++++++\n 2 files changed, 12 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/ufs/ufs-rockchip.c b/drivers/ufs/ufs-rockchip.c\nindex 0384244387d..cad753d5990 100644\n--- a/drivers/ufs/ufs-rockchip.c\n+++ b/drivers/ufs/ufs-rockchip.c\n@@ -30,12 +30,10 @@ static int ufs_rockchip_hce_enable_notify(struct ufs_hba *hba,\n \tufshcd_dme_reset(hba);\n \tufshcd_dme_enable(hba);\n \n-\tif (hba->ops->phy_initialization) {\n-\t\terr = hba->ops->phy_initialization(hba);\n-\t\tif (err)\n-\t\t\tdev_err(hba->dev,\n-\t\t\t\t\"Phy init failed (%d)\\n\", err);\n-\t}\n+\tret = ufshcd_ops_phy_initialization(hba);\n+\tif (err)\n+\t\tdev_err(hba->dev,\n+\t\t\t\"Phy init failed (%d)\\n\", err);\n \n \treturn err;\n }\ndiff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h\nindex bc839a43704..74125b1ab31 100644\n--- a/drivers/ufs/ufs.h\n+++ b/drivers/ufs/ufs.h\n@@ -756,6 +756,14 @@ static inline int ufshcd_ops_link_startup_notify(struct ufs_hba *hba,\n \treturn 0;\n }\n \n+static inline int ufshcd_ops_phy_initialization(struct ufs_hba *hba)\n+{\n+\tif (hba->ops && hba->ops->phy_initialization)\n+\t\treturn hba->ops->phy_initialization(hba);\n+\n+\treturn 0;\n+}\n+\n static inline int ufshcd_vops_device_reset(struct ufs_hba *hba)\n {\n \tif (hba->ops && hba->ops->device_reset)\n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}