Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195242/?format=api
{ "id": 2195242, "url": "http://patchwork.ozlabs.org/api/patches/2195242/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260210-ufs-ufs_hba_ops-cleanup-v1-2-bf12e31de4a9@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-v1-2-bf12e31de4a9@baylibre.com>", "list_archive_url": null, "date": "2026-02-10T16:11:18", "name": "[2/3] drivers: ufs: add helper for phy_initialization callback", "commit_ref": null, "pull_url": null, "state": "superseded", "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-v1-2-bf12e31de4a9@baylibre.com/mbox/", "series": [ { "id": 491701, "url": "http://patchwork.ozlabs.org/api/series/491701/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=491701", "date": "2026-02-10T16:11:16", "name": "drivers: ufs: ufs_hba_ops callbacks cleanup", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/491701/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195242/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195242/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=SVRjB6oe;\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=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=\"SVRjB6oe\";\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 [85.214.62.61])\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 4f9RQL2h89z1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 03:11:38 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 100FB83D17;\n\tTue, 10 Feb 2026 17:11:32 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id CD15180FA1; Tue, 10 Feb 2026 17:11:30 +0100 (CET)", "from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n [IPv6:2a00:1450:4864:20::32e])\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 DF0F280FA1\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 17:11:28 +0100 (CET)", "by mail-wm1-x32e.google.com with SMTP id\n 5b1f17b1804b1-4806f3fc50bso49603015e9.0\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 08:11:28 -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 5b1f17b1804b1-4834d7e50casm62994595e9.8.2026.02.10.08.11.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 08:11:27 -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=1770739888;\n x=1771344688;\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=SVRjB6oeXYsTiEf/dD68zf2z5DOnayjc+lAmE0ufyJZTRyjiaFtujsDZGq5VC9OwOS\n HRxQnhrX/ArkF/JPP3Y8TDoUF4QURlT0H9Kdexh/e20zm8FHjcolmUK5yS+MFDMyrXbg\n fO0dE9Uuisg86bAGVdDHLaVby5XmO+9HX162AAFpqTJH5LDiNfztBehnYnaIjewMqEE1\n DxtSZsL+USo4dkQksDWUWEWqk7Gi8f+K9dTAvDSkbQILCn0V8s4hh+Fmn2inf4ccbhxE\n pZbjAaX5D2eSmm6/uM3VL8v6bIiR9TGdrhjiSjSLdkLbFQbJ6OMqcGqZtF4EzNWqbxZR\n R4bQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770739888; x=1771344688;\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=mu4hy2V3sNIepc1QIUFFQBAm0WYYqumfWgmVOp/PVcmIlORL/DFXXrFItpdb5FnWO9\n LgbU/UkVrcT4pt6wmvzD+RlHx/efeoijMuDDOHfo5PKr1O9u1A0kE74shXu1d9D/x5I/\n ZsCsxXsu6t0WQeeJA3wiQ4UtuZR+tgWHWJTZ22vq5yPJt5rxymkIfQB+SniZppmgauCz\n WMaXUh5YIbuew9guEZ+f5DDv35LRJOm9yWLU1mbkM/bX1ZzDz0Q0EUfgGLu8OTynQki3\n bH46feAZT2XeAc1QPOV9v0I5p2M5GUEWzy+tOif8FK2wCX+qXqTnd/1QxFvTEuoE16oC\n dtDQ==", "X-Gm-Message-State": "AOJu0Yxp2Da4R6tTqHTYJgzVRiLSMWTN7w8v6C77ooKrVB6PvT3QDi7T\n 7rSdX8kU1X4a+V2deL4iyb8+aq1tshJg8+pl0HA76Mf6UrkJE30simUmqyQIs+D/tsY=", "X-Gm-Gg": "AZuq6aL1Mca8v+MwnTb7pSalJTzGJnx+x40uwF/C4yMHAqHphcQc+uH/Jj9UTk0jHqJ\n MJ8KNmQvkMKhilKKB8ZwoeYqJ9tQIx49e44bpJ37cGuHTVJwXDjvmVSN4R1P0rGqwd9d7b57M8z\n 2fjkUKjkhLmAIUJcRQSGnirRDHHMH5siQoM5HcjFbWjnNsA40jk1/AeksDBFGe7jsX8faXjyaoV\n dlktfBGWJBmWVyBTrL4M7vdgAI1ggJHnxcSwyJWvmss2MTJ2F2ToC4wawZC+E/eOaQlbBQzdPdI\n 7sb8f/chmAMs9C4QXUslwTKykdY0yLiwMZ+IC636bEW6Cc2X5J7+RW+/NpctlIWy5eIlbhhqKEg\n RZ3dNraPx51VHVPvZpKk4uRxWvukpGJiOMQMZEAcxg5omwb6EwsD+4V9KKGjPlYC2h8i0I1EV8x\n Obbg8ykNJWPufcqPI9KhMxEoJ3I3GBqNyWADjDElDrPITrgp3hG+HKaIr0/mJmtV/fdGqUkNuWF\n CqsN4HDvkFjFwuzxkXxFQ==", "X-Received": "by 2002:a05:600c:c16d:b0:475:dd89:acb with SMTP id\n 5b1f17b1804b1-48320216097mr206367325e9.22.1770739888283;\n Tue, 10 Feb 2026 08:11:28 -0800 (PST)", "From": "Julien Stephan <jstephan@baylibre.com>", "Date": "Tue, 10 Feb 2026 17:11:18 +0100", "Subject": "[PATCH 2/3] drivers: ufs: add helper for phy_initialization callback", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260210-ufs-ufs_hba_ops-cleanup-v1-2-bf12e31de4a9@baylibre.com>", "References": "<20260210-ufs-ufs_hba_ops-cleanup-v1-0-bf12e31de4a9@baylibre.com>", "In-Reply-To": "<20260210-ufs-ufs_hba_ops-cleanup-v1-0-bf12e31de4a9@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": [ "2/3" ] }